Long Counter - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Long counter

OUT_LC
This instruction increments the current long counter value (count value) by one on the rising edge (off to on) of the operation
result up to the OUT instruction. When the count value reaches the set value, the normally open contact of the long counter
turns on (continuity state) and the normally closed contact turns off (non-continuity state).
ST
ENO:=OUT_C(EN,Coil,Value);
■Execution condition
Instruction
OUT_LC
Setting data
■Description, range, data type
Operand
Description
Coil
Long counter number
Value
Set value for the long counter
EN
Execution condition
ENO
Execution result
*1 Only long counter type labels can be used.
■Applicable devices/labels
Operand
Bit
SB
Coil
Value
*1 Only K (decimal constant) can be used.
Processing details
• This instruction increments the current long counter value (count value) in the device specified by Coil by one on the rising
edge (off to on) of the operation result up to the OUT instruction. When the count value reaches the set value (current value
≥ set value), the normally open contact turns on (continuity state) and the normally closed contact turns off (non-continuity
state).
• Counting is disabled while the operation result remains on. (Count input does not need to be converted into pulses.)
• After counting-up, the count value and contact status remain unchanged until the RST instruction is executed.
• When the set value is 0, the same processing is performed as when it is set to 1.
Operation error
There is no operation error.
Execution condition
Every scan
Word
RX, RY, LB
SW
Range
0 to 4294967295
G, RWw, RWr, LW
5 SEQUENCE INSTRUCTIONS
5.1 Output Instructions
5
Data type
*1
ANY_BOOL
ANY32
BOOL
BOOL
Constant
K, H
*1
55

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents