ghid Posted October 28, 2013 Report Posted October 28, 2013 Hi, From what I know about PLCs program cycle, the inputs are readed in the order that are positioned in the program, and at the end of the program flow, the outputs are actuated. And in my opinion, if a memory it is positioned as a condition befoire it's actuation, the output that is deppending on this memory condition never should be actuated. In the following example, the H10.0 memory will go high when I will set the bit 0.02 to high, and will stay high just until at the end of the cycle (because of the DIFU instruction ), in those conditions, the H5.04 souldn't go on high, but will go, but why? because when the cycle is starting the H10.0 is scanned as low and H5.04 showld not go on high, then I set the 0.02 to high, H10.0 goes to high and at the start of the next cycle should be low, and H5.04 should be low. Please help me to understand. Thank you.
PMCR Posted October 28, 2013 Report Posted October 28, 2013 Here is what is happening: The DIFU instruction turns a bit on for an entire scan, not just to the end of scan. So, the bit will be on from the DIFU instruction, through the end of scan, back to the beginning, and back to the DIFU instruction. When it reaches the DIFU 1 full scan after it was turned on, the bit is turned off.
ghid Posted October 30, 2013 Author Report Posted October 30, 2013 Thank you for your response. So, you are saying that the DIFU instruction extends during two PLC cycles?
PMCR Posted October 30, 2013 Report Posted October 30, 2013 Yes. If your PLC program looks like this, bit x will turn on at the DIFU instruction, remain on for Ladder 5,6, END, Ladder 1,2,3,4, and then turn back off when it reaches the DIFU again. <LADDER> 1 <LADDER> 2 <LADDER> 3 <LADDER> 4 <DIFU> bit x <LADDER> 5 <LADDER> 6 <END>
Michael Walsh Posted October 30, 2013 Report Posted October 30, 2013 In other words, EVERY use of bit X will be in the on state for exactly one scan.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now