HscControl_ResetInputDisable

Disables reset input

This instruction disables the reset input of the high-speed counter channel specified by iChannel. Bit 2 of the Writing the high-speed counter control code is set to TRUE.

Parameters

Input

iChannel (INT)

High-speed counter channel:

FPS: 0, 2

FP-X R: 0, 1

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

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

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

POU body

When the variable bResetInputDisable changes from FALSE to TRUE, the reset input of the channel specified by iChannel is disabled.

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,HscControl_ResetInputDisable!,,12,1,26,5,,?DEN?DiChannel?AENO);
B(B_VARIN,,iChannel,10,3,12,5,);
B(B_CONTACT,,bResetInputDisable,5,2,7,4,R);
L(1,3,5,3);
L(7,3,12,3);
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 DF(bResetInputDisable) then
    HscControl_ResetInputDisable(iChannel := iChannel);
end_if;

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