FP_ETHERNETIP_GET_STATE_TABLE_ALL

Read the EtherNet/IP communication state on all nodes

This FP instruction reads the parameter information or status information on all registered nodes and stores it in the output variable of the type FP_ETHERNETIP_STATE_TABLE_ALL_DUT.

Parameters

Output

d_dutStateTableAll (FP_ETHERNETIP_STATE_TABLE_ALL_DUT)

Destination to which the data is written

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if the read area is outside the permissible range

  • if the instruction is executed in an interrupt program

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if the read area is outside the permissible range

  • if the instruction is executed in an interrupt program

Example

POU header

All input and output variables used for programming this function have been declared in the POU header. The same POU header is used for all programming languages.

	VAR
		bEnable: BOOL:=FALSE;
		dutNodesInfo: FP_ETHERNETIP_STATE_TABLE_ALL_DUT;
	END_VAR

POU body

When the variable start is set to TRUE, the function is carried out.

LD body

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
        ACTIVE_NETWORK := 0 ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 4 ;
        NETWORK_BODY
B(B_CONTACT,,bEnable,4,1,6,3,);
B(B_VAROUT,,dutNodesInfo,27,2,29,4,);
B(B_F,FP_ETHERNETIP_GET_STATE_TABLE_ALL!,,8,0,27,4,,?DEN?AENO?Cd_dutStateTableAll);
L(1,2,4,2);
L(6,2,8,2);
L(1,0,1,4);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY

ST body

If (bEnable) then
    FP_ETHERNETIP_GET_STATE_TABLE_ALL(d_dutStateTableAll => dutNodesInfo);
END_IF;

Modified on: 2022-03-02Feedback on this pagePanasonic hotline