Other signal modules
7.4 Position decoder module SM 338; POS-INPUT; (6ES7338-4BC01-0AB0)
S7-300 Module data
504 Manual, 06/2017, A5E00105505-AJ
7.4.3.4 Freeze function
The freeze function "freezes" the actual encoder values of SM 338. The freeze function is
coupled to the digital inputs DI 0 and DI 1 of SM 338.
The freeze function is triggered by a signal transition (positive edge) a DI 0 or DI 1. Bit 31 = 1
(output address) identifies a frozen encoder value. You can freeze one, two or three encoder
values using one digital input.
Enable the freeze function by setting the corresponding parameters in
STEP 7
.
To allows their event-triggered evaluation, the encoder values are retained until the freeze
function is terminated.
Terminating the freeze function
The freeze function must be terminated separately at each encoder input. You acknowledge
the function in the user program by using STEP 7 operation T PAB to set bit 0, 1 or 2 to "xyz"
according to the channel (Program example: refer to chapter "AUTOHOTSPOT").
The acknowledgement resets bit 31 of the corresponding encoder value, and initiates a
refresh of the encoder values. You can freeze the encoder values again after you cleared the
ACK bit at the output address of the module.
In isochronous mode, the acknowledgement is processed at the time T
o
. From this point on,
you can freeze the encoder values again by setting the digital inputs.
Note
The Freeze function is acknowledged automatically when you assign new parameters with
different arguments to the relevant
channel (refer to chapter "AUTOHOTSPOT").
If the parameter are identical the Freeze function remains unaffected.