8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
445
8
Number of specified digits (characters) and conversion result
(1): Do not change
Bit configuration when (n) is K4
• 8-bit conversion mode (while SM8161 is ON)
Each digit of hexadecimal data stored in the device specified by (s) and later is converted into ASCII code, and transferred to the lower 8 bits of each
device specified by (d) and later. SM8161 must always be on in the 8-bit conversion mode.
In the following program, conversion is executed as follows:
(1): 8-bit mode
Devices specified by (s) and later
(D100)=0ABCH
(D101)=1234H
(D102)=5678H
(n)
(d)
K1 K2 K3 K4 K5 K6 K7 K8 K9
D200
D200
D201
D201
D202
D202
D203
D203
D204
"C"
"C"
"C"
"C"
"C"
"C"
"C"
"C"
"C"
"B"
"B"
"B"
"B"
"B"
"B"
"B"
"B"
"A"
"A"
"A"
"A"
"A"
"A"
"A"
"0"
"0"
"0"
"0"
"0"
"0"
"4"
"4"
"4"
"4"
"4"
"3"
"3"
"3"
"3"
"2"
"2"
"2"
"1"
"1"
"8"
lowest-order byte
highest-order byte
lowest-order byte
highest-order byte
lowest-order byte
highest-order byte
lowest-order byte
highest-order byte
lowest-order byte
(1)
D100 = 0ABCH
D200
D201
0
0
0
0
1
0
1
0
1
0
0
0
1
1
1
1
0
A
B
C
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
1
0
1
0
0
0
0
1
1
0
1
1
0
0
0
0
0
ASCII code
"0" = 30H
"1" = 31H
"5" = 35H
"A" = 41H
"2" = 32H
"6" = 36H
"B" = 42H
"3" = 33H
"7" = 37H
"C" = 43H
"4" = 34H
"8" = 38H
"A"
41H
"0"
30H
"C"
43H
"B"
42H
ASCI
D100
SM8161
SM400
X10
D200
K4
(1)
0
Low-order 8 bits
16 bits
When SM8161 is set to on, the 8-bit mode is selected.
The conversion processing is executed as follows.
Destination
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......