Reads corrected value of final speed
This instruction returns the value of the corrected final speed on the channel specified by iChannel.
Input
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
Output
Result stores the value of the corrected final speed
Tool instructions: Introduction to pulse output instructions
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
iChannel: INT:=0;
iCorrectedFinalSpeed: INT:=0;
END_VAR
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,PulseInfo_ReadCorrectedFinalSpeed!,,8,1,25,4,,?DiChannel?C);
B(B_VARIN,,iChannel,6,2,8,4,);
B(B_VAROUT,,iCorrectedFinalSpeed,25,2,27,4,);
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
iCorrectedFinalSpeed:= PulseInfo_ReadCorrectedFinalSpeed(iChannel := iChannel);