Guides
Step-by-step guides for connecting a real PLC, SCADA or HMI to the simulator, and for making parts of your own.
Step-by-step guides for connecting a real PLC, SCADA or HMI to the simulator, and for making parts of your own.
Three of these are tested by following them in the desktop app: Modbus against OpenPLC, OPC UA against an OPC UA client (node-opcua), and S7 against a stand-in S7 CPU in this repository. The PLC-server, SLMP and ADS guides are not tested this way.
The simulator serves its sensors and motors on a Modbus TCP server, like a remote I/O rack, and your PLC's master reads and writes them. The example uses OpenPLC.
The simulator connects to the PLC's Modbus server device by address, or to its OPC UA server by variable name.
The simulator reads and writes the CPU's inputs, outputs, memory and data blocks at the scene's own addresses. Covers the setting the CPU needs before it allows PUT/GET.
The simulator reads and writes the CPU's X, Y, M and D devices at the scene's own addresses, over the 3E frame every Q, L, iQ-R and iQ-F CPU answers.
The simulator reads and writes the PLC's variables by name through the TwinCAT router on its own PC, with the route a PLC on another computer needs.
The program keeps running in the simulator, which publishes its variables on an OPC UA server for your SCADA, HMI or any OPC UA client.
Defaults, address and register rules, timings, OPC UA types and the I/O list format, in one place.
One example runs through all four, a blade stop, and each starts where the one before ends. They are tested by following them in the desktop app with the example model they use.
Import a model from Blender or a CAD program (.glb, STEP or USD), check its size and pieces, name it and mount it in a conveyor. The example is a blade stop.
Split a piece out of the model, give it a joint, and let a program drive it with one BOOL. No code in the part: the Part Editor writes it.
Report which end the moving piece is at, as a cylinder's switches do, and let the program catch a stroke that takes too long.
Give the moving piece a collider of its own, then hold each box at the blade with a photo eye and a short program.