Numeric Values Which Can Be Used In Sequence Programs - Mitsubishi QCPU (Q Mode) User Manual

Table of Contents

Advertisement

4 SEQUENCE PROGRAM CONFIGURATION AND EXECUTION
CONDITIONS

4.8 Numeric Values which Can Be Used in Sequence Programs

Table 4.1 BIN, HEX, BCD, and Decimal Numeric Expressions
DEC (Decimal)
0
1
2
3
9
10
11
12
13
14
15
16
17
47
32766
32767
-32768
-32767
-2
-1
4 - 44
Numeric and alphabetic data are expressed by "0" (OFF) and "1" (ON) numerals in the
High Performance model QCPU.
This expression form is called "binary code" (BIN).
The hexadecimal (HEX) expression form in which BIN data are expressed in 4-bit
units, and the BCD (binary coded decimal) expression form are applicable to the High
Performance model QCPU.
Real numbers may also be used. (See Section 4.8.4)
The numeric expressions by BIN, HEX, BCD, and Decimal (DEC) notations are shown
in Table 4.1 below.
HEX (Hexadecimal)
0
1
2
3
9
A
B
C
D
E
F
10
11
2F
7FFE
7FFF
8000
8001
FFFE
FFFF
BIN (Binary)
0
1
10
11
1001
1010
1011
1100
1101
1110
1111
1 0000
1 0001
10 1111
0111 1111 1111 1110
0111 1111 1111 1111
1000 0000 0000 0000 1000 0000 0000 0000
1000 0000 0000 0001 1000 0000 0000 0001
1111 1111 1111 1110
1111 1111 1111 1111
MELSEC-Q
BCD
(Binary Coded Decimal)
0
1
10
11
1001
1 0000
1 0001
1 0010
1 0011
1 0100
1 0101
1 0110
1 0111
100 0111
——
——
——
——
4 - 44

Advertisement

Table of Contents
loading

Table of Contents