EipControl: Control the EtherNet/IP Scanner
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.
To see the general representation in IL or ST language, refer to Function and Function Block Representation.
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 |
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 *)