Mitsubishi MELSEC Q Series Programming Manual page 349

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

Advertisement

6.8
Other Convenient Instructions
6.8.1
Counter 1-phase input up or down (UDCNT1)
UDCNT1
UDCNT1
Setting
Data
S
D
n
Function
(1) When the input designated at
designated at
(2) The direction of the count is determined by the ON/OFF status of the input designated by
+1.
S
• OFF : Count up (counts by adding to the present value)
• ON
(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
Command
:
+ 0: Input number for count input (bits)
S
S
+ 1: For setting count up/down (bits)
S
•OFF: Count up (add numbers when counting)
•ON: Count down (subtract numbers when counting)
: Number of the counter to be enabled to start counting with the UDCNT1 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
*2: Local devices and the file registers set for individual programs cannot be used.
goes from OFF to ON, the present value of the counter
S
will be updated.
D
: Count down (counts by subtracting from the present value)
High
Basic
performance
UDCNT1
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).
1. (See Program Example (1))
UDCNT1
Process
Redundant
Universal
LCPU
n
D
Constants
Zn
Other
K, H
––
––
––
goes ON when the
D
D
goes OFF
D
6-147
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents