7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
377
7
• 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.
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
2820 The device specified by (s) or (d) exceeds the corresponding device range.
3405 The value specified by (s) is other than any of 1 to 32767.