Mitsubishi MELSEC Q Series Programming Manual page 352

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

UDCNT2
6.8.2
Counter 2-phase input up or down (UDCNT2)
UDCNT2
UDCNT2
Setting
Data
S
D
n
Function
(1) The present value of the counter designated by
input designated by
phase pulse).
(2) Direction of the count is determined in the following manner:
• When
are added to the present value of the counter).
• When
are subtracted from the present value of the counter).
• No count operation is performed if
(3) Count processing is conducted as described below:
• When the count is going up, the counter contact designated at
present value becomes identical with the setting value designated by n. However, the
present value count will continue even when the contact of the counter designated at
goes ON. (See Program Example (1))
• When the count is going down, the counter for the contact designated at
when the present value reaches the set value
6-150
Command
:
+ 0: Input number for count input (A phase pulse) (bits)
S
S
+ 1: Input number for count input (B phase pulse) (bits)
S
: Number of the counter to be enabled to start counting with the UDCNT2 instruction (Device name)
D
n : Value to set (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
––
––
(Only X)*1
––
––
(Only C)*2
*2
*2
*2
*1: Only the X device can be used for
(A phase pulse) and the status of the input designated by
S
is ON, if
+1 goes from OFF to ON, count up operation is performed (values
S
S
is ON, if
+1 goes from ON to OFF, count down operation is performed (values
S
S
High
Basic
performance
UDCNT2
S
J
\
U
\G
Bit
Word
––
––
. However, the X device can be used only in the range of number of I/O points
S
(the number of accessible points to actual I/O modules).
*2: Local devices and the file registers set for individual programs cannot be used.
is updated depending on the status of the
D
is OFF.
S
1. (See Program Example (1))
Process
Redundant
Universal
LCPU
n
D
Constants
Zn
Other
K, H
––
––
––
+1 (B
S
goes ON when the
D
D
goes OFF
D

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents