TwinCAT system does not start

If the TwinCAT system cannot be started, the following message frequently appears. On the basis of the error code with the red border, instructions for rectifying the problem can be given. Further below you will find information on the usual error codes with TwinCAT Vision applications.

TwinCAT system does not start 1:

Invalid Object ID

Error message

ADS ERROR: invalid object id

Solution 1

No task linked

  1. Check whether the corresponding tasks have been created for each Vision device used and add missing tasks.
    • Check whether a task for image acquisition has been created for each File Source Control (default cycle time 10 ms).
    • Check whether each GigE Vision camera is associated with a task for Image Acquisition (default cycle time 1 ms) and, if there is an Ads Communicator, this is also associated with a task (default cycle time 10 ms).
  2. The tasks must be assigned to the corresponding TcCom modules of the Vision devices. Check the assignment and correct it if necessary.
    • Check whether the Image Provider Task of the File Source is linked to the Image Provider of the File Source Control.
    • Check whether the Image Acquisition Task of the camera is linked to the Image Acquisition and Image Acquisition Simulation of the camera.
    • Link the Ads Communicator Task with the Ads Communicator of the camera.
    • Do not assign a task to the Image Provider of the camera.

Solution 2

Network adapter invalid

The network adapter was not adapted, e.g. following a system change. Adapt the network adapter to the current target system.

In the respective network adapter, open the Adapter tab and select a new compatible adapter with Search…

Solution 3

Network adapter deleted

The network adapter was deleted, for example, on the assumption that it is not required for the simulation of the camera. However, each camera object always requires a network adapter; if necessary it can be deactivated but not deleted.

Create a new network adapter with an IpStack and link the IpStack on the Interface Pointer tab of the acquisition object of the camera.

Further information on the linking of Vision TcCOM objects can be found in the corresponding chapters for the camera and the File Source.

General ADS Error

Error message

ADS ERROR: General ADS Error

Solution 1

More cameras than configured

The default setting of the network adapter allows up to 2 cameras to be operated simultaneously. If you wish to operate more cameras on the same adapter, increase the Init parameters ipMaxReceiver and UdpMaxReceiver to twice the number of connected cameras (see Configuration of the network adapter).