Vision700 - Using Ethernet

The V700 comprises a special Ethernet card that offers 8 sockets. Note that your V700 applications implement Ethernet differently from applications using other Vision controllers.

Certain Ethernet system operands are not relevant for the V700. The function of some system operands are replaced by a communication function located under the COM>TCP/IP menu, called V700: Read Socket Status.

Note

The COM>TCP/IP menu also contains the function V700 Write Socket Status. This is reserved for use in a future version of VisiLogic.

The V700: Read Socket Status function checks the status of the selected socket according to the specified Socket Status requested, then saves the status indication into the linked operand.

In the next image, the function checks the status of Socket 0. The request is for Socket Status # 22. The result is stored in MI100. The following Compare function checks to see if the status is 23, TCP Connection Established.

 

The Socket Status request types are listed below.

Indication

Message

HEX

DEC

0

0

 Socket Closed 

1

1

 Socket ARP

13

19

 Socket Initialized to TCP

14

20

 Socket Listening (TCP Server)

15

21

 Socket SYN Sent to TCP Server (Connect Request Sent)

16

22

 Socket SYN Received from TCP Client (Connect Request Received)

17

23

 Socket TCP Connection Established 

18

24

 Socket Closing (fin_wait)

1A

26

 Socket Closing

1B

27

 Socket Closing (time_wait)

1C

28

 Socket Closing (Disconnect-request) (FIN packet is received from the peer)

1D

29

 Socket Closing (last_ack)

22

34

 Socket Open in UDP Mode

32

50

 Socket Open IPRAW mode

42

66

 Socket Open IMCRAW mode

5F

95

 Socket Open PPPoE mode

 

Indication

Message

HEX

DEC

0

0

Pcom

1

1

MODBUS

2

2

Remote I/O

3

3

IP Protocol FB

4

4

UDP Raw

5

5

http

6

6

email

7

7

TCP Raw

8

8

ICMP

9

9

SNMP

 

Default Socket Settings

The V700 default settings are listed below:

Socket 0- TCP_Slave Port: 20256

Socket 1- TCP_Slave Port: 20257

Socket 2- TCP_Slave Port: 20258

Socket 3- TCP_Slave Port: 20259

Socket 4- TCP_Slave Port: 20260

Socket 5- TCP_Slave Port: 20261

Socket 6- TCP_Slave Port: 20262

Socket 7- TCP_Slave Port: 20263

Relevant Ethernet System Operands

This is the list of Ethernet system operands that are relevant for the V700.

#

Description

Comments

SB 142

Ethernet: Card Initialized

Remains Relevant

SB 147

 

Replaced by Request # 22

SB 148

 

SB 149

 

SB 150

 

SB 151

Ethernet Link: Communication established

This refers to the physical Ethernet cable

SB 163

Connection Closed

Replaced by Request # 22

SB 164

SB 165

SB 166

 

 

#

Description

Comments

SI 141

Protocol Type

 

Replaced by Request # 38

SI 142

SI 143

SI 144

 

Parameter

Function

Message

S1 145

Socket  Status

Replaced by Request # 22

SI 146

SI 147

SI 148

Parameter

Description

Comments

SDW 14

Number of sent transmissions

Replaced by Request # 41

Request #41 to write the number of Sent Transmissions for the specified socket into the linked register

SDW 15

SDW 16

SDW 17

SDW 18

Number of received transmissions

Replaced by Request # 42

Request #42 to write the number of Received Transmissions for the specified socket into the linked register

SDW 19

SDW 20

SDW 21

SDW 37

MODBUS Slave: Receive bitmap

Increments a 4-bit field each time a slave receives data

SDW 61

MODBUS Slave: Ethernet Receive bitmap

Increments a 4-bit field each time a slave receives data