Mitsubishi Electric FX5 User Manual page 88

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

Advertisement

Processing details
This instruction opens a connection specified in (s1).
The set values used for the open processing is selected in (s2)+0.
The result of the SP.SOCOPEN instruction can be checked with the completion device, (d)+0 and (d)+1.
• Completion device (d)+0: Turns on in the END processing of the scan after completion of the SP.SOCOPEN instruction,
and turns off in the next END processing.
• Completion device (d)+1: Turns on or off according to the status at the time of completion of the SP.SOCOPEN instruction.
Status
When completed
When failed
Program
SP.SOCOPEN instruction
Completion device (d)+0
Completion device (d)+1
• A connection with no parameters (no protocol is specified) can be opened. In this case, specify 8000H for (s2)+0 and
configure open settings in (s2)+2 to (s2)+9.
Operation error
Error code
Description
(SD0/SD8067)
3405H
The connection number specified by (s1) is other than 1 to 8.
2820H
The device number specified by (s2) or (d) is outside the range of the number of device points.
2822H
Device that cannot be specified is specified.
3582H
When an instruction which cannot be used in interruption routine program is used.
7 SOCKET COMMUNICATION FUNCTION
86
7.4 Socket Communication Function Instructions
Description
Remains off.
Turns on in the END processing of the scan after completion of the SP.SOCOPEN instruction, and turns off in the next
END processing.
END processing END processing END processing
Execute SP.SOCOPEN instruction
OFF
OFF
Connection
open
ON
When failed
ON
1 scan when
normally completed

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents