Mitsubishi Electric MELSEC iQ-F Series FX5 User Manual page 49

Hide thumbs Also See for MELSEC iQ-F Series FX5:
Table of Contents

Advertisement

■Subcommand
Specify the subcommand selected from the item.
Item
Data size
Device specification
specification
format
Bit units
2 digit code/6 digit number
specification
4 digit code/8 digit number
specification
Word units
2 digit code/6 digit number
specification
4 digit code/8 digit number
specification
■Device code
Specify the device code that corresponds to the device type to be read. (Refer to the device code list.)
The double word device and the long index register (LZ) are not supported.
■Device No.
Specify the head number of target device of reading.
■Number of devices
Specify the number of target device points of reading.
Item
When reading data in bit units
When reading data in word units
Response data
The read device value is stored in hexadecimal. The data order differs depending on the type of code, ASCII code or binary
code.
Read data
Communication example
■When reading data in bit units
M100 to M107 are read.
• When communicating data in ASCII code
(Request data)
Subcommand
0
4
0
1
0
0
0
30H 34H 30H 31H
30H 30H 30H
31H 4DH 2AH
(Response data)
0
0
0
1
0
0
1
30H 30H 30H 31H
30H 30H 31H
31H
M100
to
M107
Device memory
extension
specification
Not specified
Specified
Specified
Not specified
Specified
Specified
Device
Head device No.
code
1
M
0
0
0
1
0
*
30H 30H 30H
31H 30H 30H
0 = OFF
1
1 = ON
Subcommand
ASCII code
(Upper column: characters, lower column:
character code)
0
0
0
30H
30H
30H
0
0
8
30H
30H
38H
0
0
8
30H
30H
38H
0
0
0
30H
30H
30H
0
0
8
30H
30H
30H
0
0
8
30H
30H
38H
Number of devices
ASCII code
1 to 1792 points
1 to 480 points
Number of devices
0
0
0
0
8
30H 30H 30H
38H
Binary code
1
01H
00H
31H
1
81H
00H
31H
3
83H
00H
33H
0
00H
00H
30H
0
80H
00H
30H
2
82H
00H
32H
Binary code
1 to 3584 points
1 to 960 points
4 COMMANDS
4.2 Device Access
4
47

Advertisement

Table of Contents
loading

Table of Contents