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


 
5.3 Serial Communication
5.3.9 PRR instruction
5-89
G_PRR
5
MODULE DEDICATED
INSTRUCTION
G_PRR
Program Example
The following program sends desired data and the user frames from number 1 to number 5
which are registered in the transmission frame setting.
(For the Q series C24 whose I/O signals are X/Y80 to X/Y9F)
[Structured ladder/FBD]
Transmission
instruction pulse
Sets number of
send data
Sets desired
send data
Sets send data
to buffer memory
User frame 0
User frame 1
User frame 2
User frame 3
User frame 4
User frame 5
Sets user frames
to buffer memory
Sets transmission
channel to 1
Clears transmission
result
Sets CR/LF to 'CR/LF
not added'
Sets transmission
pointer
Sets number of
send data
Performs user frame
transmission
Turns normal completion
flag ON
Turns error completion
flag ON