20 SERIAL COMMUNICATION INSTRUCTIONS
20.8 Receiving Data Using an Interrupt Program
1697
20
■
Receive data
*1 The amount of the data to be received must be set in units as specified in the engineering tool. For byte specification, set the number of
bytes. For word specification, set the number of words.
Processing details
• The data received from the external device is stored in the specified device.
• The receive data can be read without considering the address of the receive area of the buffer memory.
• When the Z.BUFRCVS instruction is executed, receive completion takes place; the receive read request signal (Xn3/XnA)
or receive error detection signal (Xn4/XnB) turns off automatically. If the receive has been read using the Z.BUFRCVS
instruction, the receive read completion signal (Yn1/Yn8) does not need to be turned on.
• The Z.BUFRCVS instruction is used in the interrupt program, and processing completes within one scan.
• The following figures show how the Z.BUFRCVS instruction operates when its execution completes.
Operand: (d)
Device
Item
Description
Setting range
Set by
+0
Receive data length
Used to store the amount of data that was read from the data storage area for
amount of receive data.
System
+1 to n
Receive data
Used to store the data, in ascending order of the address, that was read from the
receive data storage area.
System
0
END
Sequence scan
Z.BUFRCVS instruction
Execution of the instruction
Interrupt program
Storing receive data
Receiving data
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......