60
3 CPU MODULE INSTRUCTION
3.2 Basic Instruction
■
Converting 16-bit/32-bit binary data to Gray code
■
Converting Gray code to 16-bit/32-bit binary data
■
Converting decimal ASCII to 16-bit/32-bit binary data
■
Converting ASCII to HEX
Instruction symbol
Description
Reference
GRY
Converts the specified 16-bit binary data (-32768 to 32767) to 16-bit binary Gray code data.
Gc: Gray code
GRYP
GRY_U
Converts the specified 16-bit binary data (0 to 65535) to 16-bit binary Gray code data.
Gc: Gray code
GRYP_U
DGRY
Converts the specified 32-bit binary data (-2147483648 to 2147483647) to 32-bit binary Gray code
data.
Gc: Gray code
DGRYP
DGRY_U
Converts the specified 32-bit binary data (0 to 4294967295) to 32-bit binary Gray code data.
Gc: Gray code
DGRYP_U
Instruction symbol
Description
Reference
GBIN
Converts the specified 16-bit binary Gray code data (-32768 to 32767) to 16-bit binary data.
Gc: Gray code
GBINP
GBIN_U
Converts the specified 16-bit binary Gray code data (0 to 65535) to 16-bit binary data.
Gc: Gray code
GBINP_U
DGBIN
Converts the specified 32-bit binary Gray code data (-2147483648 to 2147483647) to 32-bit binary
data.
Gc: Gray code
DGBINP
DGBIN_U
Converts the specified 32-bit binary Gray code data (0 to 4294967295) to 32-bit binary data.
Gc: Gray code
DGBINP_U
Instruction symbol
Description
Reference
DABIN
Converts a 5-digit decimal ASCII value in the device specified by (s) to a 1 word binary value, and
stores the converted data in the word device number specified by (d).
DABINP
DABIN_U
DABINP_U
DDABIN
Converts a 10-digit decimal ASCII value in the device specified by (s) to a 2 word binary value, and
stores the converted data in the word device number specified by (d).
DDABINP
DDABIN_U
DDABINP_U
Instruction symbol
Description
Reference
HEXA
Converts the ASCII data stored in the number of characters specified by (n) starting from device
specified in (s), and stores the converted data in the device specified by (d) onwards.
HEXAP
(s)
(d)
BIN
Gc
(s)
(d)
BIN
Gc
(s+1, s)
(d+1, d)
BIN
Gc
(s+1, s)
(d+1, d)
BIN
Gc
(s)
(d)
Gc
BIN
(s)
(d)
Gc
BIN
(s+1, s)
(d+1, d)
Gc
BIN
(s+1, s)
(d+1, d)
Gc
BIN
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: ......