5 SEQUENCE INSTRUCTIONS
5.3 Output Instructions
111
5
Counter
OUT C
This instruction increments the current value of the counter specified by (d) by 1 when the operation result up to OUT
instruction changes from OFF to ON, and when the counter reaches the end of its count, NO contact becomes conductive and
NC contact becomes non-conductive.
■Descriptions, ranges, and data types
■Applicable devices
*1 Only C can be used.
*2 T, ST, C cannot be used.
*3 Indirect specification cannot be entered for the counter set value.
*4 Only decimal constant (K) can be used.
• This instruction increments the current value of the counter specified by (d) by 1 when the operation result up to OUT
instruction changes from OFF to ON, and when the counter reaches the end of its count (current value set value), NO
contact becomes conductive and NC contact becomes non-conductive.
• The counter does not count while the operation result remains on. (Count input does not need to be converted to pulses.)
• After a count up, the count value and contact status do not change until the RST instruction is executed.
• When the set value is 0, the same processing as for set value 1 is performed.
Ladder diagram Structured text
ENO:=OUT_C(EN,d,set value);
Operand Remarks Range Data type Data type (label)
(d) Counter Number Bit ANY_BOOL
(Set value) Counter set value 0 to 65535 16-bit unsigned binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(d)
*1
(Set value)
*2
*3
*4
Error code
(SD0/SD8067)
Remarks
3405 A negative value is specified for the set value.