Auto Schedule Run
Previous Topic  Next Topic 

The automatic schedule run command is the same as selecting the Manufacturing | Scheduler manually from the DMS menu.  In order to run a schedule automatically, the user name provided for the login must have access to both the “Enable Auto User Login” and the “Scheduler”.  The parameter for the automatic schedule run is:


       AutoScheduleRun=command file        


For example, to login to the database DMSData with a user name of John Doe to run a schedule using the command file C:\Program Files\Dynafact\SchdCmd.TXT the following would be used:


"C:\Dynafact\Production\DMS\DMSEnt.exe" "UserIniFolder=C:\Dynafact\Production\DMS\User\" "AutoUserName=John Doe" "DatabaseName=DMSData" "AutoScheduleRun=C:\Program Files\Dynafact\SchdCmd.TXT"        


The “command file” is an existing text file that holds the schedule command information required by the DMS scheduler.  Unlike the parameters passed for an automatic schedule run, the command file parameters should never to be surrounded in quotation marks even if the parameter has a space in it.  The following commands are given in the schedule command file: 


  1. Command= (Finite, Infinite, TryProfile, CRP, or CRPTryProfile)
  2. StartDate= (date in the format YYYYMMDD or Today, Today+1, Today+2, etc.)
  3. StartShift=1, 2, or 3
  4. HoursIntoShift= (optional, default is 0)
  5. ImposeTypeOfWork=(A valid type of work to impose; optional, default is blank)
  6. ProfilePriorityForLateJobs= (priority number required for TryProfile and CRPTryPorfile commands; optional, default is blank)
  7. FirstTryProfile=(First profile to try for TryProfile and CRPTryPorfile commands; optional, default is blank)
  8. SecondTryProfile=(Second profile to try for TryProfile and CRPTryPorfile commands; optional, default is blank)
  9. ApplyMaterialConstraints= YES/NO (optional, the default is the schedule options settings for applying material constraints)


The following is an example of a schedule command file that will run a finite schedule using the current date plus one day, starting on shift 1:


Command=Finite

StartDate=Today+1

StartShift=1


The following example is a schedule command file that will run a try profile schedule as of the current day, shift 1, where the first profile to try will be “Overtime” and the second profile to try will be “Overtime Weekends”.  All jobs that are late and have a priority less then or equal to 10 will use the try profile logic:


Command=TryProfile

StartDate=Today

StartShift=1

ProfilePriorityForLateJobs=10

FirstTryProfile=Overtime

SecondTryProfile=Overtime Weekends


Also see: Automatic Execution Commands