Справочник Пользователя для Mitsubishi Electronics MELSEC Q series MELSEC L series

Скачать
Страница из 412
5.3 Serial Communication
5.3.10 CSET instruction (initial setting)
5-91
ZP_CSET
5
MODULE DEDICA
TED 
INSTRU
CTI
O
N
ZP
_CSET
5.3.10  
CSET instruction (initial setting)
ZP_CSET
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction changes the setting values for sending/receiving data using communication 
protocols.
ZP_CSET
Executing condition :
 indicates the following instruction.
ZP_CSET
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)
:String
s1:
Reception channel number
1: Channel 1 (CH1 side)
2: Channel 2 (CH2 side)
:ANY16
s2:
Variable that stores control data
:Array of ANY16 [0..111]
Output argument
ENO:
Execution result
:Bit
d1:
Dummy
:ANY16
d2:
Variable that turns ON upon completion of the instruction
d2[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
K, H
Others
Bit
Word
Bit
Word
Serial
Structured ladder/FBD
ST
ZP_CSET
EN
ENO
Un*
s1
s2
d1
d2
ZP_CSET
(EN, Un*, s1, s2, d1, d2);
ENO:=
s1
s2
d1
d2