Mitsubishi MELSEC iQ-F FX5 series Programming Manual page 278

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Number of specified characters and conversion result
(n)
D102
1
Does not change
2
3
4
5
6
7
8
9
0H
Precautions
• Make sure that only ASCII codes "0" to "9" and "A" to "F" are stored in the device specified by (s).
• If ASCII data is not stored in the device specified for (s) by the HEXA(P) instructions, an operation error occurs and
conversion into hexadecimal code is disabled. Especially, note that when SM8161 is OFF (16-bit conversion mode), ASCII
code should be stored in high-order 8 bits of the device specified by (s).
• The number of points occupied by the device specified by (d) varies depending on the ON/OFF status of SM8161. When
SM8161 is on (8-bit conversion mode), as many points as the number of characters are occupied, and when SM8161 is
OFF (16-bit conversion mode) as many points as the (number of characters 2) are occupied.
• The SM8161 flag is also used for the RS2, ASCI(P), CCD(P) and CRC(P) instructions. When using these instructions and
the HEXA(P) instructions in the same program, make sure to set SM8161 to ON or OFF just before each instruction so that
SM3161 does not affect another instruction.
Operation error
Error code
Description
(SD0/SD8067)
2820
The (n) number of devices specified by (s) and (d) exceeds the corresponding device range.
2821
The range specified by (s) and (d) overlaps.
3401
An ASCII code other than 30H to 39H, and 41H to 46H is set in the device specified by (s).
3405
The value specified in (n) is outside the range specified below.
1 to 16383
6 BASIC INSTRUCTIONS
276
6.5 Data Conversion Instructions
When (n)=K2
(d)
D200
D101
D100
0H
0AH
D201
0ABH
0ABCH
0
D100
0H
ABC1H
0AH
BC12H
0ABH
C123H
0ABCH
1234H
ABC1H
2345H
"." indicates "0".
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
30H to "0"
0
1
0
0
0
0
0
1
41H to "A"
0
0
0
0
1
0
1
0
0
A

Advertisement

Table of Contents
loading

Table of Contents