Are programs in the same task scanned in parallel or sequentially? I'm used to stuffing everything into a single program and looking to better organize.
Thank you.
Absolutely nothing in the Logix5000 stable (ControlLogix, GuardLogix, CompactLogix, FlexLogix, DriveLogix, or SoftLogix) runs or scans programs "in parallel".
All of them use a microprocessor that is single-threaded, and it can only execute each macro code for each instruction sequentially.
In the Cyclic, or Continuous Task, therefore, you define the order of operation of each program with the Task's Program Schedule, and the task executes the programs sequentially.
When another task (Periodic or Event) is triggered, processing of the Main Task is "interrupted" while the controller executes the other tasks.
As hinted by Donnchadh, the processor ONLY executes the routine defined as the Main Routine for each program - other routines are "called", as required by the programmer, by using JSR and FOR instructions, for example.