brownie1985 Posted January 19, 2011 Report Posted January 19, 2011 Hi, I am wondering if anyone knows if it is possible to use index registers for timers in GX Works 2. I am using an FX3U plc and I would like to pass an index value into a function block so I can use a different timer inside each function block. I have used indexes with timers extensively in GX Developer -FX with the same PLC without any problems but using the structured ladder in GX Works 2 I get a compile error. The programming manual suggests it is possible saying "Only Z0 or Z1 can be used for contacts of coils of the timer" but this doesnt seem to work. I have attached a screenshot which illustrates the problem. The first output function (line 21) uses timer 10 and compiles correctly, the second uses timer (1+10)=11 and fails. Interestingly, if I change the PLC to a Q type this line does compile (although that is not much benifit to me!) Does anyone know how to get around this problem? Cheers.
Gambit Posted January 19, 2011 Report Posted January 19, 2011 (edited) If you need different timers in a FB just use the Timer_10_FB_M or Timer_100_FB_M Edited January 19, 2011 by Gambit 1
brownie1985 Posted January 19, 2011 Author Report Posted January 19, 2011 Thanks Gambit, I overlooked the function block option - that works great!
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