Creating a GigE Vision camera

The creation of a GigE Vision Camera object is described in the following steps. This requires a GigE Vision camera to be connected to the PC and the TwinCAT RT Ethernet adapter to be installed for the corresponding network port, as described in System configuration.

In addition, the target system must be in Config Mode. Click on the Creating a GigE Vision camera 1: symbol in the TwinCAT XAE Base toolbar or on Restart TwinCAT (Config Mode) in the Visual Studio menu under TWINCAT.

Alternatively, you can create a File Source Control.

To create a camera, proceed as follows:

1. Click an application under the Vision node you created earlier.
2. Right-click and select Add new item...
Creating a GigE Vision camera 2:
3. Select the device type GigE Vision Camera. Customize the camera name and GigE Vision camera options as required. An Ads communicator is required for recording streams; an image provider is the interface to the corresponding PLC function blocks and is therefore usually always required (see camera details). Click OK.
Creating a GigE Vision camera 3:
4. GigE Vision cameras communicate via UDP/IP. A suitable network device with a corresponding IP stack in the IO node is required for the network port used. Create this by clicking New....
Only one network device with one IP stack may be created for each physical port of a network card.

Creating a GigE Vision camera 4:
5. To create a new network device, click NEW... in the Select Network Device dialog.
Creating a GigE Vision camera 5:
6. In the Device Found At dialog, select the network port to which the camera is connected and click OK.
Only network ports for which the TwinCAT RT Ethernet driver is installed are displayed.

Creating a GigE Vision camera 6:
7. The network device is now created in the I/O configuration. Select it in the Select Network Device dialog and click OK. This creates an IP stack for the device.
Creating a GigE Vision camera 7:
8. Select the IP stack and click OK.
Creating a GigE Vision camera 8:
9. If no IPv4 address has been assigned to the network port yet, answer the question whether you want to assign a fixed IP address.
Creating a GigE Vision camera 9:
If Yes, set the IP address in the following dialog.
Creating a GigE Vision camera 10:
The IP address and subnet mask are then saved in the TwinCAT IP configuration of the network adapter (see Network configuration).
10. In the Camera Initialization Assistant click Discover Devices. The selected network port is searched for connected cameras.
Creating a GigE Vision camera 11:
11. All cameras that are found are displayed. Select the camera you require and click OK.
Creating a GigE Vision camera 12:
The camera is now created under the application and can be used.
Creating a GigE Vision camera 13:

Double-clicking the camera node opens a window in which the connection to the camera can be verified. The General tab provides general information about the camera.

Creating a GigE Vision camera 14:

In the Configuration Assistant you can use Start Acquisition to view the live image of the camera and make configuration settings on the camera.

See also: Camera configuration samples

If you want to apply the changed parameters and write them to the camera at every startup, create the Initialization Commands at the end.

Creating a GigE Vision camera 15:

Next step

Creating a PLC project