plc

所属分类:单片机开发
开发工具:Lua
文件大小:172KB
下载次数:0
上传日期:2021-01-24 12:19:11
上 传 者sh-1993
说明:  Factorio mod可编程逻辑控制器
(Factorio mod Programmable Logic Controller)

文件列表:
LICENSE (1081, 2021-01-24)
control.lua (21245, 2021-01-24)
data.lua (809, 2021-01-24)
graphics (0, 2021-01-24)
graphics\blank.png (97, 2021-01-24)
graphics\entity (0, 2021-01-24)
graphics\entity\plc.png (401168, 2021-01-24)
graphics\gui.png (284, 2021-01-24)
graphics\icon (0, 2021-01-24)
graphics\icon\plc.png (131749, 2021-01-24)
graphics\icons (0, 2021-01-24)
graphics\icons\menu_icons.png (34195, 2021-01-24)
gui.lua (5109, 2021-01-24)
gui (0, 2021-01-24)
gui\gui.lua (1, 2021-01-24)
info.json (296, 2021-01-24)
locale (0, 2021-01-24)
locale\en (0, 2021-01-24)
locale\en\config.cfg (3191, 2021-01-24)
logic (0, 2021-01-24)
logic\bitwise.lua (1466, 2021-01-24)
logic\boolean.lua (1994, 2021-01-24)
logic\commands.lua (955, 2021-01-24)
logic\environment_data.lua (1658, 2021-01-24)
logic\numeric.lua (3062, 2021-01-24)
logic\processing.lua (720, 2021-01-24)
logic\signal_set.lua (2671, 2021-01-24)
logic\signals.lua (5773, 2021-01-24)
program.lua (8586, 2021-01-24)
prototypes (0, 2021-01-24)
prototypes\entity.lua (6922, 2021-01-24)
prototypes\font.lua (1728, 2021-01-24)
prototypes\recipe.lua (573, 2021-01-24)
prototypes\style.lua (12853, 2021-01-24)
prototypes\technology.lua (444, 2021-01-24)
structure.lua (7609, 2021-01-24)
util.lua (9815, 2021-01-24)

note: Not really maintained feel free to fork/update/edit. # plc Factorio mod Programmable Logic Controller Programmable Logic Controller takes circuit network inputs and uses them in a small program then outputs them to another circuit network. To open the PLC's GUI check you have the keybind set to what you would like (I personally set it to left click) The left hand circuit terminal is used for the PLC's input signals, these are then filtered on the "Inputs" tab to convert the selected signal into a variable to use within the program. The right hand circuit terminal is for the output signals selected on the "Outputs" tab The program is constructed on the "Program" tab using the dropdown selectors on each line (x100) the tooltip will attempt to explain what each command does but most are simple enough. The boxes to the right are used for the command as parameters (variable names / numbers). Once you are happy with the program clicking the run button (on the program tab) and provided it has enough power it will execute the program each tick During each tick the PLC will do the following 1- Read signal inputs from the left hand terminal and transfer the selected ones to the variables specified, overwriting anything previously set 2- The PLC will execute all the lines of the program (with exception of any if-then-else that shouldn't execute) 3- Then output the selected variables as the signals specified to the right hand terminal Clicking the "Close" tab will close the gui Hopefully this is clear enough if not please complain so i can fix it ps. i have used some borrowed bits of code and techniques from numerous places, most notably Helfima(helmod for gui layout techniques) and Earendel(AAI scanners for circuit network handling) if you find some of your own code in there please let me know and i will credit where credit is due

近期下载者

相关文件


收藏者