Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 62

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

■Converting 16-bit/32-bit binary data to Gray code
Instruction symbol
GRY
GRYP
GRY_U
GRYP_U
DGRY
DGRYP
DGRY_U
DGRYP_U
■Converting Gray code to 16-bit/32-bit binary data
Instruction symbol
GBIN
GBINP
GBIN_U
GBINP_U
DGBIN
DGBINP
DGBIN_U
DGBINP_U
■Converting decimal ASCII to 16-bit/32-bit binary data
Instruction symbol
DABIN
DABINP
DABIN_U
DABINP_U
DDABIN
DDABINP
DDABIN_U
DDABINP_U
■Converting ASCII to HEX
Instruction symbol
HEXA
HEXAP
3 CPU MODULE INSTRUCTION
60
3.2 Basic Instruction
Description
Converts the specified 16-bit binary data (-32768 to 32767) to 16-bit binary Gray code data.
(s)
(d)
BIN
Gc: Gray code
Converts the specified 16-bit binary data (0 to 65535) to 16-bit binary Gray code data.
(s)
(d)
BIN
Gc: Gray code
Converts the specified 32-bit binary data (-2147483648 to 2147483647) to 32-bit binary Gray code
data.
(s+1, s)
BIN
Gc: Gray code
Converts the specified 32-bit binary data (0 to 4294967295) to 32-bit binary Gray code data.
(s+1, s)
BIN
Gc: Gray code
Description
Converts the specified 16-bit binary Gray code data (-32768 to 32767) to 16-bit binary data.
(s)
(d)
Gc
Gc: Gray code
Converts the specified 16-bit binary Gray code data (0 to 65535) to 16-bit binary data.
(s)
(d)
Gc
Gc: Gray code
Converts the specified 32-bit binary Gray code data (-2147483648 to 2147483647) to 32-bit binary
data.
(s+1, s)
Gc
Gc: Gray code
Converts the specified 32-bit binary Gray code data (0 to 4294967295) to 32-bit binary data.
(s+1, s)
Gc
Gc: Gray code
Description
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).
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).
Description
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.
Gc
Gc
(d+1, d)
Gc
(d+1, d)
Gc
BIN
BIN
(d+1, d)
BIN
(d+1, d)
BIN
Reference
Page 306
Page 307
Reference
Page 308
Page 309
Reference
Page 310
Page 312
Reference
Page 314

Hide quick links:

Advertisement

loading