The code of Emergency switch is following, when you press the switch the machine stop.
In ControlFunctions :
DIFU and DIFD is same variable : ipb_emergency_stop_sw, BOOL data type
on Set/input rung of a KEEP instruction(variable :gpb_emergency_stop,BOOL)
---------DIFD------------------------gpb_emergency_stop
on Reset rung
---------DIFU------------------------gpb_emergency_stop
In Process :
DIFD now is gpb_emergency_stop
on Set/input rung of Keep instruction(variable: sta_power_on,BOOL)
---------DIFD------------------------sta_power_on
can anyone explain DIFU and DIFD in here, anything to do with scan cycle ? why DIFD is placed on Set rung of sta_power_on Keep instruction not on Reset rung ?
In ControlFunctions :
DIFU and DIFD is same variable : ipb_emergency_stop_sw, BOOL data type
on Set/input rung of a KEEP instruction(variable :gpb_emergency_stop,BOOL)
---------DIFD------------------------gpb_emergency_stop
on Reset rung
---------DIFU------------------------gpb_emergency_stop
In Process :
DIFD now is gpb_emergency_stop
on Set/input rung of Keep instruction(variable: sta_power_on,BOOL)
---------DIFD------------------------sta_power_on
can anyone explain DIFU and DIFD in here, anything to do with scan cycle ? why DIFD is placed on Set rung of sta_power_on Keep instruction not on Reset rung ?