Other Convenient Instructions; Single-Phase Input Up/Down Counter - Mitsubishi MELSEC-Q Series Programming Manual

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

UDCNT1
6.8

Other Convenient Instructions

6.8.1

Single-phase input up/down counter

UDCNT1
Structured ladder
UDCNT1
EN
ENO
s
n
Input argument,
EN:
s:
n:
Output argument,
ENO:
d:
Setting
data
s
n
d
Function
(1) When the input specified for
specified for
(2) The direction of the count is determined by the ON/OFF status of the input specified for
+1.
s
• OFF : Up counter (counts by adding to the current value)
• ON

6.8 Other Convenient Instructions

6-152
6.8.1 Single-phase input up/down counter
ST
ENO:=
UDCNT1
d
Executing condition
s+0:Input number for the counter input
s+1:For setting the up/down counter
• OFF······ Up-counter
• ON········ Down-counter
Set value
Execution result
Counter number that starts counting by the UDCNT1
instruction
Internal device
R, ZR
Bit
Word
*1
(X only)
*2
*2
*2
*1
(C only)
s
will be updated.
d
: Down counter (counts by subtracting from the current value)
UDCNT1
(EN,s, n, d);
: Bit
: Array of bit (0..1)
: ANY16
: Bit
: ANY16
J
\
U
\G
Bit
Word
*1: Specify the array in which X is set as a device for global label.
*2 : Local devices and file registers per program cannot be used as setting data.
turns from OFF to ON, the current value of the counter
UDCNT1
Universal
UD
indicates the following instruction.
Constant
Zn
K, H
High
Performance
Others

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qcpu

Table of Contents