20 SERIAL COMMUNICATION INSTRUCTIONS
20.5 Sending Data Using the Bidirectional Protocol
1689
20
■
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 sent 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
• By using the bidirectional protocol of the module specified by (U), the data stored in the device specified by (s2) and later is
sent according to the control data in the device specified by (s1) and later.
• The completion status of the G(P).BIDOUT instruction can be checked with the completion device (d) and the completion
status indication device (d)+1.
• The following figure shows how the G(P).BIDOUT 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)
(s1)
(s2)
(d)
Operand: (s1)
Device
Item
Description
Setting range
Set by
+0
Send channel
Specifies the send channel.
• 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
1, 2
User
+1
Result of sending
Used to store the result of sending with the G(P).BIDOUT instruction.
• 0: Normal
• Other than 0: Error (error code)
System
+2
Amount of send data
Specifies the amount of the data to be sent.
1 or more
User
• Completion device (d)
This device turns on during END processing of the scan where the G(P).BIDOUT instruction completes, and turns off during the next END processing.
• Completion status indication device (d)+1
This device turns on or off depending on the completion status of the G(P).BIDOUT 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(P).BIDOUT instruction completes, and turns off during the
next END processing.
END
0
0
END
0
END
END
0
END
0
OFF
OFF
OFF
OFF
ON
ON
Sequence scan
G(P).BIDOUT instruction
Completion device (d)
1 scan
Completion of
the instruction
Completed successfully
Completed with an error
Execution of the instruction
Completion status
indication device (d)+1
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: ......