EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Counting up or down the Current Value (1-Phase Input); Special Counter Instructions

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.13 Special Counter Instructions
879
7
7.13 Special Counter Instructions
Counting up or down the current value (1-phase input)
UDCNT1
This instruction updates the current value of the specified counter.
Execution condition
Setting data
Descriptions, ranges, and data types
*1 Only labels assigned to device (X) can be used.
*2 Only labels assigned to device (C) can be used.
Applicable devices
*1 Only X can be used. Note, however, that it can be used only within the range of the number of I/O points (the number of points that can
access I/O modules).
*2 Only C can be used.
Ladder ST
ENO:=UDCNT1(EN,s1,s2,d);
FBD/LD
Instruction Execution condition
UDCNT1
Operand Description Range Data type Data type (label)
(s1) (s1)+0: Count input number Bit ANYBIT_ARRAY
*1
(Number of elements:
2)
(s1)+1: Count up/down flag
Off indicates count-up (counting up the current value).
On indicates count-down (counting down the current value).
(d) Number of the counter (device name) to be counted by the
UDCNT1 instruction
Device name ANY16
*2
(s2) Set value -32768 to 32767 16-bit signed binary ANY16
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,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)
*1
 
(d) 
*2
 
(s2) 
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(s1) (d) (s2)
EN ENO
ds1
s2

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals