EipControl: Control the EtherNet/IP Scanner

Function Description

This function starts or stops one or more EtherNet/IP connection.

The application doesn't manipulate the control bits directly. EipControl function must be used.

The connection ID can be found for each EtherNet/IP target device in its Connections tab.

Graphical Representation

G-SE-0047134.1.gif-high.gif

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to Function and Function Block Representation.

I/O Variable Description

This table describes the input variable:

Input

Type

Comment

i_uiConnId

UINT

Connection ID of the connection monitored.

i_uiControl

UINT

o0 = Start specified connection

o1 = Stop specified connection

o2 = Start all connections

o3 = Stop all connections

This table describes the output variable:

Output

Type

Comment

EipControl

UDINT

o0 = successful start or stop

o-1 = incorrect connection ID

Example

This is an example of a call of this function:

rc := EipControl(0,257) ;(* opens the connection No 116 *)

IF rc <> 0 THEN (* Abnormal situation to be processed at application level *)