Laader Logic Question

sayahan2003

Member
Join Date
Jun 2006
Location
Calgary
Posts
185
Hi my friend,
In the following network, can you tell me when the one-shot coil is on? The register 40005 is the "RTU second". as you see in first photo, both registers 40005 and 40065 are equal but the coil is on. in the second photo, both registers are still equal but the coil is not on. during one minute interval, sometimes the coil become on more than once. but sometimes only once and this will happen in various seconds not a specific second.
it is very confusing o_O

Thanks in advance for your time.

on.jpg off.jpg
 
It is very unlikely that you will be able to observe consistently the valid on or off states. Communications between your programming device and the PLC typically take place at the end of a scan. This may vary depending on the particular PLC. For verification of proper operation add a counter (or an add of 1 to a register) on a rung just after the move command. Trigger the counter or add instruction with your one-shot bit. See if the count rises as you would expect.
 
It is very unlikely that you will be able to observe consistently the valid on or off states. Communications between your programming device and the PLC typically take place at the end of a scan. This may vary depending on the particular PLC. For verification of proper operation add a counter (or an add of 1 to a register) on a rung just after the move command. Trigger the counter or add instruction with your one-shot bit. See if the count rises as you would expect.
Thank you so much Bernie,
I did what you said and now it is clear that this logic is a 1 second pulse generator. the value of the counter increases every second.
It was very helpful. I really appreciate it.

3.jpg
 
It is very unlikely that you will be able to observe consistently the valid on or off states. Communications between your programming device and the PLC typically take place at the end of a scan. This may vary depending on the particular PLC. For verification of proper operation add a counter (or an add of 1 to a register) on a rung just after the move command. Trigger the counter or add instruction with your one-shot bit. See if the count rises as you would expect.

This is precisely why I avoid using one shots.
 
What kind of logic is going on in these instructions? I have not see it before.
 
In general while monitoring the system do not expect to see accurately information (like a one shot) which changes very quickly. If you are using data views as well as observing information directly on the ladder you may be observing data from different scans. You will need to think like the PLC and develop strategies, like the counter I suggested and which you used. Use a latch to verify rare quick signals.

By the way, does the one second count roll over? You may be losing a calculation of the average each rollover. You may want to OR the < and > outputs of the compare to your one shot coil.

To sparkie, after you have seen many ladder representations you tend to adapt quickly to other formats. I hadn't seen this either but it was similar enough to get the idea (a compare of current and former scan values yielding a '< = >' evaluation followed by a move of current to the previous scan register.)
 
Last edited:
In general while monitoring the system do not expect to see accurately information (like a one shot) which changes very quickly. If you are using data views as well as observing information directly on the ladder you may be observing data from different scans. You will need to think like the PLC and develop strategies, like the counter I suggested and which you used. Use a latch to verify rare quick signals.

To sparkie, after you have seen many ladder representations you tend to adapt quickly to other formats. I hadn't seen this either but it was similar enough to get the idea (a compare of current and former scan values yielding a '< = >' evaluation followed by a move of current to the previous scan register.)

Thanks Bernie,
I like your idea of "think like the PLC".
 
I usually use a timer to set a coil with a holding contact ahead of the rungs being controlled. Then, after the operation, I use a timer done bit to release the holding coil. I think I have some sample logic - I'll dig it up and post it when I get back to the office.
 
I usually use a timer to set a coil with a holding contact ahead of the rungs being controlled. Then, after the operation, I use a timer done bit to release the holding coil. I think I have some sample logic - I'll dig it up and post it when I get back to the office.

Awesome! Thanks Tom,
 

Similar Topics

Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
9
Views
74
Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
161
Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
27
Views
610
I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
193
Hello Dear users, I am writing about a problem that has been bothering me for a few days, i.e. I am trying to establish remote access to the Allen...
Replies
0
Views
87
Back
Top Bottom