The structure ST_InputControl configures the cycle counter for the safety-related inputs of an XPSU safety module. The number of cycles of a safety-related input allows you to determine the number of cycles of the equipment (sensor, command device) connected to this safety-related input.
An array of six structures is connected to the input i_astControlInp of the function block FB_XpsuMain.
Each structure configures the input channel or input channels of a safety-related input of the XPSU safety module.
Name |
Data type |
Description |
---|---|---|
udiMaxNumOp |
UDINT |
Maximum number of cycles of safety–related input specified with byMonitorInput1 (and with byMonitorInput2 in the case of XPSUDN or XPSUS safety modules which feature safety-related inputs having two input channels). If the value is set to 0, the cycles are not counted. |
byMonitorInput1 |
BYTE |
Specifies the number of the input channel Snn of the safety-related input of the XPSU safety module. Format: Number nn of the input channel Snn of the safety-related input to configure. Examples: 12 configures S12, 62 configures S62. If your XPSU safety module has safety-related inputs with two input channels (XPSUDN, XPSUS), you can configure the corresponding second input channel via the structure element byMonitorInput2. If the value is set to 0, the input channel is not monitored. |
byMonitorInput2 |
BYTE |
Specifies the number of the second input channel of the safety-related input of an XPSU safety module if your XPSU safety module has safety-related inputs with two input channels (XPSUDN, XPSUS). Format: Number nn of the second input channel Snn of the safety-related input configured with byMonitorInput1. Examples: 13 configures S13, 63 configures S63. If the value is set to 0, the input channel is not monitored. |
xReset |
BOOL |
If this value is set to TRUE, the cycle counter for the safety-related input or input channel corresponding to this array element is reset to the value of udiMaxNumOp. Such a reset may be required if, for example, you have replaced equipment connected to the safety-related input. If the maximum number of cycles of the safety-related input is reached (and after you have replaced affected equipment), a reset is required for the counting to resume.
NOTE: After resetting the counter by setting xReset to TRUE, xReset must be set back to FALSE by the application program. If the value remains TRUE, the counter is continuously reset.
|