Cylinder sensor with IO-Link
MK59xx
23
9.8.2 Switching cycle monitoring
The device stores the number of switching cycles on the switching signal channels SSC1.1 (counter
SCT1.1) and SSC1.2 (counter SCT1.2). Depending on the set counting condition, individual switching
edges or piston strokes (two switching edges) will be counted.
The counter value can be read via the IO-Link interface.
If the hardware output is used for diagnostics, the switching state changes when a set switching cycle
threshold is reached. When using the IO-Link interface, a data bit is set. The change of state applies
for a defined hold time or until the counter is reset.
9.8.2.1 Configuring counters
The switching cycle counters SCT1.1 and SCT1.2 are configured separately. A counter with all its
parameter settings is assigned to the hardware output via the output configuration.
Parameter
Explanation
SSC-EnhCtr_HoldTime. SSC1.1
SSC-EnhCtr_HoldTime. SSC1.2
Hold time:
duration of the changed switching status when reaching the switching cycle
threshold in milliseconds.
Requirement: [SSC-EnhCtr_AutoReload. SSC1.x] = On.
SSC-EnhCtr_AutoReload. SSC1.1
SSC-EnhCtr_AutoReload. SSC1.2
Counter reset:
• OFF: The output switches when the switching cycle threshold is reached.
The counter continues counting until it is reset: Reset counter to zero
.
• On: The output switches when the switching cycle threshold is reached.
The switching status remains active for the set hold time [SSC-
EnhCrt_HoldTime. SSC1.x]. Afterwards, the switching output and the
counter are reset. The counter starts again at 0.
SSC-EnhCtr_CountCondition. SSC1.1
SSC-EnhCtr_CountCondition. SSC1.2
Count condition:
• Rising: The counter only adds up switching cycles when changing from
low to high (0
Ò
1).
• Falling: The counter only adds up switching cycles when changing from
high to low (1
Ò
0).
• Both: The counter adds up the switching cycles on both edges.
u
Observe the switch point logic
.
SSC-EnhCtr_Threshold. SSC1.1
SSC-EnhCtr_Threshold. SSC1.2
Switching cycle threshold:
Number of switching cycles at counter SCT1.x at which a switching signal is
triggered or the SCT1.x bit is set.
Tab. 2: Parameters for switching cycle monitoring
Parameter setting:
u
Call up [Parameters] > [Output Configuration].
u
Select [oux] and set the diagnostic function for output OUTx: [dOU / diagnostic output].
u
Select [dFUx] and select the counter for the diagnostic output: [Overflow SCT1.1] or [Overflow
SCT1.2].
u
Select [Parameters] > [Counter configuration].
u
[SSC-EnhCtr_HoldTime. SSC1.x] and set the hold time for counter SCT1.x.
u
[SSC-EnhCtr_AutoReload. SSC1.x] and set counter reset for counter SCT1.x.
u
[SSC-EnhCtr_CountCondition. SSC1.x] and set the counting condition for counter SCT1.x.
u
Select [SSC-EnhCtr_Threshold. SSC1.x] and set the switching cycle threshold for counter SCT1.x.
9.8.2.2 Read counter values
u
Select [Parameters] > [Counter configuration].
u
Select [SSC-EnhCtr. SSC1.1] and read the current value for counter SCT1.1.