Mitsumi electronic NZ2GF-ETB ユーザーズマニュアル

ページ / 246
91
CHAPTER 7 COMMUNICATION OF THE ETHERNET ADAPTER MODULE
7
7.2  C
ommunication Usin
g the On-deman
d Function
7.2.4  H
ow to send on-
demand dat
a
7.2.4
How to send on-demand data
On-demand data is sent to an external device after the buffer memory in the Ethernet adapter module receives/sends 
the data from/to the CPU module using the REMFR and REMTO instructions. The Ethernet adapter module converts 
the data sent to the buffer memory into SLMP and sends it to the external device.
1.
Establish connection between an external device and the Ethernet adapter module.
2.
Check that the Ethernet adapter module is in a state where on-demand data can be sent.
3.
Store control data and send data in the buffer memory in the Ethernet adapter module. 
4.
Turn on Send request flag.
5.
On-demand data is sent from the Ethernet adapter module to the external device.
6.
Check the result of the on-demand data sent from the Ethernet adapter module to the external 
device.
Turn on Send request flag after setting all the setting data (buffer memory address: 5635 to 6655 (1603
H
 to 19FF
H
)).
When turning on Send request flag, complete the REMTO instruction that sets the setting data before executing the REMTO 
instruction that turns on Send request flag. Do not set the setting data and turn on Send request flag at the same time using 
one REMTO instruction.
CPU module
Send status
Send request
Send result
Send setting
REMFR 
instruction 
execution
REMTO 
instruction 
execution
Program
Send request flag
Buffer memory
Ethernet adapter module
External device
Send completed flag
Completion code
Control data
Send data
On-demand data 
(SLMP)
2.
Connection 
establishment
1.
5.
6.
4.
3.
<Control data and send data>
<Send request flag>
<Completion code>
<Send completed flag>
Data setting
On-demand execution
Completion code 
reading