FP_MEWNET_CLEAR_ERRORS

Clear errors in the FP7 multi-wire link unit

This FP instruction clears errors in the FP7 multi-wire link unit. It resets the values of the following system variables:

System variable

Description

sys_bIsMultiWireUnit1Error

Error in FP7 multi-wire link unit 1

sys_bIsMultiWireUnit2Error

Error in FP7 multi-wire link unit 2

sys_bIsMultiWireUnit3Error

Error in FP7 multi-wire link unit 3

sys_bIsMultiWireUnit4Error

Error in FP7 multi-wire link unit 4

sys_bIsMultiWireUnit5Error

Error in FP7 multi-wire link unit 5

sys_bIsMultiWireUnit6Error

Error in FP7 multi-wire link unit 6

sys_wMultiWireUnit1ErrorCode

FP7 multi-wire link unit 1 error (higher byte: error code, lower byte: unit number)

sys_wMultiWireUnit2ErrorCode

FP7 multi-wire link unit 2 error (higher byte: error code, lower byte: unit number)

sys_wMultiWireUnit3ErrorCode

FP7 multi-wire link unit 3 error (higher byte: error code, lower byte: unit number)

sys_wMultiWireUnit4ErrorCode

FP7 multi-wire link unit 4 error (higher byte: error code, lower byte: unit number)

sys_wMultiWireUnit5ErrorCode

FP7 multi-wire link unit 5 error (higher byte: error code, lower byte: unit number)

sys_wMultiWireUnit6ErrorCode

FP7 multi-wire link unit 6 error (higher byte: error code, lower byte: unit number)

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;
	END_VAR

LD body

When the variable bEnable is set to TRUE, the function is executed.

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 7 ;
        NETWORK_BODY
B(B_CONTACT,,bEnable,4,3,6,5,);
B(B_F,FP_MEWNET_CLEAR_ERRORS!,,15,2,30,5,,?DEN?AENO);
L(1,0,1,7);
L(1,4,4,4);
L(6,4,15,4);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY

ST body

If (bEnable) Then
    FP_MEWNET_CLEAR_ERRORS();
End_if;

Modified on: 2022-01-18Feedback on this pagePanasonic hotline