1538
16 ETHERNET INSTRUCTIONS
16.1 Open/Close Processing Instructions
*1 When the execution type is set to 0, the device areas in (s2)+4 to (s2)+14 are used by the system and the user must not use the areas.
*2 This item can be set when the connection number in (s1) is one from 1 to 7 and 9 to 15.
*3 This specification is enabled when UDP/IP is specified for the communication method (protocol).
Data cannot be sent through the connection for which 65535 (FFFFH) is specified. Specify a value from 1 to 65534 to send data.
*4 This specification is enabled when TCP/IP is specified for the communication method (protocol).
*5 This specification is enabled when UDP/IP is specified for the communication method (protocol).
*6 Settings are ignored if the open method (bits 10 and 11) specified by (s2)+4 is "10: Unpassive open".
Processing details
The GP.CONOPEN instruction is used for socket communications or fixed buffer communications.
For the combinations of available settings for connection opening, refer to the following.
MELSEC iQ-R Ethernet User's Manual (Application)
Operation error
The following figure shows an IP address setting example.
Example: IP address "10.97.24.200 (0A.61.18.C8)"
[Program example]
or
[Execution result]
(1) The data is stored from the lower byte.
+5
Own node port number
Specify the port number of the own node.
(Port numbers 5000 to 5009 is reserved for the system and cannot be used.)
1024 to 4999
5010 to 65534
(0400H to 1387H,
1392H to FFFEH)
User
+6
+7
IP address of external
device
Specify the IP address (IPv4) of an external device.
• The IP address is stored in (s2)+6 and (s2)+7.
• To enable broadcast, store FFFFFFFFH.
00000001H to
FFFFFFFFH
User
+8 to +13
System area
+14
Destination port
number
Specify the destination port number.
When receiving data from all port numbers, store FFFFH.
1024 to 65535
(0400H to FFFFH)
User
Error code
((s2)+1)
Description
C000H to CFFFH
MELSEC iQ-R Ethernet User's Manual (Application)
Operand: (s2)
Device
Item
Description
Setting range
Set by
MOV
H18C8
D206
MOV
H0A61
D207
[Program example]
DMOV
H0A6118C8
D206
D206
D207
18C8H
0A. 61. 18. C8
0A61H
(1)
Содержание MELSEC iQ-R Series
Страница 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Страница 34: ...32 MEMO ...
Страница 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Страница 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Страница 204: ...202 5 SEQUENCE INSTRUCTIONS 5 3 Output Instructions Operation error There is no operation error ...
Страница 470: ...468 6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions Operation error There is no operation error ...
Страница 472: ...470 6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions Operation error There is no operation error ...
Страница 479: ...6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions 477 6 Operation error There is no operation error ...
Страница 504: ...502 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 518: ...516 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 520: ...518 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 754: ...752 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 756: ...754 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 758: ...756 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 760: ...758 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 895: ...7 APPLICATION INSTRUCTIONS 7 16 Ramp Signal Instruction 893 7 Operation error There is no operation error ...
Страница 917: ...7 APPLICATION INSTRUCTIONS 7 20 Data Processing Instructions 915 7 Operation error There is no operation error ...
Страница 919: ...7 APPLICATION INSTRUCTIONS 7 20 Data Processing Instructions 917 7 Operation error There is no operation error ...
Страница 1415: ...13 SFC PROGRAM INSTRUCTIONS 13 1 SFC Control Instructions 1413 13 Operation error There is no operation error ...
Страница 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Страница 1795: ...25 TYPE CONVERSION FUNCTIONS 25 1 Converting BOOL to WORD 1793 25 Operation error There is no operation error ...
Страница 1805: ...25 TYPE CONVERSION FUNCTIONS 25 10 Converting WORD to DINT 1803 25 Operation error There is no operation error ...
Страница 1819: ...25 TYPE CONVERSION FUNCTIONS 25 21 Converting INT to DWORD 1817 25 Operation error There is no operation error ...
Страница 1950: ...1948 32 STRING FUNCTIONS 32 2 Extracting String Data From the Left Right Operation error There is no operation error ...
Страница 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Страница 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Страница 2082: ...2080 APPX Appendix 6 Process Control Program Examples 129 Set the default value of the loop tag ...
Страница 2093: ...APPX Appendix 7 List of Loop Tag Memory Areas Used by Process Control Instructions 2091 A MEMO ...
Страница 2109: ......