Conversion Of Numeric Values; Handling Of Numeric Values In Floating Point Operations - Mitsubishi Electric MELSEC-Q Structured Programming Manual

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
3.1.2

Conversion of numeric values

Numeric values handled in FX PLCs can be converted as shown in the table below.
Decimal number
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
99
Major applications
Decimal number
Constants (K) and
numbers of internal
devices except input
relays and output relays
3.1.3

Handling of numeric values in floating point operations

Handling of numeric values in floating point operations
Binary integers are handled inside PLCs.
In division of integers, the answer "40 / 3 = 13 ... 1" is obtained, for example.
In squire root extractions of integers, the portion after the decimal point is truncated.
In PLCs, floating point operations are available to achieve higher accuracy in such operations.
FX
/FX
/FX
/FX
0S
0
0N
3.1 Numeric Values Handled in PLCs (Octal, Decimal, Hexadecimal and Real Numbers)
Octal number
Hexadecimal number
0
1
2
3
4
5
6
7
10
11
12
13
14
15
16
17
20
143
Octal number
Hexadecimal number
Numbers of internal input
Constants (H)
relays and output relays
/FX
/FX
/FX
/FX
PLCs do not support floating point operations.
1S
1N
1NC
U
2C
3 How to Specify Devices and Constants in Instructions
Binary number
00
0000
0000
01
0000
0001
02
0000
0010
03
0000
0011
04
0000
0100
05
0000
0101
06
0000
0110
07
0000
0111
08
0000
1000
09
0000
1001
0A
0000
1010
0B
0000
1011
0C
0000
1100
0D
0000
1101
0E
0000
1110
0F
0000
1111
10
0001
0000
63
0110
0011
Binary number
Processing inside PLC
BCD
0000
0000
0000
0001
0000
0010
0000
0011
0000
0100
0000
0101
0000
0110
0000
0111
0000
1000
0000
1001
0001
0000
0001
0001
0001
0010
0001
0011
0001
0100
0001
0101
0001
0110
1001
1001
BCD
BCD digital switches and
seven-segment display
units
125
1
2
3
4
5
6
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents