Wr Command [Reads Device Memory In 1-Word Units] - Mitsubishi FX3U-USB-BD User Manual

Melsec-f fx series programmable controllers
Hide thumbs Also See for FX3U-USB-BD:
Table of Contents

Advertisement

FX Series PLC User's Manual - Data Communication Edition
Computer Link
7.2

WR Command [Reads Device Memory in 1-Word Units]

This section explains the control procedure specification method and specification examples when the word
device memory is read all at once or when the bit device memory is read (in 16-point units) all at once.
1. Specification method
The specification method in the control procedure format 1 is shown below:
Batch read command (unit: word)
E
N
Q
Computer side
PLC side
1) Specify the device point range while satisfying the following conditions:
- 1 ≤ Number of device points ≤ 64
- Head device number + Number of device points ("Number of devices × 16" in case of bit devices) -1 ≤
Maximum device number
- When 32-bit devices (CN200 to CN255) are read, one device point is handled as two word data.
Accordingly, up to 32 device points
2) Express the station number, PLC number, number of device points and sum check code in hexadecimal.
*1.
Up to 13 device points in the FX
*2.
Up to 6 device points in the FX
2. Specification examples
Example 1: When reading the contents of thirty-two devices from X040 to X077 in the PLC whose station
number is 5 (while the message waiting time is set to 0 ms)
E
N
Q
Computer side
05
PLC side
0 0 0
X
0
5
7
D-56
Head device
WR
(5 characters)
Read device range
*1
1S
1S
0 5 F F W R 0
X 0 0 4 0
30
35
46
46
57
52
30
58
30
H
H
H
H
H
H
H
H
H
H
This range is regarded as the
sum check target.
This range is regarded as the
sum check target.
S
T
0 5 F F
X
02
30
35
46
46
H
H
H
H
H
1
2
3
1
0
0
1
0
0
0
X
X
X
X
0
0
0
0
5
5
5
4
2
1
0
7
Number of device points
(2 characters (hexadecimal)
Character area A
One device uses 4 characters.
Four digits (hexadecimal)
express one word data.
S
T
specification
X
* Data on specified number of device points
(Characters of specified number of device points)
*1
(32
in case of bit devices)
*2
can be specified.
and FX
Series
0N
and FX
Series
0N
0 2 4 8
30
34
30
30
32
34
38
H
H
H
H
H
H
H
E
1 2 3 4
A B C D
T
X
31
32
33
34
41
42
43
44
03
30
H
H
H
H
H
H
H
H
H
4
A
1
1
0
1
0
0
1
0
1
X
X
X
X
X
0
0
0
0
0
4
4
4
4
7
3
2
1
0
7
7.2 WR Command [Reads Device Memory in 1-Word Units]
E
*
T
X
Character area B
A
C
0 5 F F
K
06
30
35
46
46
H
H
H
H
H
0 8
38
H
H
B
C
0
1
0
1
1
1
1
0 0
X
X
X
X
0
0
0
0
7
7
7
6
2
1
0
7
7 Commands
A
C
K
D
1
1
0
1
X
X
X
X
0
0
0
0
6
6
6
6
3
2
1
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents