1686
20 SERIAL COMMUNICATION INSTRUCTIONS
20.4 Receiving Data Using the Nonprocedural Protocol
■
Control data
*1 The amount of the data to be received is set in units as specified in the engineering tool. For byte specification, the number of bytes is
set. For word specification, the number of words is set.
Processing details
• The data received through the nonprocedural protocol of the module specified by (U) is stored in the device specified by
(d1) and later, according to the control data in the device specified by (s) and later.
• If the amount of actually received data is larger than the allowable amount of receive data specified by (s)+3, the data for
the allowable amount of receive data is only stored with the remaining receive data discarded. In this case, the allowable
amount of receive data is stored in the amount of receive data (s)+2. (the instruction completes successfully).
• The completion status of the G.INPUT instruction can be checked with the completion device (d2) and the completion
status indication device (d2)+1.
• The following figures show how the G.INPUT instruction operates when its execution completes.
Operand: (s)
Device
Item
Description
Setting range
Set by
+0
Receive channel
Specifies the receive channel.
• 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
1, 2
User
+1
Result of receiving
Used to store the result of receiving with the G.INPUT instruction.
• 0: Normal
• Other than 0: Error (error code)
System
+2
Amount of receive data
Stores the number of data received.
System
+3
Allowable amount of
receive data
Sets the allowable number of words of receive data that can be stored in (d1).
1 or more
User
• Completion device (d2)
This device turns on during END processing of the scan where the G.INPUT instruction completes, and turns off during the next END processing.
• Completion status indication device (d2)+1
This device turns on or off depending on the completion status of the G.INPUT instruction.
When completed successfully: The device remains off.
When completed with an error: The device turns on during END processing of the scan where the G.INPUT instruction completes, and turns off during the next
END processing.
END
0
END
0
END
0
END
0
END
0
OFF
OFF
OFF
OFF
ON
ON
Sequence scan
G.INPUT instruction
Completion device (d2)
1 scan
Completion of
the instruction
Completed successfully
Completed with an error
Execution of the instruction
Completion status
indication device (d2)+1
Reception data read
request (X3) or Reception
abnormal detection (X4)
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: ......