Numeric Values Which Can Be Used In Sequence Programs - Mitsubishi MELSEC QS Series User Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

3
SEQUENCE PROGRAM EXECUTION

3.7 Numeric Values which can be Used in Sequence Programs

Numeric and alphabetic data are expressed by "0" (OFF) and "1" (ON) numerals in the
CPU module.
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 CPU module.
Table3.3 shows the numeric expressions of BIN, HEX, BCD and DEC (decimal).
DEC (Decimal)
0
1
2
3
9
10
11
12
13
14
15
16
17
47
32766
32767
-32768
-32767
-2
-1
3
- 13
3.7 Numeric Values which can be Used in Sequence Programs
Table3.3 BIN, HEX, BCD, and Decimal Numeric Expressions
HEX (Hexadecimal)
0
1
2
3
9
A
B
C
D
E
F
10
11
2F
7FFE
7FFF
8000
8001
FFFE
FFFF
BIN (Binary)
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
0001
1111
1111
1111
1110
1111
1111
1111
1111
BCD(Binary Coded Decimal)
0
1
10
11
1
1
1
1
1
1
1
1
100
--
--
1000
0000
0000
1000
0000
0000
--
--
0
1
10
11
1001
0000
0001
0010
0011
0100
0101
0110
0111
0111
0000
0001

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qs001cpu

Table of Contents