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


 
5.3 Serial Communication
5.3.12 PUTE instruction
5-103
G_PUTE
5
MODULE DEDICATED
INSTRUCTION
G_PUTE
5.3.12 PUTE instruction
G_PUTE
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction registers a user frame.
Control Data
G(P)_PUTE
P: Executing condition
:
indicates any of the following
instructions.
G_PUTE GP_PUTE
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
s1:
Variable that stores control data :Array of ANY16 [0..3]
s2:
Start number of the device that stores read registration data :ANY16
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


Device Item Setting data Setting range Setting side
[0]
Registration/deletion specification
Specify whether to register/delete the user frame of the
number specified by [2].
1: Registered 3: Deleted
1, 3 User
[1]
Registration/deletion result
The instruction completion status is stored.
0 : Normal completion
Other than 0 : Error completion (error code)
System
[2]
Frame No. Specify the user frame number.
1000 to 1199 User
[3]
Number of registered bytes
1 to 80: Number of bytes of the user frame to be
registered.
* Specify any number in the range from 1 to 80 as a
dummy when '3: Deleted' is selected.
1 to 80 User
Serial
Structured ladder/FBD
ST
G_PUTE
EN ENO
Un*
s1
s2
d
G_PUTE
(EN, Un*, s1, s2, d);ENO:=
s1
s2
d
s1
s1
s1
s1
s1