Search the Community

Showing results for tags 'timl'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 1 result

  1. Using the TIML instruction

    Hi all, I'm fairly new to cx-programmer and I'm having a bit of difficulty with implementing the long timer (TIML). The ultimate goal is to set up two timers, the duration of which is dependent on some sort of user input from the HMI. I know for sure that the TIM will be insufficient in terms of timer length, and given I don't know the exact timing required I decided against just implementing multiple TIM timers. I've had a look at the manual and instruction help for TIML, where it says TIML D1 D2 S, where D1 corresponds to completion flag, D2 to PV and S to SV. No matter what I try, the timer just seems to finish immediately or shows Error (side note: is there any way to see what the error actually is?), no matter I define S to be. If I'm understanding the help correctly I should be able to do something like: TIML 200 D100 D200 where D200 is some value that I define? I guess that bit is what is tripping me up. As an example, one calculation for the timer resulted in the timer needing to be 24min (or 1440 seconds) in duration. So since TIML uses 0.1s increments I would want to define the S as 14400. How would I go about doing this? I am using cj1m cpu23 if that makes a difference. Regards, Jay