*                 Manufacturing shop model 5
*                 G. Gordon Figure 11-1/9-10

       GENERATE   5                            ; Create parts
       ADVANCE    2                            ; Move to the first inspector
       TRANSFER   BOTH,,CONV1                  ; Check if first inspector is busy
       SEIZE      INSP1                        ; The first inspector becomes busy
       ADVANCE    12,9                         ; Inspect
       RELEASE    INSP1                        ; Free inspector 1
 TAB   TABULATE   TRANSIT                      ; Tabulate parts' transit time
 ACC   TERMINATE  1                            ; Accepted parts
 CONV1 ADVANCE    2                            ; Move to 2nd inspector
 C2    TRANSFER   BOTH,,CONV2                  ; Check if 2nd inspector is busy
       SEIZE      INSP2                        ; The 2nd inspector becomes busy
       ADVANCE    12,9                         ; Inspect
       RELEASE    INSP2                        ; Free inspector 2
       TRANSFER   ,TAB                         ; To tabulate
 CONV2 ADVANCE    2                            ; Move to 3rd inspector
 C3    TRANSFER   BOTH,,TERM                   ; Check if 3rd inspector is busy
       SEIZE      INSP3                        ; The third inspector becomes busy
       ADVANCE    12,9                         ; Inspect
       RELEASE    INSP3                        ; Free inspector 3
       TRANSFER   ,TAB                         ; To tabulate
 TERM  TERMINATE                               ; Remain uninspected

 TRANSIT TABLE      M1,5,5,10

       START      10,NP
       RESET      
       START      1000