stanigator Posted November 2, 2011 Report Posted November 2, 2011 I'm not sure if this is incrementing a counter. It would be great to hear a brief explanation as I'm new to Melsec FX3G and have no idea on where to get started interpreting what this is doing: Quote
Delbert Posted November 2, 2011 Report Posted November 2, 2011 Because your program doesnt show anything turning on M2000 or M2012 only the last two line are doing anything at all. The last two line are incrementing D900 and D902 every 10ms Delbert Quote
plcdp Posted November 2, 2011 Report Posted November 2, 2011 (edited) Hello, The bits M8011 and M8012 are special bits for the internal clock. M8011 is a .01 sec pulse and M8012 is a .1 sec pulse. Basically what you have here is: Every tenth of a second if M2012 is on the value in data register 600 will increment by one. If M2012 is on, then data register 6000 is compared with the constant of 10000. If the result of the comparison is D6000 > 10000 then M200 turns on. If the result of the comparison is D6000 = 10000, then M201 turns on. If the result of the comparison is D6000 < 10000 then M202 turns on. If M2000 is on then reset the value of D600 to 0. Every hundredth of a second add 1 to the value stored in D900 And also every hundredth of a second add 2 to the value stored in D902 Hope this helps, Dave Edited November 2, 2011 by plcdp 1 Quote
JRoss Posted November 2, 2011 Report Posted November 2, 2011 I'm going to take a wild stab in the dark here and suggest that your screen shot is chopping off a little information, and that there should be another digit, most likely a zero, tacked onto the destination addresses in every rung. Assuming that's correct, here's my edit of Dave's post: If that is the case, then the first three rungs amounts to a self resetting 1000 seconds timer with 100ms precision. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.