Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1688

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Control data
Operand: (s)
Device
Item
+0
Receive channel
+1
Result of receiving
+2
Amount of receive data
+3
Allowable amount of
receive 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.
• 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.
• The following figures show how the G.INPUT instruction operates when its execution completes.
Sequence scan
G.INPUT instruction
Reception data read
request (X3) or Reception
abnormal detection (X4)
Completion device (d2)
Completion status
indication device (d2)+1
20 SERIAL COMMUNICATION INSTRUCTIONS
1686
20.4 Receiving Data Using the Nonprocedural Protocol
Description
Specifies the receive channel.
• 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
Used to store the result of receiving with the G.INPUT instruction.
• 0: Normal
• Other than 0: Error (error code)
Stores the number of data received.
Sets the allowable number of words of receive data that can be stored in (d1).
0
END
0
Execution of the instruction
OFF
OFF
*1
END
0
END
Completion of
the instruction
Setting range
1, 2
1 or more
0
END
0
ON
OFF
Completed with an error
ON
OFF
Completed successfully
1 scan
Set by
User
System
System
User
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents