# Load a Job Through a PROFINET PLC

Perform the following steps to change the job A job is a user-configured program in In-Sight Spreadsheet consisting of functions and designed for specific applications. You can create and edit jobs using the In-Sight Spreadsheet interface, and load them on a vision system for deployment in a live environment. running on the vision system through a PROFINET PLC A Programmable Logic Controller is a ruggedized computer that you can use for automating processes or even an entire production line..

1. If you are loading a new job, then first place the vision system to the Offline state by setting the Set Offline a 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 Offline state, then clear the Set Offline bit as well to set the vision system Online.