1. A method for enabling sequential, non-blocking processing of statements in concurrent tasks in a control device having an operating system capable of multitasking, comprising: associating with a programmable logic controller (PLC) at least one statement corresponding to an operation that generates an output image for a cyclical update of an input image that is received as input to the PLC from a motion control device and writes the output image for operation of the motion control device to at least one output associated with the PLC with at least one operating system call; executing with the PLC the at least one operating system call associated with the at least one statement to write the output image to the at least one output; executing programmed instructions corresponding to the operating system with the programmable logic controller to interrupt execution of a first task immediately after execution of the operation associated with the at least one statement to write the output image to the at least one output; and executing programmed instructions with the programmable logic controller corresponding to a second task in response to interruption of execution of the first task.