发表于:2006-09-13 15:57:00
楼主
有三个问题,问题比较多,麻烦指教一二。谢了先!
一、急停和暂停按钮的程序中,暂停可以,急停行不通是为什么?
if(PeIO.In.EmegencyStop)/*急停按钮,与操作方式无关*/
{
ClearOutput();
ClearStep();
ClearTime();
memset(OrderAction,0,sizeof(OrderAction));
memset(OrderActing,0,sizeof(OrderActing));
PeIO.Out.MainMotor = 0;/*主轴电机*/
PeIO.Out.GasInBottom = 1;/*下进风阀置1*/
PeIO.Out.SwitchFeedDoor = 0;/*料门开关*/
AlarmBit[1] = 1;
PeIO.Out.AlarmLamp = 1;/*报警灯*/
}
else if(!PeIO.In.EmegencyStop)
{
AlarmBit[1] = 0;/*报警条件不满足,报警位自动消除*/
}
if(EDGEPOS(PeIO.In.PauseStop,PosPause))/*暂停*/
{
memcpy(&PEOutputBK,&PeIO.Out,sizeof(PeIO.Out));
ClearOutput();
/*PeIO.Out.MainMotor = 1;*//*主轴电机*/
PeIO.Out.GasInBottom = 1;/*下进风阀置1*/
PeIO.Out.SwitchFeedDoor = 1;/*料门开关置1*/
AlarmBit[0] = 1;
PeIO.Out.AlarmLamp = 1;/*报警灯*/
}
if(EDGENEG(PeIO.In.PauseStop,NegPause))
{
AlarmBit[0] = 0;
memcpy(&PeIO.Out,&PEOutputBK,sizeof(PeIO.Out));
}
二、其中的 EDGEPOS(PeIO.In.PauseStop,PosPause)和 EDGENEG(PeIO.In.PauseStop,NegPause)怎么理解? PeIO.In.PauseStop、NegPause和PosPause都是BOOL类型
三、PCC程序的在线调试的步骤和设备是?