, ET=> ); IF tHeatbeat.Q THEN GVL.stPLCtoPMC.bHeartBeatMonitor :=NOT GVL.stPLCtoPMC.bHeartBeatMonitor; END_IF // PLC监控PMC心跳 IF GVL.stPMCtoPLC.bHeartBeatMonitor THEN tON(IN:=GVL.stPMCtoPLC.bHeartBeatMonitor , PT:=T#2S , Q=> , ET=> ); tOFF(IN:=FALSE , PT:=T#2S , Q=> , ET=> ); IF tON.Q THEN bAdsCommErr :=TRUE; ELSE bAdsCommErr :=FALSE; END_IF ELSE tOFF(IN:=NOT GVL.stPMCtoPLC.bHeartBeatMonitor , PT:=T#2S , Q=> , ET=> ); tON(IN:=FALSE , PT:=T#2S , Q=> , ET=> ); IF tOFF.Q THEN bAdsCommErr :=TRUE; ELSE bAdsCommErr :=FALSE; END_IF END_IF //CE远程桌面开启 NT_StartProcess_Test( NETID:= , PATHSTR:='\windows\CerDisp.exe' , DIRNAME:='\windows' , COMNDLINE:= , START:=bEnableCerDisp , TMOUT:= , BUSY=> , ERR=> , ERRID=> );]]>