3 - 5
3 Safety Standard Function Blocks
NX-series Safety Control Unit Instructions Reference Manual (Z931)
3
SF_CTU
SF_CTU
This FB increments the counter value when the counter input signal is received.
• This FB creates an up counter. The preset value and counter value must have a SAFEINT data type.
• When reset signal RESET changes to TRUE, counter value CV changes to 0 and counter output Q
changes to FALSE.
• When counter input signal CU changes to TRUE, CV is incremented. When the value of CV reaches
the value of PV or higher, the value of Q changes to TRUE.
• Even after the value of CV exceeds the value of PV, CV is incremented to up to 32,767 when CU
changes to TRUE.
• CU is ignored while RESET is TRUE. CV is not incremented.
Instruction Name FB/FUN Graphic expression
SF_CTU Up-counter FB
Variables
Input Variables
Variable Name Data type Valid range Default Description
CU Counter input BOOL TRUE or FALSE FALSE Counter input
RESET Reset signal BOOL TRUE or FALSE FALSE TRUE: Reset CV to 0.
PV Preset value SAFEINT 0 to 32767 0 Counter preset value
Output Variables
Variable Name Data type Valid range Default Description
Q Counter output SAFEBOOL TRUE or FALSE FALSE TRUE: CV is greater than or equal
to PV.
FALSE: CV is less than PV.
CV Counter value SAFEINT 0 to 32767 0 Counter present value
Function