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


 
5.3 Serial Communication
5.3.2 OUTPUT instruction
5-71
G_OUTPUT
5
MODULE DEDICATED
INSTRUCTION
G_OUTPUT
Control Data
Program Example
The following program sends data of devices from D11 to D15 using the nonprocedural 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 send data
Sets transmission
channel to 1
Sets number of send
data to 5 words
Sends data
Turns normal completion
flag ON
Stores error code
Turns normal completion
flag OFF
Turns error completion
flag ON
Turns error completion
flag OFF
Sets completion code