580
8 APPLICATION INSTRUCTION
8.14 Special Counter Instruction
8.14
Special Counter Instruction
Signed 32-bit bi-directional counters
UDCNTF
This instruction increments the current value of the counter specified by (d) by 1 when the operation result up to UDCNTF
instruction changes from OFF to ON, and when the counter reaches the end of its count, NO contact becomes turns ON and
NC contact becomes turns OFF. The high-speed pulse input/output module is not supported.
When the long counter specified by (d) is a high-speed counter, up-counting and down-counting are enabled.
For details on the high-speed counter, refer to
MELSEC iQ-F FX5 User's Manual (Application).
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*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 counter specified by (d) by 1 when the operation result up to UDCNTF
instruction changes from OFF to ON, and when the counter reaches the end of its count, NO contact becomes turns ON
and NC contact becomes turns OFF.
• When the long counter specified by (d) is a high-speed counter, up-counting and down-counting are enabled.
• During up-counting, the output contact turns ON when the current value changes from a value less than the set value to a
value not less than the set value.
• During down-counting (only when using a high-speed counter for (d)), the output contact turns OFF when the current value
changes from a value not less than the set value to a value equivalent to the “set value -1” or less.
• Counting is continued also when the drive contact changes from OFF to ON after the output contact changes. (Only when
specify other than a high-speed counter for (d))
Ladder diagram
Structured text
ENO:= UDCNTF(EN, s, d);
FBD/LD
Operand
Description
Range
Data type
Data type (label)
(d)
Long counter number
Device name
ANY32
(s)
Long counter set value
-2147483648 to
2147483647
32-bit signed binary
ANY32_S
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
T, ST, C, D, W,
SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s)
(d)
(d)
(s)
EN
ENO
d
s
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......