123
CHAPTER 12 COMMUNICATIONS USING A FIXED BUFFER
12
12.3 Data Sending Procedure
12.3 Data Sending Procedure
This section describes how an E71 sends data to the connected device.
(1) Procedure exists
The following is the data send process performed in the fixed buffer number 1 area for the connection number 1.
*1 Refer to the section describing the initial setting when adjusting the monitoring timer value. ( Page 311, Appendix
4.1)
● The items configured in the open setting become enabled when Open completion signal of an E71 is started up.
● Do not send data (command) before data communications are completed (or a response is received) in response to the
previous data (command).
● When an E71 communicates data with multiple connected devices, data can be sent sequentially; however, switching the
connected devices before sending/receiving data is recommended to prevent communication problems. When a
connection opened using the UDP/IP protocol is used, change the setting values in the communication address setting
area before sending or receiving data to switch the connected devices.
Confirm the normal completion of the initial process. (Initial normal completion signal (X19): ON)
Establish a connection between the E71 and the connected device and confirm the normal completion of the
open process of the connection number 1.
Execute the BUFSND instruction. (The data is sent.)
The send data in the fixed buffer number 1 is sent to the connected device by the send data length.
When the connected device receives the data from the E71, the connected device sends a response to the
E71.
When the E71 receives the response from the connected device, the E71 stops sending data. If a response is
not sent within the response monitoring timer value, a data send error occurs.
*1
After the data send process abnormally ends, execute the BUFSND instruction again to repeat the send
process.
1
2
3
5
4
6
Initial process Open process Sending data
1 scan
ACK
(TCP only)
ACK
(TCP only)
Initial normal completion
signal X19
Open completion signal
(address: 5000H [b0])
BUFSND instruction
BUFSND instruction
completion device
BUFSND instruction
completion device + 1
Receiving a response
Response
Sending data