Set counter value and lock via PLC variable

Set counter value via a PLC variable

You can set the counter value at runtime via the process data. Proceed as follows:

1. Enter the desired counter value in "ENC Outputs Channel n" > "Set counter value".
Set counter value and lock via PLC variable 1:
2. Apply a rising edge to "ENC Outputs Channel n" > "Control" > "Set counter".
Set counter value and lock via PLC variable 2:
The counter value is applied.
The status bit "ENC Inputs Channel n" > "Status" > "Set counter done" goes to 1 for confirmation.
Set counter value and lock via PLC variable 3:

Lock counter value via a PLC variable

The counter value can be locked or unlocked via the PLC application.

 

Set counter value and lock via PLC variable 8:

Lock counter value via gate input

If the ModuleGroup "ENC_L_G" is selected, the counter value can be locked via an edge at the gate input. See chapter Lock counter value.