EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

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
Page #277 background imageLoading...
Page #277 background image
6 BASIC INSTRUCTIONS
6.5 Data Conversion Instructions
275
6
Conversion source data
(s) ASCII data Hexadecimal code
D200 low-order 30H 0
D200 high-order 41H A
D201 low-order 42H B
D201 high-order 43H C
D202 low-order 31H 1
D202 high-order 32H 2
D203 low-order 33H 3
D203 high-order 34H 4
D204 low-order 35H 5
Number of specified characters and conversion result "" indicates "0".
• 8-bit conversion mode (while SM8161 is on)
The ASCII data stored in low-order 8 bits of the device specified by (s) is converted to hexadecimal code, and transferred to the device specified by (d) in
units of 4 digits.
The number of characters to be converted is specified by (n).
SM8161 is also used for the RS2, ASCI(P), CCD(P), and CRC(P) instructions. When using the 8-bit conversion mode, set SM8161 to normally on.
SM8161 is cleared when the CPU module mode is changed from RUN to STOP.
In the following program, conversion is executed as follows:
Conversion source data
(s) ASCII data Hexadecimal code
D200 30H 0
D201 41H A
D202 42H B
D203 43H C
D204 31H 1
D205 32H 2
D206 33H 3
D207 34H 4
D208 35H 5
(n)
(d)
D102 D101 D100
1
2
3
4
5
6
7
8
9
D200
0
0 0 0 1 0 1 0 1 0 0 01 1 1
1
0ABC
0
1 0 0 0 0 1 0 00 0
0 1 0 0 0 0 1 0 00 0
D201
D100
1
11
00
01100
0AH
Does not change
43H to "C"
42H to "B"
0H
0ABH
0ABCH
ABC1H
BC12H
C123H
1234H
2345H
0AH
0H
0ABH
0ABCH
ABC1H
30H to "0"
41H to "A"
When (n)=K4
0H
HEXA D200
SM8161
SM400
X10
D100 K4
8-bit conversion mode
16 bits
Source data
Ignored
Lower 8 bits

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals