Qw Command [Writes Device Memory In 1-Word Units] - Mitsubishi Electric FX3U-232-BD User Manual

Melsec-f fx series programmable controllers data communication edition
Table of Contents

Advertisement

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

QW Command [Writes Device Memory in 1-Word Units]

This section explains the control procedure specification method and shows a specification examples when
the word device memory is written all at once or when the bit device memory is written (in 16-point units) all at
once.
This command is available only in FX
1. Specification method
The specification method in the control procedure format 1 is shown below:
Batch write 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 (10 in case of bit devices)
- Head device number + Number of device points ("Number of devices  16" in case of bit devices) -1 
Maximum device number
- When 32-bit devices (CN00200 to CN00255) are written, one device point is handled as two word data.
Accordingly, up to 32 device points can be specified.
2) Express the station number, PLC number, number of device points and sum check code in hexadecimal.
2. Specification examples (For FX
Example 1: When writing data to thirty-two devices from M640 to M671 in the PLC whose station number is
5 (while the message waiting time is set to 0 ms)
E
N
Q
Computer side
05
30
H
PLC side
2
3
0 0 1
0
0
0
M
6
5
6
, FX
3S
3G
Character area C
Head device
QW
(7 characters)
Written device range
specification
One device uses 4 characters. Four digits
(hexadecimal) express one data word.
and FX
3U
0 5 F F Q W 0
M 0 0 0 6
35
46
46
51
57
30
4D
30
30
30
H
H
H
H
H
H
H
H
H
H
This range is regarded as the
sum check target.
4
7
1
1
0
1
0
0
0
1
1
1
M
M
M
M
M
6
6
6
6
4
4
4
4
8
7
1
0
7.6 QW Command [Writes Device Memory in 1-Word Units]
, FX
, FX
and FX
3GC
3U
3UC
Number of device points
(2 characters (hexadecimal)
Data on
specified
number of
device points
A
C
K
PLCs)
3UC
4 0
0 2
2 3 4 7 A
36
34
30
30
32
32
33
34
37
41
H
H
H
H
H
H
H
H
H
H
A
B
9
1
0
1
0
1
0
1
1
1
0
M
M
6
6
6
7
6
6
1
4
3
7 Commands
PLCs.
B
9 6
6 4
42
39
36
36
34
H
H
H
H
H
H
A
C
0 5 F F
K
06
30
35
46
46
H
H
H
H
6
0 1
0
1
1
0
M
M
6
6
5
5
7
6
A
B
C
D
E
F
G
H
H
I
Apx.A
D-67

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents