Download Print this page

Long Counter - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Long counter

OUT LC
This instruction increments the current value of the long counter specified by (d) by 1 when the operation result up to the 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.
Ladder diagram
(d)
Value: Set value
FBD/LD
EN
ENO
Coil
Value
("OUT_C" enters .)
Setting data
■Descriptions, ranges, and data types
Operand
Remarks
*1
(d)
Long counter number
*2
(Set value)
Long counter set value
EN
Execution condition
ENO
Execution result
*1 In the case of the ST language and the FBD/LD language, d displays as Coil.
*2 In the case of the ST language and the FBD/LD language, Set value displays as Value.
*3 Only timer type/retentive timer type label can be used.
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(d)
(Set value)
*1 T, ST, C cannot be used.
*2 Only decimal constant (K) can be used.
Processing details
• This instruction increments the current value of the long counter specified by (d) by 1 when the operation result up to the
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 or ZRST instruction is executed.
• When the set value is 0, the same processing as for set value 1 is performed.
• When signed (-2147483648 to + 2147483647) or high speed counter is assigned to the LC, the UDCNTF instruction is
used. For the UDCNTF instruction, refer to Page 580 UDCNTF.
6 SEQUENCE INSTRUCTIONS
118
6.3 Output Instructions
Value
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=OUT_C(EN,Coil,Value);
Range
0 to 4294967295
Double word Indirect
specification
Z
LC
LZ
Data type
Data type (label)
*3
Long counter
ANY
32-bit unsigned binary
ANY_INT
Bit
BOOL
Bit
BOOL
Constant
K, H
E
$
*2
Others

Hide quick links:

Advertisement

loading