16 ETHERNET INSTRUCTIONS
16.1 Open/Close Processing Instructions
1537
16
■
Control data
Operand: (s2)
Device
Item
Description
Setting range
Set by
+0
Execution type/End
type
(1) Execution type
Specify whether to use the parameter value set by the engineering tool or the value
set in (s2)+4 to (s2)+14 of control data for opening a connection.
• 0: Performs open processing according to the "external device connection
configuration" set by the engineering tool.
• 1: Performs open processing according to the setting in (s2)+4 to (s2)+14 of
control data.
If the CP.CONOPEN instruction is executed by setting the value for the external
device connection configuration of the engineering tool and also setting device
(s2)+0 to 1, the instruction performs open processing according to the value set in
its control data.
Even if a value is set in (s2)+4 and later after setting (s2)+0 to 0, the value is
ignored.
0000H
0100H
User
+1
Completion status
The completion status is stored upon completion of the instruction.
• 0: Completed successfully
• Other than 0: Completed with an error (error code)
System
+2
System area
+3
System area
+4
Application setting area
Specify the application of a connection.
■
Fixed buffer communications
(1) Application of fixed buffer (b0)
• 0: For sending
• 1: For receiving
(2) Communication code (b1)
• 0: Binary code
• 1: ASCII code
(3) Online program change (b3)
• 0: Disable
• 1: Enable
(4) Pairing open (b4)
• 0: Disable pairing open.
• 1: Enable pairing open.
(5) Communication method (protocol) (b5)
• 0: TCP/IP
• 1: UDP/IP
(6) Fixed buffer communications with/without procedure (b6 and b7)
• 00: With procedure
• 01: Without procedure
(7) Alive check (b8 and b9)
• 00: KeepAlive
• 01: Alive check with UDP
• 10: Disable the alive check.
(8) Opening method (b10 and b11)
• 00: Active open or UDP/IP
• 10: Unpassive open
• 11: Fullpassive open
■
Socket communications
(1) Online program change (b3)
• 0: Disable
• 1: Enable
(2) Communication method (protocol) (b5)
• 0: TCP/IP
• 1: UDP/IP
(3) Opening method (b10 and b11)
• 00: Active open or UDP/IP
• 10: Unpassive open
• 11: Fullpassive open
Left
User
b15
b8
0
(1)
0
b0
…
…
b15
b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1
0
(7)
(8)
b0
…
(1)
(2)
0
(3)
(6)
(5) (4)
b15
b12 b11 b10 b9
b6 b5 b4 b3 b2
0
0
0
0
(3)
b0
…
…
…
(1)
(2)
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......