Mitsubishi MELSEC QCPU Programming Manual page 181

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
Internal Devices
Set
(System, User)
Data
Bit
Word
S1
S2
D
[Instruction Symbol] [Execution Condition]
B+,B-
B+P,B-P
[Set Data]
Set Data
S1
S2
D
[Functions]
B +
(1) Adds the BCD 4-digit data designated by
stores the result of the addition at the device designated by
(2) The values for
(3) If the result of the addition operation exceeds 9999, the higher bits are ignored.
The carry flag in this case does not go ON.
B -
(1) Subtracts the BCD 4-digit data designated by
and stores the result of the subtraction at the device designated by
6 - 30
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
Command
Data to be added to or subtracted from, or the head number of the device
storing such data
Addition or subtraction data, or head number of device storing addition or
subtraction data
Head number of device storing addition or subtraction data
S1
5
6
7
8
+
1
,
, and
can be between 0 to 9999 (BCD 4-digit data).
D
S1
S2
6
4
3
2
+
3
S1
-
0
6
7
8
0
Usable Devices
Special
Function
Module
Word
U \G
indicates the signs B+ or B-
S1
P
S1
Meaning
and the BCD 4-digit data designated by
S1
D
D
S2
2
3
4
6
9
5
8
3
0
0
and the BCD 4-digit data designated by
S1
D
S2
2
3
4
0
4
Digits higher than those which were designated
will be read as 0.
MELSEC-Q/QnA
Index
Constant
Register
K, H
Zn
D
S2
D
S2
Data Type
BCD 4-digit
S2
.
1
2
1
5
.
D
4
4
6 - 30
Other
, and
,
S2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents