joeltackie
I connected OpenPLC to FactoryIO, but for some reason the conveyor never runs when toggled, even though there is no error in my LD code. All sensors respond in real time in Runtime's Monitoring section, but it doesn't seem to respond to the conveyor (actuator) like it should. I think that's the issue; runtime can't control the conveyor coil. below are screenshots[203128%2F9293026%2Fmceclip0][203128%2F9293030%2Fmceclip0][203128%2F9293038%2Fmceclip0][203128%2F9293037%2Fmceclip0][203128%2F9293024%2Fmceclip0]
[203128%2F9293023%2Fmceclip0]
Reply 0 0
thiagoralves
From your ladder diagram, “coil” will never turn on while “sensor” is true
Reply 0 0
fg71
Here is the first example of FactoryIO include push buttons to start and stop. And use sensor to stop the conveyor.
 
  1. First we need a latch function to set the state for start
  2. We include contact normal open to break the rung when the box reach the sensor.
PS. FactoryIO is Modbus Client and your Arduino compatible board is your Modbus Server
 
Read Digital as Input (Configuration). FactoryIO PLC on the left side is the coils (contacts) and on the right side is input (coils)
Its kind of opposite (motor) is a actuator (output) but here it become a input in FactoryIO. Meaning when the state of variable conveyor
is TRUE it will start the conveyor.
 
[203128%2F9293601%2Fmceclip0]
 
[203128%2F9293602%2Fmceclip0]
Reply 0 0
joeltackie
From your ladder diagram, “coil” will never turn on while “sensor” is true
I had the same issue even without the sensor
Reply 0 0
joeltackie
Here is the first example of FactoryIO include push buttons to start and stop. And use sensor to stop the conveyor.
 
  1. First we need a latch function to set the state for start
  2. We include contact normal open to break the rung when the box reach the sensor.
PS. FactoryIO is Modbus Client and your Arduino compatible board is your Modbus Server
 
Read Digital as Input (Configuration). FactoryIO PLC on the left side is the coils (contacts) and on the right side is input (coils)
Its kind of opposite (motor) is a actuator (output) but here it become a input in FactoryIO. Meaning when the state of variable conveyor
is TRUE it will start the conveyor.
 
[203128%2F9293601%2Fmceclip0]
 
[203128%2F9293602%2Fmceclip0]
My aim was to right a LD only programme that would run perfectly is Rslogix 5000 and also OpenPLC... no FDs included
Reply 0 0
thiagoralves
Just noticed you’re using the wrong address for your conveyor variable:
IMG_3879.jpeg
 
Why did you placed it in an IX address? That’s for inputs. You cannot turn on/off an input.
Reply 0 0
fg71
Why did you placed it in an IX address? That’s for inputs. You cannot turn on/off an input.
I do not turn on/off of a input its the init (contact) that do that. I understand its confusing, in FactoryIO configuration you could set I/O Read Digital as Input. It means the init logic (start/stop) is the condition for conveyor to be True or False and FactoryIO read the input.
 
I use start/stop button panel in FactoryIO to start or stop the conveyor. When a user click the start button on panel in FactoryIO (Client)
It set the start contact to True and the SR block become True and init coil become True. The next rung start with init contact AND sensor (Start as True). If init and sensor is True conveyor become True (conveyor start). Now we have 2 ways to stop the conveyor. 1 from the stop button on the panel or from a sensor.
 
This is FactoryIO configuration and not a technology question what is correct or not, my example do work.
 
[203128%2F9297031%2Fmceclip0]
Reply 0 0
fg71
My aim was to right a LD only programme that would run perfectly is Rslogix 5000 and also OpenPLC... no FDs included
The sensor in FactoryIO is normal open contact and not normal closed contact that your LD used. In other words when you start FactoryIO the sensor is active and contact is TRUE. The sensor is Retroreflective Photoelectric Sensor, when a object break the beam the contact become FALSE. Other way to use it could be to count object passing if there is a distance between every object. The contact will switch TRUE/FALSE every time a object is passing.  
Reply 0 0
Write a reply...
Reply