Other Convenient Instructions; Count 1-Phase Input Up Or Down (Udcnt1) - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS

6.8 Other Convenient Instructions

6.8.1 Count 1-phase input up or down (UDCNT1)

Internal Devices
Set
(System, User)
Data
Bit
Word
S
(Only X)
D
(Only C)
n
[Instruction Symbol] [Execution Condition]
UDCNT1
[Set Data]
Set Data
S
D
n
[Functions]
(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.
• OFF
• ON
(3) Count processing is conducted as described below:
• When the count is going up, the counter contact designated at
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
• When the count is going down, the counter for the contact designated at
the present value reaches the set value minus 1. (See Program Example (1))
• The counter designated at
If it is counting up when the present value is 32767, the present value will become -32768.
Further, if it is counting down when the present value is -32768, the present value will
become 32767.
6 - 113
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
: Local devices and the file registers set for individual programs cannot be used.
Command
+0: Input number for count input
S
S
+1: For setting count upper down
• OFF : Count up (add numbers when counting)
• ON
: Count down (subtract numbers when counting)
• Number of counter that will perform count on UDCNT1 instruction
• Set value
S
will be updated.
D
: Count up (counts by adding to the present value)
: Count down (counts by subtracting from the present value)
goes ON.(See Program Example (1))
D
is a ring counter.
D
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
UDCNT1
S
Meaning
goes from OFF to ON, the present value of the counter
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
Other
K, H
Zn
n
D
Data Type
Bit
Word
BIN16
goes ON when the present
D
goes OFF when
D
6 - 113
Q4AR
S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents