Load a Job Through a PROFINET PLC

Perform the following steps to change the job running on the vision system through a PROFINET PLC.

  1. If you are loading a new job, then first place the vision system to a Paused state by setting the Set Paused bit high.

  2. Write the appropriate job command to invoke the change. The available commands are listed below:

    Name Command ID (Hex) Command ID (Dec)
    Load Job by Name 0x4000 16384
    Load Job by ID 0x0-0x3E7 0-999
  3. If you perform the Load Job by Name method, then write the job name (without the *.jobx extension) into the User Data command block.

    Note: The job name has to be null terminated (that is, a 0 has to be added in the byte immediately following the job name).
  4. Set the Execute Command bit.

  5. Wait for the Command Completed or Command Failed bit of the System Output module to be set.

  6. Once either the Command Completed or Command Failed bit is detected, clear the Execute Command bit. Also, if you previously set the vision system to a Paused state, then clear the Set Paused bit as well to set the vision system Online.