7 Communication Using MC Protocol
64
FX
3U
-ENET-ADP User's Manual
7.5 Device Memory Read/Write
7.5
Device Memory Read/Write
This section explains the designations in the control procedure when reading from and writing to device
memory by providing an example.
7.5.1
Commands and device range
1) Commands used for reading from and writing to device memory
*1.
Make sure to set a multiple of 16 as the head device number of bit devices.
*2.
Read or write 32 bits at a time when reading or writing double-word data in a user program, etc.
*3.
It is not possible to specify C199 or lower (16 bits) and C200 or higher (32 bits) at the same time.
2) Designation method and accessible range of devices.
a) In device read/write, each device is set by a device code and number as shown in the diagram below.
Item
Command/
response type
Processing
Number of points
processed per
communication
Batch read
Bit units
00H
Reads bit devices (X, Y, M, S, T, C) in 1-point units.
256 points
Word units
01H
Reads bit devices (X, Y, M, S, T, C ) in 16-point units.
*1
32 words (512 points)
Reads word devices (D, R, T, C ) in 1-point units.
*2*3
The maximum number of communication points is 32 when
C200 or higher is specified.
64 points
Batch write
Bit units
02H
Writes to bit devices (X, Y, M, S, T, C ) in 1-point units.
160 points
Word units
03H
Writes to bit devices (X, Y, M, S, T, C ) in 16-point units.
*1
10 words (160 points)
Writes to word devices (D, R, T, C ) in 1-point units.
*2*3
The maximum number of communication points is 32 when
C200 or higher is specified.
64 points
Test
(Random write)
Bit units
04H
Sets/resets bit devices (X, Y, M, S, T, C) in 1-point units by
arbitrarily designating the devices and device number.
80 points
Word units
05H
Sets/resets bit devices (X, Y, M, S, T, C) in 16-point units by
arbitrarily designating the devices and device number.
10 words (160 points)
Sets/resets word devices (D, R, T, C) in 1-point units by
arbitrarily designating the devices and device numbers.
Not applicable for 32 bit devices from C200 to C255.
10 points
B15
B0 B31
B0
to
to
Device code
Device number (Set in hexadecimal)
[Example] In case of D100
D100 = 4420 00000064
H
Device number (hexadecimal)
Device code
Summary of Contents for FX3U-ENET-ADP
Page 1: ...FX3U ENET ADP USER S MANUAL ...
Page 2: ......
Page 6: ... 4 Safety Precautions Read these precautions before use MEMO ...
Page 161: ......