Danlar
Hi All,
 
I am just being introduced to open plc and I have a question relating to a motor control program I have written.
 
Essentially the motor control ladder logic is pretty simple as it allows a motor to run in either forward or reverse using timers and limit switches.
I wish to connect to MODBUS, and I am aware for my inputs and outputs the location needs to be set as %X0.2, 0.2, 0.3, ... o.n etc, however I am wondering about the two timers I have.
Just to be clear, I do not want to change the timers via MODBUS, I wish to keep the time as it is set in the ladder logic program. In this instance, do I leave the location field blank?
And for that matter, would I keep the internal latches blank also? Logically it makes sense to only have location settings for actual inputs such as my start/stop and limits, and the motors for outputs.
 
Could I please obtain confirmation that my suspicions are correct, or some further direction if they are wrong.
 
Regards,
Dan
Reply 0 0
thiagoralves
You only need to add locations to variables that you either want to monitor via Modbus or that you want to be associated to the physical hardware in some way (like inputs and outputs for example). In case of a timer, that is a function block, not a single variable, so you cannot locate that. You can, however, use a located INT variable on the timer PT input (as long as you convert that to TIME) or on the timer ET output (same applies for the conversion)
Reply 0 0
Danlar
Hi Thiago,
 
Yes ok.
 
Thanks for the reply.
 
Regards,
Dan
Reply 0 0
Reply