Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1694

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

Advertisement

■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
*1
(U)
(s)
(d1)
*2
(d2)
*1 Index modification is not available.
*2 FX and FY cannot be used.
*3 RD cannot be used.
*4 FD cannot be used.
*5 T, ST, C, and FD cannot be used.
■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 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 using the bidirectional 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.
• The completion status of the G(P).BIDIN instruction can be checked with the completion device (d2) and the completion
status indication device (d)+1.
• Completion device (d2)
This device turns on during END processing of the scan where the G(P).BIDIN instruction completes, and turns off during the next END processing.
• Completion status indication device (d2)+1
Unchanged from off.
• The following figure shows how the G(P).BIDIN instruction operates when completing its execution.
Sequence scan
G(P).BIDIN instruction
Completion device (d2)
Completion status
indication device (d2)+1
20 SERIAL COMMUNICATION INSTRUCTIONS
1692
20.6 Receiving Data Using the Bidirectional Protocol
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
*3
*4
*4
*5
Description
Specifies the receive channel.
• 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
Used to store the result of sending with the G(P).BIDIN 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
Double word
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
END
0
END
Completion of
the instruction
Indirect
Constant
specification
LZ
K, H
Setting range
1, 2
*1
1 or more
0
END
0
ON
OFF
1 scan
Others
(U)
E
$
Set by
User
System
System
User
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents