Koolguy007 0 Posted March 11, 2016 Share Posted March 11, 2016 Given how minecraft has turned into a factory simulator, I'm surprised this isn't already a thing. I mean PLCs are how most factories are automated, and in my current modpack I have disabled all item pipes, so everything is minecarts. I'm currently flooded in scripts for controlling the sorting, routing, and general movement of minecarts and items. Most of my scripts are just a bunch of simple if then statements, and I feel like a PLC would be better suited. Sorry if my word flow seems chaotic, I'm tired and just wanted to make this request before I forget. Thanks for OpenComputers btw, It's amazing. Quote Link to post Share on other sites
asie 28 Posted March 11, 2016 Share Posted March 11, 2016 Doesn't this sound like it would better fit a different mod? OpenComputers's equivalent is most likely the microcontrollers... Quote Link to post Share on other sites
Koolguy007 0 Posted March 12, 2016 Author Share Posted March 12, 2016 If nothing else, it could just be a new architecture for OpenComputers. Without a way to program easily on my phone, I don't have time to undertake such a project hence the request. I just love the way OpenComputers is implemented, and I would love to see how a PLC would turn out from this team. I'm a bit biased since I work around them all day in a factory, and it may be more suited for another mod, but I figured if this idea had a chance of taking off it would be on this forum. Quote Link to post Share on other sites
weskey 0 Posted March 13, 2016 Share Posted March 13, 2016 What should a PLC be able to do exactly? What would be the difference between a microcontroller and a PLC? Quote Link to post Share on other sites
Koolguy007 0 Posted March 19, 2016 Author Share Posted March 19, 2016 One is programed with lua, and the other is programmed with a visual representation of relays and function blocks. Quote Link to post Share on other sites
tim4242 1 Posted March 19, 2016 Share Posted March 19, 2016 So really what you want is a program where you can make a visual representation of a program and then export it to lua? Quote Link to post Share on other sites
Koolguy007 0 Posted March 20, 2016 Author Share Posted March 20, 2016 Just look up plc. Its not just a visual representation of a program. There are no loops or variables in the typical programming sense. It simulates having relays interconnecting with each other and the outside world in realtime, but it also has function blocks that can be activated in the ladder. It's hard for me to explain. Its just a request, if no one wants it then don't bother with it. Quote Link to post Share on other sites
GreaseMonkey 7 Posted April 5, 2016 Share Posted April 5, 2016 Due to Minecraft's 20Hz tick rate, it should be completely adequate to implement a PLC environment as a program. It shouldn't be hard to compile to Lua source code anyway... assuming you've parsed the input of course. Quote Link to post Share on other sites