EasyManua.ls Logo

Mitsubishi MELSEC iQ-F FX5 series

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
276
6 BASIC INSTRUCTIONS
6.5 Data Conversion Instructions
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
Number of specified characters and conversion result "." indicates "0".
Error code
(SD0/SD8067)
Description
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
(n)
(d)
D102 D101 D100
1
2
3
4
5
6
7
8
9
D200
0
0 0 0 0 0
0A
0 00 0
0 00 0
D201
D100
11
00
1100
0000101000
0AH
Does not change
0H
0ABH
0ABCH
ABC1H
BC12H
C123H
1234H
2345H
0AH
0H
0ABH
0ABCH
ABC1H
30H to "0"
41H to "A"
When (n)=K2
0H

Table of Contents

Related product manuals