检查脉冲输出是否已停止
如果通过PulseControl_DeceleratedStop或PulseControl_PulseOutputStop等已停止脉冲输出,此指令返回TRUE。使用PulseControl_PulseOutputContinue继续脉冲输出。
输入
脉冲输出通道:
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
输出
如果脉冲输出已停止,则Result为TRUE
所有用于编程此函数的输入和输出变量已在POU头中声明。 所有编程语言使用相同的POU头。
VAR
iChannel: INT:=0;
bPulseOutputStopped: BOOL:=FALSE;
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_IsPulseOutputStopped!,,10,1,25,4,,?DiChannel?C);
B(B_VARIN,,iChannel,8,2,10,4,);
B(B_VAROUT,,bPulseOutputStopped,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
bPulseOutputStopped := PulseInfo_IsPulseOutputStopped(iChannel := iChannel);