Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5.3 Serial Communication
5.3.4 BIDOUT instruction
5-77
G_BIDOUT
5
MODULE DEDICATED
INSTRUCTION
G_BIDOUT
Control Data
Program Example
The following program sends desired data stored in devices from D11 to D15 using the
bidirectional protocol.
(For the Q series C24 whose I/O signals are X/Y00 to X/Y1F)
[Structured ladder/FBD]
Device Item Setting data Setting range Setting side
[0]
Transmission channel
Set the transmission channel.
1: Channel 1 (CH1 side)
2: Channel 2 (CH2 side)
1, 2 User
[1]
Transmission result
The instruction completion status is stored.
0 : Normal completion
Other than 0 :
Error completion (error code)
System
[2]
Number of send data Set the number of send data.
1 or more User
s1
s1
s1
Transmission
instruction pulse
Sets transmission
channel to 1
Sets number of send
data to 5 words
Sends data
Turns normal completion
flag ON
Stores error code
Turns error completion
flag ON
Turns normal completion
flag OFF
Turns error completion
flag OFF
Sets send data