CJH Posted September 7, 2011 Report Posted September 7, 2011 (edited) From the instructions for timers: TMR_THOUS Supported CPUs The standard timer increments every thousandth of a second (1 msec) while it receives power flow, and resets to 0 when power flow stops. The timer passes power after the specified interval 'PV' has elapsed, as long as power is received. ????: Address; the first of three consecutive WORD registers. Word 1 - Current Value 'CV', Word 2 - Preset Value 'PV', Word 3 - Control Word. Warning: Do not use the ????, ????+1, or ????+2 addresses with other instructions. Overlapping references cause erratic timer operation What I would like to know, is there any simple way to know if you're accidentally using overlapping references? Edited September 7, 2011 by CJH
Steve Bailey Posted September 7, 2011 Report Posted September 7, 2011 You could run a usage or cross reference report. You could also sort your variables by address and check there. It's fairly easy to prevent overlapping when you're initially programming timers or counters. When you assign an address, type in "%R" without the quotes. That will foce the programming software to assign the next available %R address to the function. The technique won't fill in gaps in the actual %R usage, but it will prevent the majority of overlaps. The technique works with all memory types and it also works for Logicmaster, VersaPro or Machine Edition softw.are
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