# Load a Program Through a PROFINET PLC

Perform the following steps to change the program running on the vision sensor through a PROFINET PLC:

On the vision sensor UI:

1. Enable Inputs and PROFINET on the Communications tab of the Settings menu.

On the PLC:

1. Write the applicable Command ID in the command block to invoke the change.

   The ID is an integer between 0x0-0x14 in hexadecimal, or 0-20 in decimal value.

2. Set the Execute Command bit.

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

1. Clear the Execute Command bit.

Note: For the description of PROFINET modules, see PROFINET Module Reference Table.