Opening A Connection - Mitsubishi Electric FX5 User Manual

Melsec iq-f series, ethernet communication
Hide thumbs Also See for FX5:
Table of Contents

Advertisement

Opening a connection

SP.SOCOPEN
Establishes a connection.
Ladder diagram
(U)
(s1)
FBD/LD
EN
ENO
U0
d
s1
s2
("SP_SOCOPEN" enters .)
Setting data
■Descriptions, ranges, and data types
Operand
Description
*1
(U)
Dummy (Input the character string ['U0'].)
(s1)
Connection number
(s2)
Start number of the device in which control data is
stored
(d)
Start number of the device which turns on for one
scan upon completion of the instruction.
(d)+1 also turns on when failed.
EN
Execution condition
ENO
Execution result
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
*2 Regardless of the program language to be used, the data type is specified by a device. Do not specify a label.
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(U)
(s1)
(s2)
(d)
*1 T, ST, C cannot be used.
7 SOCKET COMMUNICATION FUNCTION
84
7.4 Socket Communication Function Instructions
(s2)
(d)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=SP_SOCOPEN(EN,U0,s1,s2,d);
Range
Data type
Character string
1 to 8
16-bit unsigned binary
Refer to Control data
Word
(Page 85)
Bit
Bit
Bit
Double word Indirect
Z
LC
LZ
Data type (Label)
*2
(ANYSTRING_SINGLE)
ANY16
ANY16_ARRAY
(Number of elements: 10)
ANYBIT_ARRAY
(Number of elements: 2)
BOOL
BOOL
Constant
specification
K, H
E
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents