Timer Preset Value Change

Have the HMI enter a value into an integer.
check if the integer is NEQ the timer preset (NEQ T4:2/PRE N7:12); if not equal than MOV the integer to the timer preset

Timer.jpg
 
Last edited:
Modify the panel view application to accept user inputs for the timer values in question, I would use an integer word in the processor to hold the timer value in seconds (if seconds is what you want), write to this word from your panelview application.

If necessary, use math instructions to convert the seconds stored in the NX:XX word to your timers base (.1 or .01), store that value in an integer.

use a MOV to move the NX:XX into T4:XX.PRE. Set up whatever limit tests you will need to limit the values that can be moved into the timers preset.

Forgive me if my addressing is a little off, I've had my head in ControlLogix for a while.
 
Last edited:
Modify the panel view application to accept user inputs for the timer values in question, I would use an integer word in the processor to hold the timer value in seconds (if seconds is what you want), write to this word from your panelview application.

If necessary, use math instructions to convert the seconds stored in the NX:XX word to your timers base (.1 or .01), store that value in an integer.

use a MOV to move the NX:XX into T4:XX.PRE. Set up whatever limit tests you will need to limit the values that can be moved into the timers preset.

Forgive me if my addressing is a little off, I've had my head in ControlLogix for a while.

Highlighted above - must include limit checking !! And definitely DON'T do a MOV of a negative value into a Timer Preset, or the PLC will Major Fault. We don't like red lights on our PLCs. (except the red light on the SLC power supply, which means good !!)
 

Similar Topics

Hi there I'm guessing this is a straightforward one but after much experimenting I've been unable to find an answer. The software is TIA V16...
Replies
5
Views
2,340
Hello Folks, I am new to Direct Soft, but a customer has a program that need me to edit. It is a DL06. We have a TMR function (T4) that we want...
Replies
24
Views
5,634
I'm trying to simply change a timer preset value from 100 to 500 (x .01 sec) using RSLogix 500. It allows me to highlight the value and type in...
Replies
5
Views
7,939
Hi all, I've tried to calculate a Preset Timer Value for a CPU318-2 using this code; TIME1 till 5 are local integers TIME6 was S5TIME //...
Replies
5
Views
3,286
Hi, Our customer has a MLX 1500 at site, there are some timers need to be modify. Around 40 timers preset value. If not mistaken DAT cannot...
Replies
0
Views
2,291
Back
Top Bottom