D-67
FX Series PLC User's Manual - Data Communication Edition
Computer Link
7 Commands
7.6 QW Command [Writes Device Memory in 1-Word Units]
A
Comm
on I
te
ms
B
N:
N N
etwo
rk
C
Paral
le
l Li
nk
D
Com
puter Li
nk
E
In
verter
C
omm
uni
cation
F
N
on-Proto
col
C
ommunicati
on
(R
S/RS
2 Instru
ction
)
G
No
n-
Protoc
ol
Co
mmuni
ca
tion
(FX
2N
-2
32IF)
H
Programm
ing
Comm
uni
cation
I
Re
mo
te
Ma
intenance
Apx.A
D
isco
nti
nued
models
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
3S
, FX
3G
, FX
3GC
,
FX
3U
and FX
3UC
PLCs.
1. Specification method
The specification method in the control procedure format 1 is shown below:
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 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
3U
and FX
3UC
PLCs)
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)
Computer side
PLC side
E
N
Q
QW
Head device
(7 characters)
A
C
K
Character area C
One device uses 4 characters. Four digits
(hexadecimal) express one data word.
Number of device points
(2 characters (hexadecimal)
Batch write command
(unit: word)
Written device range
specification
Data on
specified
number of
device points
St
at
io
n
No.
PLC No.
Sum check
code
Message wait time
St
at
io
n
No
.
PL
C No
.
A
C
K
0 5 F F
0 2
6 4
E
N
Q
0 5 F F Q W 0
This range is regarded as the
sum check target.
35
H
30
H
46
H
46
H
57
H
51
H
30
H
4D
H
36
H
32
H
34
H
36
H
05
H
35
H
30
H
46
H
46
H
06
H
0 0 1
0
1
1
1
0
0
1
0
0
0
0
1
0
0
1
0
0
1
1
0
1
1
0
0 1
1
1
1
1
M
6
5
6
2
3
6
9
B
A
7
4
M
6
5
7
M
6
6
3
M
6
6
4
M
6
7
1
M
6
4
0
M
6
4
1
M
6
4
7
M
6
4
8
M
6
5
6
Computer side
PLC side
M 0 0 0 6
34
H
4 0
32
H
41
H
37
H
34
H
33
H
2 3 4 7 A
42
H
B
39
H
9 6
36
H
30
H
30
H
30
H
30
H
30
H
Summary of Contents for FX-485ADP
Page 2: ......
Page 120: ...B 2 FX Series PLC User s Manual Data Communication Edition N N Network ...
Page 188: ...C 2 FX Series PLC User s Manual Data Communication Edition Parallel Link ...
Page 244: ...D 2 FX Series PLC User s Manual Data Communication Edition Computer Link ...
Page 344: ...E 2 FX Series PLC User s Manual Data Communication Edition Inverter Communication ...
Page 700: ...H 2 FX Series PLC User s Manual Data Communication Edition Programming Communication ...
Page 752: ...I 2 FX Series PLC User s Manual Data Communication Edition Remote Maintenance ...
Page 817: ......