Next, create 13 EBOOL variables named Actuator0 up to Actuator12. On the Comment fields type in the name of the Factory I/O points they represent so you can easily relate one to another. These will be the variables used for sensor values. The project has been created and you are now ready to start writing the PLC program.īut first, you must define the I/O variables that will be used.ĭouble Left-click on Elementary Variables and create 17 EBOOL variables named Sensor0 up to Sensor16. Start Unity Pro and create a new project ( FILE > New). The discrete output point used by the display (Counter) is read from %MW0. On this sample, digital input I/O points (sensors) are written to %M0 up to %M16, and digital outputs (actuators) are read from %M17 up to %M29. We are setting an Offset of 17 to Outputs in order to have the first 17 addresses available for Coils (sensors).Īlso, in Schneider Unity pro, both Discrete Inputs and Holding Registers are stored in internal Word memories (%MW). In Schneider Unity Pro, both Coils and Inputs are stored in internal Boolean memories (%M) and share the same memory space. Read operations can be performed on Coils or Inputs according to settings chosen in the CONFIGURATION panel. Modbus TCP/IP clients can only write to Coils. Note that I/O points are already setup with 17 digital inputs (sensors), 13 digital outputs (actuators) and 1 input register (number shown by the display: Counter). Start Factory I/O and open the Sorting by Height (Advanced) scene. Setting up Factory I/O ¶ĭownload the zip archive (top of this page), extract it and open the project in Schneider Unity Pro. We will be using Unity Pro simulation mode, which simulates an M340 PLC with a Modbus server.įactory I/O will be running as a Modbus TCP/IP client. This tutorial gives you step-by-step instructions on how to use Schneider Unity Pro SoftPLC to control Factory I/O through Modbus TCP/IP. Schneider Unity Pro Soft PLC through Modbus.zip
0 Comments
Leave a Reply. |