Disables counting on high-speed counter channel
This instruction disables counting on the high-speed counter channel specified by iChannel. Bit 1 of the Writing the high-speed counter control code is set to TRUE.
Input
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
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
bDisableCounting: BOOL:=FALSE;
iChannel: INT:=0;
END_VAR
When the variable bDisableCounting changes from FALSE to TRUE, counting on the channel specified by iChannel is disabled.
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_F,HscControl_CountingDisable!,,12,0,26,4,,?DEN?DiChannel?AENO);
B(B_VARIN,,iChannel,10,2,12,4,);
B(B_CONTACT,,bDisableCounting,5,1,7,3,R);
L(7,2,12,2);
L(1,2,5,2);
L(1,0,1,4);
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
if DF(bDisableCounting) then
HscControl_CountingDisable(iChannel := iChannel);
end_if;