Hi everyone, I have a question about taskCreateSync, there is the start() program where the synchronous task is declared, within this synchronous function there is the following code, but there is no modification in the worked string. The general idea would be to make an interruption, but from what I was studying there is only a way to do this through a synchronous task, which in this case is not working either, from my point of view, the task is run only once, which would be the role from a normal task.
pls help me
start()
begin
userPage("pgHMI")
_sCycleStatus="Initializing..."
taskCreateSync "myInterruption",1,bIsLate,syncTask()
//call configdat()
while true
D01=false
_sCycleStatus="Move Pick"
movej(pPick1,tTool,mNomSpeed)
waitEndMove()
_sCycleStatus="Move Place"
movej(pPlace1,tTool,mNomSpeed)
waitEndMove()
D01=true
endWhile
###############
syncTask()
begin
if D01==true
//stopMove()
sString="robot off"
else
sString="robot on"
endIf
end
end