EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC QCPU

Mitsubishi MELSEC QCPU User Manual

Mitsubishi MELSEC QCPU
285 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
Page #264 background imageLoading...
Page #264 background image
6 - 113 6 - 113
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.8 Other Convenient Instructions
6.8.1 Count 1-phase input up or down (UDCNT1)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
S
(Only X)
D
(Only C)
n
: Local devices and the file registers set for individual programs cannot be used.
[Instruction Symbol] [Execution Condition]
Command
UDCNT1
n
UDCNT1
S D
[Set Data]
Set Data Meaning Data Type
S
+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)
Bit
D
Number of counter that will perform count on UDCNT1 instruction
Word
n
Set value
BIN16
[Functions]
(1) When the input designated at
S
goes from OFF to ON, the present value of the counter
designated at
D
will be updated.
(2) The direction of the count is determined by the ON/OFF status of the input designated by
S
+1.
OFF : Count up (counts by adding to the present value)
ON : Count down (counts by subtracting from the present value)
(3) Count processing is conducted as described below:
When the count is going up, the counter contact designated at
D
goes ON when the 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
D
goes ON.(See Program Example (1))
When the count is going down, the counter for the contact designated at
D
goes OFF when
the present value reaches the set value minus 1. (See Program Example (1))
The counter designated at
D
is a ring counter.
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.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC QCPU and is the answer not in the manual?

Mitsubishi MELSEC QCPU Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC QCPU
CategoryController
LanguageEnglish

Related product manuals