17 COMMUNICATING USING 1C FRAMES
17.4 Device Memory Read and Write
357
17
Communication example (Reading bit device memory)
Read bit devices in 16-point units under the following conditions.
• Message wait: 0 ms
• Head device: X040
• Number of device points: 32 points (2 words)
(Request data)
■When using WR (ACPU common command)
■When using QR (AnA/AnUCPU common command)
(Response data)
Communication example (Reading word device memory)
Read word devices in 1-point units under the following conditions.
• Message wait: 0 ms
• Head device: Current value of T123
• Number of device points: 2 points (2 words)
(Request data)
■When using WR (ACPU common command)
■When using QR (AnA/AnUCPU common command)
(Response data)
WR
57H 52H 58H
4
30H 34H 30H
02
30H 32H
00
30H
30H
0X 0
Message wait
Head device
Number of device points
(Number of words)
QR
51
H
52
H
58
H
4
30
H
34
H
30
H
02
30
H
32
H
00
30
H
30
H
0X 0
30
H
0
30
H
0
Message wait
Head device
Number of device points
(Number of words)
31
H
32
H
33
H
34
H
41
H
42
H
43
H
44
H
Data read
0001
(Hexadecimal : 1)
0010
(Hexadecimal : 2)
0011
(Hexadecimal : 3)
0100
(Hexadecimal : 4)
1010
(Hexadecimal : A)
1011
(Hexadecimal : B)
1100
(Hexadecimal : C)
1101
(Hexadecimal : D)
(X4F) to (X4C) (X4B) to (X48) (X47) to (X44) (X43) to (X40) (X5F) to (X5C) (X5B) to (X58) (X57) to (X54) (X53) to (X50)
WR
57
H
52
H
54
H
2
31
H
32
H
33
H
02
30
H
32
H
3N
4E
H
30
H
0T 1
Message wait
Head device
Number of device points
(Number of words)
QR
51H 52H 54H
2
30H 32H 33H
02
30H 32H
3N
4EH30H
0T 0
31H
0
30H
1
Message wait
Head device
Number of device points
(Number of words)
37
H
(T123)
42
H
43
H
39
H
31
H
32
H
33
H
34
H
(T124)
12347BC9
Data read