Mitsubishi Electric FX3G SERIES Programming Manual page 468

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
3. 8-bit conversion mode (while M8161 is ON)
(M8161 is used also for the RS, ASCI, CCD and CRC instructions.)
Each ASCII code stored in the low-order 8 bits of each device
and transferred to device
"n".
M8161 is also used for the RS, ASCI, CCD and CRC instructions. When using the 8-bit mode, set M8161 to normally
ON. M8161 is cleared when the PLC mode is changed from RUN to STOP.
M8000
Command
input
FNC 83
HEX
Operation
In the following program, conversion is executed as follows:
M8000
X010
FNC 83
HEX
Conversion source data
S
D 200
D 201
D 202
D 203
D 204
D 205
D 206
D 207
D 208
Number of specified characters and conversion result
" • " indicates "0".
D
D 102
n
1
2
3
4
5
6
7
8
•••0H
9
• When the input data is in BCD format, it is necessary to convert BCD data into binary data after executing this
instruction.
466
and later in 4-digits units. The number of characters to be converted is specified by
D
M8161
S
D
M8161
D200
D100
ASCII code
Hexadecimal code
30H
41H
42H
43H
31H
32H
33H
34H
35H
D 101
D 100
•••0H
••0AH
Does not change
•0ABH
0ABCH
•••0H
ABC1H
••0AH
BC12H
•0ABH
C123H
0ABCH
1234H
ABC1H
2345H
16.4 FNC 83 – HEX / ASCII to Hexadecimal Conversion
S
and later is converted into a hexadecimal code,
8-bit mode
n
8-bit mode
K4
0
A
B
C
1
2
3
4
5
In the case of "n = K2"
D 200
D 201
0
0
0
D 100
16 External FX Device – FNC 80 to FNC 89
16 bits
Ignored
Low-order 8 bits
Source data
0
0
1
0
1
0
41H → [A]
0
0
0
0
0
0
0
0
0
1
0
0
0
0
30H → [0]
0
0
0
0
1
0
1
0
1
0
A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents