Hello everybody,
Please i need your help. in my program i am using interruptions activated by cycflag.
Here is the declaration :
GLOBAL INTERRUPT DECL 9 WHEN $cycflag[9]==FALSE DO Stop_Robot_Move_Vaccum1 ( )
INTERRUPT OFF 9
GLOBAL INTERRUPT DECL 10 WHEN $cycflag[10]==FALSE DO Stop_Robot_Move_Vaccum2 ( )
INTERRUPT OFF 10
Here is the moment when i put them to ON :
VAC1ON()
VAC2ON()
;MASPI3()
INTERRUPT ON 9
INTERRUPT ON 10
WAIT FOR VacuumSensor1 == TRUE
WAIT FOR VacuumSensor2 == TRUE
And here is the moment when i put them to OFF :
;FOLD VAKUUM AUS
;VACUUM OFF
INTERRUPT OFF 9
INTERRUPT OFF 10
;VAC1OFF()
; VAC2OFF()
ENDFOLD VAKUUM AUS
GLOBAL DEF Stop_Robot_Move_Vaccum1()
INTERRUPT OFF 9
M_FLSTOP()
message_err=111
message_er()
HALT
END
GLOBAL DEF Stop_Robot_Move_Vaccum2()
INTERRUPT OFF 10
M_FLSTOP()
message_err=112
message_er( )
HALT
END
2 days ago, it was working normally, Now the interruptions doesnt activate the subprograms. i don't have any idea what could be the reason, i checked the signals and everything is okay.