FP_OPERATION_RECORDING_CLEAR

Clear operation record

This instruction clears the operation record of the configuration number specified by s_nNumber.

Parameters

Input

s_nNumber (ANY16)

Specifies the configuration number in the range from 0–7

Remarks

Instead of using this instruction, you can also send the command from a web page created with Control Web Creator. Refer to the Web Server Function Manual for details.

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if an unset configuration number has been specified.

  • if the specified configuration number is outside the permissible range.

  • if the area specified using the index modifier exceeds the limit.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if an unset configuration number has been specified.

  • if the specified configuration number is outside the permissible range.

  • if the area specified using the index modifier exceeds the limit.

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
		bStart: BOOL:=FALSE;
		bStop: BOOL:=FALSE;
		bClear: BOOL:=FALSE;
		@'': @'';
	END_VAR

LD body

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
B(B_CONTACT,,bStart,5,1,7,3,R);
B(B_F,FP_OPERATION_RECORDING_START!,,13,0,30,4,,?DEN?Ds_nNumber?AENO);
B(B_VARIN,,0,11,2,13,4,);
L(1,0,1,5);
L(1,2,5,2);
L(7,2,13,2);
        END_NETWORK_BODY
    END_NET_WORK
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
B(B_CONTACT,,bStop,5,1,7,3,R);
B(B_F,FP_OPERATION_RECORDING_STOP!,,13,0,30,4,,?DEN?Ds_nNumber?AENO);
B(B_VARIN,,0,11,2,13,4,);
L(1,0,1,5);
L(1,2,5,2);
L(7,2,13,2);
        END_NETWORK_BODY
    END_NET_WORK
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
B(B_CONTACT,,bClear,5,1,7,3,R);
B(B_F,FP_OPERATION_RECORDING_CLEAR!,,13,0,30,4,,?DEN?Ds_nNumber?AENO);
B(B_VARIN,,0,11,2,13,4,);
L(1,0,1,5);
L(1,2,5,2);
L(7,2,13,2);
        END_NETWORK_BODY
    END_NET_WORK
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
L(1,0,1,5);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY

ST body

If DF(bClear) Then
	FP_OPERATION_RECORDING_CLEAR(s_nNumber := 0);
End_if;

If DF(bStart) Then
	FP_OPERATION_RECORDING_START(s_nNumber := 0);
End_if;


If DF(bStop) Then
	FP_OPERATION_RECORDING_STOP_(s_nNumber := 0);
End_if;

Modified on: 2023-03-13Feedback on this pagePanasonic hotline