64
2 CPU MODULE INSTRUCTION
2.3 Application instruction
â– Converting 16-bit/32-bit binary data to decimal ASCII
â– Converting HEX code data to ASCII
â– Converting 16-bit/32-bit binary data to character string
â– Converting single-precision real number to character string
â– Detecting a character string length
â– Extracting character string data from the right/left
Instruction symbol Description Reference
BINDA Converts the 1 word binary value specified by (s) to 5 digits decimal ASCII value, and stores in the
word device specified by (d).
Page 370
BINDAP
BINDA_U
BINDAP_U
DBINDA Converts the 2 word binary value specified by (s) to 10 digits decimal ASCII value, and stores in the
word device area specified by (d) onwards.
Page 372
DBINDAP
DBINDA_U
DBINDAP_U
Instruction symbol Description Reference
ASCI Converts the (n) characters within the HEX code data specified by (s) to ASCII, and stores in the
device area specified by (d) onwards.
Page 374
ASCIP
Instruction symbol Description Reference
STR Converts the 1 word binary value specified by (s2) to the decimal character string with total number
of digits and the number of digits in the decimal fraction part as specified in (s1), and stores this in
the device specified by (d).
Page 378
STRP
STR_U
STRP_U
DSTR Convert the 2 word binary value specified by (s2) to the decimal character string with total number
of digits and the number of digits in the decimal fraction part as specified in (s1), and stores this in
the device specified by (d).
Page 380
DSTRP
DSTR_U
DSTRP_U
Instruction symbol Description Reference
ESTR Converts the single-precision real number data specified by (s1) to a character string, and store
this in the device specified by (d).
Page 383
ESTRP
DESTR
DESTRP
Instruction symbol Description Reference
LEN Stores the length of the character string data stored in the device specified by (s) in the device
specified by (d).
Page 388
LENP
Instruction symbol Description Reference
RIGHT Stores the (n) characters from the last character of the character string specified by (s) in the
device specified by (d).
Page 390
RIGHTP
LEFT Stores the (n) characters from the first character of the character string specified by (s) in the
device specified by (d).
Page 392
LEFTP