![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114062.webp)
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
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......