Hello,
I have a job that uses a loop around a CASE statement. When this runs on a DX100, it is very erratic and indeterministic without the .05 sec timer. Sometimes it seems to hang for random time periods.
When I add the timer it runs reasonably well, but still seems like it should be faster. Is this happening because it is looping so fast that it can't service the CASE statement and the setting of variables?
Is there a better way to address this besides the timer? I have seen plenty of looping examples on this forum that don't include a timer. I would assume they work fine.
NOP
SET I003 0
*LOOP
TIMER T=0.05
SWITCH I003 CASE 1
MOVL P001 V=800.0
CALL JOB:ORIENT
SET I003 2
CASE 4
CNVRT PX0025 PX0024 UF#(30) TL#(23)
SET I003 5
CASE 6
SET I003 0
JUMP *END
ENDSWITCH
JUMP *LOOP
*END
END
Thanks for helping.