Mitsubishi Electronics MELSEC Q series MELSEC L series ユーザーズマニュアル

ページ / 412
7.5 SOCSND Instruction
 
7-13
7
SO
CKE
T COMM
UNI
CA
TI
ON 
FUNCTION I
NS
TRUCTION
SP_
SOCS
N
D
SP_SOCSND
7.5  
SOCSND Instruction
SP_SOCSND
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction sends data to the external device of a specified connection.
SP_SOCSND
Executing condition :
 indicates the following instruction.
SP_SOCSND
Input argument
EN:
Executing condition
:Bit
Un:
Dummy ("U0")
:String
s1:
Connection number (1 to 16)
:ANY16
s2:
Variable that stores control data
:Array of ANY16 [0..1]
s3:
Start number of the device that stores send data
ANY16
Output argument
ENO:
Execution result
:Bit
d:
Variable that turns ON during one scan upon completion of the 
instruction
d[1] also turns ON at the time of error completion.
:Array of bit [0..1]
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
*1
*1
*1
*1
QnUDE(H)
LCPU
ST
Structured ladder/FBD
SP_SOCSND
EN
ENO
Un
s1
s2
s3
d
SP_SOCSND
(EN, Un, s1, s2, s3, d);
ENO:=
s1
s2
s3
d