PulseControl_ElapsedValueContinue

Continues pulse counting after reset

This instruction resumes pulse counting on the channel specified by PulseControl_ElapsedValueReset after a reset of the elapsed value using PulseControl_ElapsedValueReset. Bit 0 of the pulse output control code is set to FALSE.

Input

iChannel (INT)

Pulse output channel:

FPS: 0, 2

FP-X/XH R: 0, 1

FP-X/XH 16K C14T: 0, 1, 2

FP-X/XH 32K C30T: 0, 1, 2, 3

FP-X/XH 32K C60T: 0, 1, 2, 3, 4, 5

FP0R: 0, 1, 2, 3

FP0: 0, 1

FP-e: 0, 1

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
		bElapsedValueContinue: BOOL:=FALSE;
		iChannel: INT:=0;
END_VAR

POU body

LD body

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
        ACTIVE_NETWORK := 0 ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
B(B_F,PulseControl_ElapsedValueContinue!,,12,0,29,4,,?DEN?DiChannel?AENO);
B(B_VARIN,,iChannel,10,2,12,4,);
B(B_CONTACT,,bElapsedValueContinue,5,1,7,3,);
L(1,2,5,2);
L(7,2,12,2);
L(1,0,1,5);
        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
    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 (bElapsedValueContinue) then
    PulseControl_ElapsedValueContinue(iChannel := iChannel);
end_if;

Modified on: 2019-01-25Feedback on this pagePanasonic hotline