Creating a File Source Control

The creation of a File Source object is described in the following steps. This can be used to load stored images into the PLC. To do this, the target system must be in Config Mode. Click on the Creating a File Source Control 1: symbol in the TwinCAT XAE Base toolbar or on Restart TwinCAT (Config Mode) in the Visual Studio menu under TWINCAT.

Alternatively, you can Creating a GigE Vision camera.

Proceed as follows to create the File Source object:

1. Click an application under the VISION node you created earlier.
2. Right-click and select Add new item...
Creating a File Source Control 2:
3. Select the device type File Source, adjust the name if necessary, click OK.
Creating a File Source Control 3:
The File Source Control is now created below the application and is ready to use.
Creating a File Source Control 4:
4. Double-click the File Source Object underneath the application node in the project tree. In the window that opens, select the File Source Control tab and implement the relevant settings.
Creating a File Source Control 5:
5. Click Read From Target. The File Source Control in the project is compared with any images stored on the selected target system.
6. Add images to the File Source Control via Add Files..., Add Directory... or by drag and drop. If necessary, you can download sample images with the project download: First steps
7. If necessary, adjust the cycle time in which the File Source Object sends images to the PLC.
The File Source Object can be used like this:
Creating a File Source Control 6:

Next step

Creating a PLC project