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
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......