446
8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
Precautions
• When outputting data in the BCD format for a printer, for example, it is necessary to convert binary data into BCD data
before executing the ASCI(P) instructions.
• Whether NULL (00H) is stored after the last character or not depends on the ON/OFF status of the output character number
selector signal SM701. When SM701 is off, NULL (00H) is stored. When SM701 is on, the original data remains.
• Depending on the ON/OFF status of SM701 and SM8161, the number of devices occupied by (d) differs.
• When RS2, HEX, or CCD is used, the extension flag SM8161 is common to other instructions. When using an instruction
described above and the ASCI(P) instructions in the same program, make sure to set SM8161 to ON or OFF just before
each instruction so that SM8161 does not apply to another instruction.
Operation error
Number of specified digits (characters) and conversion result
(1): Do not change
Bit configuration when (n) is K2
SM701
SM8161
Number of devices occupied by (d)
ON
ON
Number of letters
ON
OFF
Number of letters
2
OFF
ON
Number of letters
1
OFF
OFF
(Number of letters
2) + 1
Error code
(SD0/SD8067)
Description
2820H
The device specified by (s) or (d) exceeds the corresponding device range.
3405H
The value specified by (s) is other than any of 1 to 32767.
(n)
(d)
K1 K2 K3 K4 K5 K6 K7 K8 K9
D200
D201
D202
D203
D204
D205
D206
D207
D208
(1)
"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"
D100 = 0ABCH
0
0
0
0
1
0
1
0
1
0
0
0
1
1
1
1
0
A
B
C
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
4
2
4
3
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
D200 = ASCII code of B = 42H
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
D201 = ASCII code of C = 34H
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: ......