Mitsubishi Electric MELSEC FX3U Programming Manual page 486

Melsec fx series programmable logic controllers
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
hexadecimal code, and transferred to device
converted is specified by "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
Does not change
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.
484
M8161
S
D
n
M8161
D200
D100
K4
ASCII code
Hexadecimal code
30H
0
41H
A
42H
B
43H
C
31H
1
32H
2
33H
3
34H
4
35H
5
D 101
D 100
•••0H
••0AH
•0ABH
0ABCH
•••0H
ABC1H
••0AH
BC12H
•0ABH
C123H
0ABCH
1234H
ABC1H
2345H
16 External FX Device – FNC 80 to FNC 89
16.4 FNC 83 – HEX / ASCII to Hexadecimal Conversion
and later in 4-digits units. The number of characters to be
D
8-bit mode
Ignored
8-bit mode
In the case of "n = K2"
D 200
D 201
0
0
0
0
0
D 100
and later is converted into a
S
16 bits
Low-order 8 bits
Source data
0
0
1
1
0
30H → [0]
0
1
0
0
0
41H → [A]
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
1
0
A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents