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


 
5.3 Serial Communication
5.3.9 PRR instruction
5-87
G_PRR
5
MODULE DEDICATED
INSTRUCTION
G_PRR
5.3.9 PRR instruction
G_PRR
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction sends data by user frame according to the specification in user frame
specification area for transmission during communication using the nonprocedural protocol.
G(P)_PRR
P: Executing condition
:
indicates any of the following
instructions.
G_PRR GP_PRR
Input argument EN:
Executing condition :Bit
Un*:
Start I/O number of the module
(00 to FE: Higher two digits when expressing the I/O number in
three digits)
:ANY16
s:
Variable that stores control data :Array of ANY16 [0..4]
Output argument ENO:
Execution result :Bit
d:
Variable that turns ON upon completion of the instruction
d[1] also turns ON at the time of error completion.
:Array of bit [0..1]
Setting
data
*1
Internal device
R, ZR
J\
U\G
Zn
Constant
Others
Bit Word Bit Word

Serial
Structured ladder/FBD
ST
G_PRR
EN ENO
d
Un*
s
G_PRR
(EN, Un*, s, d);ENO:=
s
d