Data Receiving Using An Interrupt Program (Bufrcvs Instruction) - Mitsubishi Electric QJ71E71-100 User Manual

Q corresponding ethernet interface module
Table of Contents

Advertisement

12.4.2
Data receiving using an interrupt program (BUFRCVS
instruction)
A receive process in an interrupt program is performed using the BUFRCVS instruction. An interrupt program is started
up when data is received from a connected device, and receive data for a CPU module can be read.
The following settings are required to use an interrupt program: (
• Interrupt pointer setting
• Interrupt settings
(1) Procedure exists
The following is the receive process performed in the fixed buffer number 2 area for the connection number 2.
Initial normal completion
Open completion signal
(address: 5000
BUFRCVS instruction
In interrupt process
Confirm the normal completion of the initial process. (Initial normal completion signal (X19): ON)
1
Establish a connection between the E71 and the connected device and confirm the normal completion of the
2
open process of the connection number 2.
Receive data from the destination.
3
• Fixed buffer reception status signal (address: 5005
• Request the CPU module to start up the interrupt program.
The interrupt program starts up. Execute the BUFRCVS instruction to read the receive data length and receive
4
data from the fixed buffer number 2.
When the receive data length and the receive data are completely read out, a response is sent to the
5
*1
destination.
End the interrupt program to restart the main program.
6
*1
If the data receive process is abnormally ended, the E71 does not return a response.
146
Initial
Open
process
process
1
signal X19
2
[b1])
H
Cycle
Program
Scan
Page 149, Section 12.5.1)
Receiving data
ACK
(TCP only)
3
END
Scan
Interrupt process
process
(b1)): ON
H
Sending a response
4
6
ACK
(TCP only)
5
Cycle
END
Scan
process

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71e71-b5Qj71e71-b2

Table of Contents