Explanation Of Ethernet Instructions - Delta AH500 Programming Manual

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

6.22.2 Explanation of Ethernet Instructions

API
Instruction code
2200
SOPEN
Device
X
Y
M
S
1
S
2
S
3
Symbol:
Explanation:
1.
S
is 1 if users want to open the TCP socket, and S
1
S
is the socket number. The AH500 series PLC as the client sends the TCP connection
2
request to the server if S
connection request from the client if S
be 0 or 1.
2.
The operand S
should be either 0 or 1; the operand S
1
and 8; the operand S
3.
Before using the instruction, users have to accomplish the following setting in HWCONFIG of
ISPSoft or using the instruction MOV to transfer the data related to the sockets to the
corresponding special data registers.
PLC Parameter Setting→Ethernet-Basic→Setting the IP addres and the netmask
address
PLC Parameter Setting→Ethernet-Advance→Socket→Enable Socket Function
PLC Parameter Setting→Ethernet-Advance→Socket→TCP/UDP Socket Connection→
Setting the sockets which are used.
4.
Users can set the sockets which uses the TCP protocol to execute the data exchange. The
values in all registers can be altered except that the transmitted data counter and the received
data counter are read-only counters.
Operand
P
S
, S
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction
AH500
: Socket mode
S
1
: Socket number
S
2
: Start mode
S
3
is 1, and the AH500 series PLC as the sever waits for the TCP
3
is 0. If users want to start the UDP connection, S
3
should be either 0 or 1.
3
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
, S
3
L
SM SR
E
PR
AH500
Word
Word
Word
is 0 if users want to open the UDP socket.
1
should be within the range between 1
2
Function
Opening the socket
K
16# "$"
DF
-
can
3
6 - 5 0 1

Advertisement

Table of Contents
loading

Table of Contents