(* =====================================================================
   90_config_field.st - CONFIGURATION, field build

   Scan task: 100 ms cyclic, section 4.

   Declaration order inside the resource sets execution order within
   the task: IO_MUX first, then CONTROL.  Section 8.1 requires the mux
   to run before the control logic.

   The pass 2 simulation build replaces this file with 91_config_sim.st,
   which adds PROGRAM SIMULATION after CONTROL.
   ===================================================================== *)

CONFIGURATION Config0

  RESOURCE Res0 ON PLC
    TASK plc_task(INTERVAL := T#100ms, PRIORITY := 0);

    PROGRAM inst_mux WITH plc_task : IO_MUX;
    PROGRAM inst_ctl WITH plc_task : CONTROL;
  END_RESOURCE

END_CONFIGURATION
