II. Overview of MODSIM III. 

2.1 Diference with traditional languages:
 

2.2 Program Layout:
 
      MAIN MODULE Example;                                    {  Module name } 

      CONST 
        NumberofTrucks = 45; 

      TYPE 
        Workdaytype = (Mon .. Fri); 

      VAR                                                                           { Declaration section } 
        Number    : INTEGER; 
        WorkDay : Workdaytype; 

      PROCEDURE  dispatch(Number) 
      BEGIN 
         .... 
      END PROCEDURE 

      BEGIN 
        OUTPUT( dispatch(NumberofTrucks))           { Main section } 
      END MODULE