
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.
Setting data
■
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.
Processing details
• 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.
Operation error
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)
(Set value)
Error code
(SD0/SD8067)
Remarks
3405
A negative value is specified for the set value.
(d)
(Set value)
OUT
C0
@D0
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......