Ethernet TCP\IP: SBs & SIs

 

Note

The Vision700 controller series comprises a built in Ethernet port, and the Ethernet system operands do not apply.

Please check the topic Vision700 - Using Ethernet for more information.

 

#

Description

Turns ON when:

Turns OFF when:

Reset by:

Comments

SB 141

Ethernet: Card Exists

Ethernet card is found

No Ethernet card is installed

 

When the Ethernet: Card Initialization FB runs, the PLC checks whether an Ethernet card is installed.

SB 142

Ethernet: Card Initialized

Ethernet card initialization succeeds

Ethernet card initialization fails

 

 

SB 143

Ethernet: Socket 0 Initialized

Socket 0 initialization succeeds

Socket 0 initialization fails

 

 

SB 144

Ethernet: Socket 1 Initialized

Socket 1 initialization succeeds

Socket 1 initialization fails

 

 

SB 145

Ethernet: Socket 2 Initialized

Socket 2 initialization succeeds

Socket 2 initialization fails

 

 

SB 146

Ethernet: Socket 3 Initialized

Socket 3 initialization succeeds

Socket 3 initialization fails

 

 

SB 147

Ethernet: Socket 0 Connected

Connection established via Socket 0

Socket 0 is free

 

SBs 147-150 turn ON when:

  • Link exists

  • Ethernet Card initialization complete

  • Socket initialization complete

  • Hardware TCP/IP Socket state is Connection Established

SB 148

Ethernet: Socket 1 Connected

Connection established via Socket 1

Socket 1 is free

 

SB 149

Ethernet: Socket 2 Connected

Connection established via Socket 2

Socket 2 is free

 

SB 150

Ethernet Status: Socket 3 Connected

Connection established via Socket 3

Socket 3 is free

 

SB 151

Ethernet Link: Communication established

A link exists (cable plugged in)

No link exists (cable disconnected)

 

This refers to the physical Ethernet cable

SB 152

Ethernet Link: 10baseT

When a 10baseT link is detected, during data transmit/ receive.

When a 10baseT link is not detected, during data transmit/ receive.

 

 

SB 153

Ethernet Link: 100baseT

When a 100baseT link is detected, during data transmit/ receive.

When a 100baseT link is not detected, during data transmit/ receive.

 

 

SB 154

Ethernet: data collision

More than one device is transmitting data over the Ethernet network

One or no devices are transmitting data over the Ethernet network

 

 

SB 155

Ethernet: Socket 0 Send in Progress

Data is being transmitted via Socket 0

Data is not being transmitted via Socket 0

 

 

SB 156

Ethernet: Socket 1 Send in Progress

Data is being transmitted via Socket 1

Data is not being transmitted via Socket 1

 

 

SB 157

Ethernet: Socket 2 Send in Progress

Data is being transmitted via Socket 2

Data is not being transmitted via Socket 2

 

 

SB 158

Ethernet: Socket 3 Send in Progress

Data is being transmitted via Socket 3

Data is not being transmitted via Socket 3

 

 

SB 159

Enable Unicast, Socket 0

Turn ON (ON by default) to enable Socket 0 for Unicast

Turn OFF  to disable Socket 0 for Unicast

 

 

SB 162

Link failed after card was properly initialized

Turns ON if link falls after Card Init

 

 

Use SB 168 to automatically re-establish the link.

SB 163

Connection is  Closed (Socket 0)

By OS, when connection is  closed

 

 

SB turns ON when Close Connection is performed. This is after Transmit / Receive buffers are empty or 1-second timeout has passed. Socket is initialized.

SB 164

Connection Closed (Socket 1)

By OS, when connection is  closed

 

 

 

SB 165

Connection Closed (Socket 2)

By OS, when connection is  closed

 

 

 

SB 166

Connection Closed (Socket 3)

By OS, when connection is  closed

 

 

 

SB 167

Ethernet Critical error

Turns ON at critical error

 

 

OS reads Ethernet  card registers to SI 300 - 427, then re-initializes the card. User must reset PLC

SB 168

Enable "Link lost" auto recover

Automatically retry link

Do not automatically retry (default)

 

SB 168 should be turned ON at power-up.

It is OFF by default to preserve backwards compatibility with applications created previous to OS 4.70 B14.

If SB 168 is ON, when the Ethernet link fails, the OS saves the Ethernet parameters and resets:

   • SB 142 Card Initialized

   • SBs 143-146 Socket initialized (Sockets 0-3)

   • SBs 147-150 Socket connected (Sockets 0-3)

When the Ethernet link is reestablished, the O/S performs CARD INIT and SOCKET INIT for all 4 sockets according to the saved parameters.

SB 169

Automatic reconnect requested, in progress (Socket 0)

At Ladder

 

 

TCP - Used as internal flags by O/S in order to perform auto reconnect (user parameters SI 107 – 110)

SB 170

Automatic reconnect requested, in progress (Socket 1)

 

 

 

SB 171

Automatic reconnect requested, in progress (Socket 2)

 

 

 

SB 172

Automatic reconnect requested, in progress (Socket 3)

 

 

 

SB 173

Automatic reconnect requested (Socket 0)

 

 

 

SB 174

Automatic reconnect requested (Socket 1)

 

 

 

SB 175

Automatic reconnect requested (Socket 2)

 

 

 

SB 176

Automatic reconnect requested (Socket 3)

 

 

 

 

 

#

Description

Value

Comments

SI 101

TCP/IP retries base time out

  • Legal values are 1 to 10, units of 100 mSec (1 stands for 100 mSec etc.)

  • Default value is 200 mSec.

  • Same value is for ALL 4 sockets

  • Requires CARD INIT

  • Illegal value request will be rejected (no change)

SI 102

Retries count

  • Legal values are from 1 to 50

  • Default value is 6

  • Illegal value request will be rejected (no change)

SI 103

TCP/IP Connection Keep Alive (Socket 0)

Units of 100 mSec

Note- When value is ‘0’, the function is disabled

 

Enables the PLC to disconnect if there is no communication from the connected device.

  • When TCP/IP connection is established (SI 145-148 = 6) check data transport (SDW 14 – 21).

  • If no data transport occurred during the defined time – perform ‘Socket Init’.

  • Keep Alive counter is SDW 38

SI 104

TCP/IP Connection Keep Alive (Socket 1)

SI 105

TCP/IP Connection Keep Alive (Socket 2)

SI 106

TCP/IP Connection Keep Alive (Socket 3)

SI 107

TCP/IP Keep Client (Master) Connection  (Socket 0)

Units of 100 mSec

Note- When value is ‘0’, the function is disabled

Enables the PLC to reconnect when there is no communication from the connected device for the defined time.

  • Note that the value per socket should be higher than the regular “keep alive” (SI 103 – 106)

  • Counter of the operation in SDW 45

SI 108

TCP/IP Keep  Client (Master) Connection  (Socket 1)

SI 109

TCP/IP Keep  Client (Master) Connection  (Socket 2)

SI 110

TCP/IP Keep  Client (Master) Connection  (Socket 3)

SI 140

Ethernet Send has failed, per socket ( bitmap)

Bit is ON when Send is not successful

Bit Map:

| UDP S3 | UDP S2 | UDP S1 | UDP S0 | TCP S3 | TCP S2 | TCP S1 | TCP S0 |

SI 141

Ethernet Socket 0: Protocol Type

  • 0=PC application (default)

  • 1=MODBUS

(Read-only)

Sockets are set to Protocol Type 0 by default. Activating MODBUS Configuration changes the  Protocol Type to 1.

SI 142

Ethernet Socket 1: Protocol Type

SI 143

Ethernet Socket 2: Protocol Type

SI 144

Ethernet Socket 3: Protocol Type

 

Parameter

Function

SI Value

Message

S1 145

Socket 0: Status

 0

 Initialized to UDP, status: Closed

SI 146

Socket 1: Status

 2

 Initialized to TCP, status: Listen

SI 147

Socket 2: Status

 14

 Initialized to UDP, status: Ready

SI 148

Socket 3: Status

 15

 Initialized to UDP, status: Engaged in Transmit/Receive

Parameter

Description

Value

Comments

SDW 14

Socket 0: Number of sent transmissions

Updated after each data transmission via Socket 0

 

SDW 15

Socket 1: Number of sent transmissions

Updated after each data transmission via Socket 1

 

SDW 16

Socket 2: Number of sent transmissions

Updated after each data transmission via Socket 2

 

SDW 17

Socket 3: Number of sent transmissions

Updated after each data transmission via Socket 3

 

SDW 18

Socket 0: Number of received transmissions

Updated after each data packet received via Socket 0

 

SDW 19

Socket 1: Number of received transmissions

Updated after each data packet received via Socket 1

 

SDW 20

Socket 2: Number of received transmissions

Updated after each data packet received via Socket 2

 

SDW 21

Socket 3: Number of received transmissions

Updated after each data packet received via Socket 3

 

SDW 37

MODBUS Slave: Receive bitmap

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

 High - >low:

| Eth port 3| Eth port 2| Eth port 1| Eth port 0|  |spare|  | com 3| com 2|  com 1|

SDW 38

TCP/IP Keep Alive counter

Increments a 8-bit field each time the O/S initializes the socket due to ‘Keep Alive’ (SI 103-106)

| Eth port 3| Eth port 2| Eth port 1| Eth port 0|  

SDW 39

Ethernet general critical error

8-bit counters

Bits 24-31: "Ethernet card init” – if the MS Byte (xxx.yyy.zzz.kkk, MS means the xxx part) of the IP/ SUBNET/ GATEWAY is zero – do not init the Ethernet.

Bits 16-23: Check once in second if local IP SUB and GATEWAY are ok. Cause set of SB 167.

Bits 8-15: TCP (connect) & UDP (send) IP is defined – Read HW remote IP to verify. Case verifies failed: Ignore connect or send.

Bits 0-7:  While getting message from socket – if the high part of the remote IP high is zero. Cause set of SB 167.

SDW 45

TCP/IP Keep  Client (Master) Connection

Increments a 8-bit field each time the O/S attempts to Keep Client (Master) Connection’ (SI 107-110)

| Eth port 3| Eth port 2| Eth port 1| Eth port 0|