
68
5 MODBUS/TCP (SLAVE)
5.2 Communication Setting
Access by request command
For any access to data in LE7-40GU from the master station, data can be read and written by handshake between the
"request command execution (RY2F)" flag and the "request command completion (RX2F)" flag.
This access is performed using a 2-word word device of the master station.
This 2-word data is comprised of the request command, to which the upper 4 bits of the first word are assigned, and the
request code, to which the lower 12 bits are assigned, and the setting data, to which the next word is assigned.
There are three types of request command, Data Monitor, Writing to RAM, and Writing to RAM + ROM, according to the
selection of data reading and writing method.
In the ROM for storage against power interruption, the allowable number of times of writing is limited. Accordingly, data
cyclically written and updated by the PLC must be written only to the RAM.
The request code is the data number (address) of the data that executes the request command. The subsequent data setting
is the data to be written to the data number, and if the request command is the monitor, the data setting data is ignored.
When double word data is written to send data in the master station, and the handshake is executed by turning ON/OFF the
request command execution flag and request command completion flag as follows, LE-70GU sends back the request
command execution request.
1.
The master station is set to request command execution ON.
2.
LE7-40GU executes processing when receiving turning ON of the request command execution by the master station.
3.
LE7-40GU turns ON the request command completion.
4.
The master station receives the request command completion ON.
5.
The master station is set to request command execution OFF.
6.
LE7-40GU receives turning OFF of the request command execution by the master station.
7.
LE7-40GU turns OFF the request command completion.
8.
The master station receives the request command completion OFF.
Please perform reading of the execution results of the request command between step 4 and 5 of the handshake procedure.
If an error occurs, in the execution result with respect to the request command from the master station, turn on the network
alarm occurrence flag and output the device number where the alarm occurred to the network alarm device number monitor.
For the request command execution result, refer to the following.
LE7-CCL APPLICATION MANUAL
bit 15 to 12
bit 11 to 0
Request command
Request code
Setting data
Monitor
Writing to RAM
Writing to RAM + ROM
Writing data is reflected in the settings based on a
data read request from the master station but is
not stored in the case of a power failure.
Writing data is reflected in the settings based on a
data write request from the master station but is
not stored in the case of a power failure.
Perform the above RAM write + data power failure
write.
Request command
Contents of execution
Execution result
H0
Monitor
Monitored value
H1
Writing to RAM
Writing result
H2
Writing to RAM + ROM
Writing result
Summary of Contents for LE7-40GU
Page 1: ...LE7 40GU INSTRUCTION MANUAL Communication ...
Page 2: ......
Page 10: ...8 TRADEMARKS 150 ...
Page 11: ...9 CONTENTS ...
Page 37: ...3 CC LINK IE FIELD NETWORK BASIC COMMUNICATION 3 3 Reference Program 35 3 ...
Page 38: ...36 3 CC LINK IE FIELD NETWORK BASIC COMMUNICATION 3 3 Reference Program ...
Page 39: ...3 CC LINK IE FIELD NETWORK BASIC COMMUNICATION 3 3 Reference Program 37 3 ...
Page 40: ...38 3 CC LINK IE FIELD NETWORK BASIC COMMUNICATION 3 3 Reference Program ...
Page 57: ...4 SLMP COMMUNICATION 4 3 Reference Program 55 4 Program example ...
Page 58: ...56 4 SLMP COMMUNICATION 4 3 Reference Program ...
Page 59: ...4 SLMP COMMUNICATION 4 3 Reference Program 57 4 ...
Page 60: ...58 4 SLMP COMMUNICATION 4 3 Reference Program ...
Page 61: ...4 SLMP COMMUNICATION 4 3 Reference Program 59 4 ...
Page 82: ...80 5 MODBUS TCP SLAVE 5 3 Reference Program Program example ...
Page 83: ...5 MODBUS TCP SLAVE 5 3 Reference Program 81 5 ...
Page 84: ...82 5 MODBUS TCP SLAVE 5 3 Reference Program ...
Page 85: ...5 MODBUS TCP SLAVE 5 3 Reference Program 83 5 ...
Page 86: ...84 5 MODBUS TCP SLAVE 5 3 Reference Program ...
Page 110: ...108 6 N N NETWORK 6 4 Reference Program Program example ...
Page 111: ...6 N N NETWORK 6 4 Reference Program 109 6 ...
Page 112: ...110 6 N N NETWORK 6 4 Reference Program ...
Page 147: ...7 MODBUS RTU ASCII SLAVE 7 4 Reference Program 145 7 Function code H03 Read holding register ...
Page 149: ...7 MODBUS RTU ASCII SLAVE 7 4 Reference Program 147 7 ...
Page 153: ......