# 1 "../autoOff.st" # 1 "" # 1 "" # 1 "../autoOff.st" # 10 "../autoOff.st" program autoOff option +d; option -c; option +r; int dmov; assign dmov to "{MOTOR_DEV}:MOTR.DMOV"; monitor dmov; int cnen; assign cnen to "{MOTOR_DEV}:MOTR.CNEN"; monitor cnen; ss disable { state s_Stby { when(dmov == 0) { } state s_Movn when(delay(1.0)){ } state s_Brake } state s_Movn { when(dmov == 1) { } state s_Stby } state s_Brake{ entry{ cnen = 0; pvPut(cnen); } when(TRUE){ }state s_Stby } }