CPU Processing time

CPU Processing time

You can make things more efficient if you make sure a BASIC program never waits on WAIT UNTIL.

WAIT UNTIL a=0 AND b=2 AND c=3 will keep the process runing in its slot.

UNTIL a=0 AND b=2 AND c=3 will put the process to sleep while wating and give up the time for another program to use. So other programs will go faster.

Sleep state is caused by WA(time), WAIT IDLE and WAIT LOADED. Any WAIT UNTIL will not put the process to sleep.
    • Related Articles

    • Setting PLC cycle time

      To set the cycle time of the virual PLC in an IEC 61131-3 task, first stop the task and right click the task name in the control panel. Then click on the Execution Mode tab. The fastest cycle time that can be set is 1 msec if the IEC task is run on a ...
    • 'Forward' speed change during move

      FORWARD commands do not need to buffer. Just set FORWARD once and leave it running. You can change SPEED any time on the fly. SPEED set to 0 will stop the axis. A negative SPEED value will make the axis move in reverse. You only need to CANCEL when ...
    • ladder program process

      Why is the IEC process showing "Sleeping" most of the time? ========================================================================== The PLC has a scan cycle. Probably it is set to 10 msecs. The ladder may take only one or two msecs to run and then ...
    • Inquiry about Python Programming

      Do you support Python for visual programming? Answer: If Python supports the Windows ActiveX concept or DLLs then the TrioPC Motion ActiveX / DLL can be used. No one at Trio has used Python.
    • Inconsistent speed

      The max speed of the axis might be acceleration limited. For example: SPEED = 800 ACCEL = 1200 DECEL = 1200 Say the vector length = 600 - 500 = 100. ie the MOVE length is 100. From the standard equation of motion: v^2 = u^2 + 2as u is 0 v = SQR(2 * ...