lluisot Posted August 20, 2014 Report Share Posted August 20, 2014 Hi , i need change the preset time at timer from hmi (v130) . Can i establish limit at timer variable in HMI ? Thanks . Link to comment Share on other sites More sharing options...
Alexander Posted August 20, 2014 Report Share Posted August 20, 2014 Yes, there is a timer HMI element that lets you display both current and preset timer values. If preset is selected there is also an option for keypad entry so that a user can then change the preset value of the timer. Link to comment Share on other sites More sharing options...
Alexander Posted August 20, 2014 Report Share Posted August 20, 2014 There isn't a direct way to limit the users input, but it is possible to regulate it using functions within the logic. To implement this you can use the "Load Timer/Counter Preset" function. This will load the value of a timer into an ML operand with a resolution of 10ms. All of the load/store functions related to times work with values of 10ms (eg. a value of 1 = 10ms) For example: A timer with a preset value of 30.00 (30 seconds) will load a value of 3000 into the ML. A timer with a preset value of 1:30:00 (1 minute 30 seconds) will load a value of 9000. You can then use this value in the ML in a comparison statement so that if a value is above or below a desired amount, to re-load a value into the timer to enforce a limit. 1 Link to comment Share on other sites More sharing options...
lluisot Posted August 21, 2014 Author Report Share Posted August 21, 2014 There isn't a direct way to limit the users input, but it is possible to regulate it using functions within the logic. To implement this you can use the "Load Timer/Counter Preset" function. This will load the value of a timer into an ML operand with a resolution of 10ms. All of the load/store functions related to times work with values of 10ms (eg. a value of 1 = 10ms) For example: A timer with a preset value of 30.00 (30 seconds) will load a value of 3000 into the ML. A timer with a preset value of 1:30:00 (1 minute 30 seconds) will load a value of 9000. You can then use this value in the ML in a comparison statement so that if a value is above or below a desired amount, to re-load a value into the timer to enforce a limit. Thanks for your help Link to comment Share on other sites More sharing options...
Jon1711 Posted January 19, 2017 Report Share Posted January 19, 2017 Just found this thread, I seem to have an issue setting the preset of a timer via the HMI. I'm using the HH.MM.SS (I have also tried HH.MM.SS.hh) option on keypad entry however when i run my project and view the timer in the watch window the preset always stays at 00.00.00.00, yet when I do a LD TP block the ML value changes when i change my timer on the HMI. Unfortunately I am unable to post my code on here, but I would assume the 'timer preset' HMI function would then transfer the value to the Timer and would start to run when you call the Timer Coil in the code? The timer coil has [00.00.00.00] written next to it and it seems that when I call the timer to run after presetting it, the 00.00.00.00 value from the coil is overwriting the timer and instantly resetting the timer to 0. I have a feeling I am missing something obvious here but any help is greatly appreciated. Thank you Jon Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted January 19, 2017 MVP 2023 Report Share Posted January 19, 2017 Which of the 3 types of timers are you using? Just working from memory, a new timer preset will not take effect until a timer coil is called in the ladder, or if a timer reset coil is activated. Are you certain the timer coil is actually being activated (i.e. is the subroutine being called, etc)? Link to comment Share on other sites More sharing options...
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