steaksauce
Hello OpenPLC folks, I'm relatively new to PLC programming and have been trying to put together a relatively simple program for some bench prototyping.

The intent of the program is to read the a Modbus register and depending on which bit is high, starts a sequence in the program.

The controller controls two separate motors that each drive a ball screw that drives carriage forward on linear rails. There's a limit switch on either end of travel that should end whichever sequence thats driving the relevant motor. There's also a pre-op sequence where the intent is to hard stall the motor on a backstop to live test winding resistance of the system.

Anyways, I'm having a lot of compile errors when trying to simulate the program in the Editor and I'm not entirely sure what they're referring to since the errors at for ST? I don't really know a lot about the inner workings of this, but I'm assuming there's some LD/FB to ST interpreter that spits out something to compile against. But I'm not sure where in the LD/FB code I should... fix stuff to make it at least build? And/or let me know if I'm just doing things completely wrong in PLC land, my background is in making .NET/C# applications and a limited amount of SystemVerilog design/verification stuff.

Attached my project plc.xml and generated_plc.st and plc.st files and output from compiler.
Reply 0 0
Reply