EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 1694

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1692
20 SERIAL COMMUNICATION INSTRUCTIONS
20.6 Receiving Data Using the Bidirectional Protocol
Applicable devices
*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
*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.
The following figure shows how the G(P).BIDIN instruction operates when completing its execution.
Operand Bit Word Double word Indirect
specification
Constant Others
(U)
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(U)
*1

*3
 
(s) 
*4
 
(d1) 
*4
 
(d2)
*2

*5
 
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 sending with the G(P).BIDIN 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
1 or more User
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.
END0 0 END0ENDEND 0 END0
OFF
OFF
OFF
ON
Sequence scan
G(P).BIDIN instruction
Completion device (d2)
1 scan
Completion of
the instruction
Execution of the instruction
Completion status
indication device (d2)+1

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals