Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual
Page 40

2Ć6
2.3
Changing the Preset Value of a Counter Instruction by
Using Ladder Logic
You can change the preset value of a counter instruction without having to edit the
instruction in the AutoMax Ladder Editor. This is useful for frequently loading different
preset values into a counter.
To change the preset value by using ladder logic
Step 1.
Place a Move Source Data to Destination (MOVE) instruction in the ladder
program.
Step 2.
In the In input, enter the value you want to use as a new counter preset
value.
Step 3.
In the Out output, enter the name of the counter's preset input
(name.CPreset).
Step 4.
Condition the EN input of the MOVE instruction so that the new counter
preset is loaded into the Counter instruction.
Tip
You can also use other instructions that have a double integer output to change a
counter preset. For example, you can use an ADD instruction to calculate a new preset
and place the result in counter's preset input (name.CPreset).