Troubleshooting

On this page

Read the gateway log first. The module works on the gateway, so the answers are there, not in the Designer. Filter on innorobix.vision. Loggers: innorobix.vision.device (connection, polling, DataChannel), innorobix.vision.protocol (TRACE, every line sent and received; an image is one summary line), innorobix.vision.image (image fetch, archive, routes), innorobix.vision.write (trigger, Online and job commands), innorobix.vision.config, innorobix.vision.lifecycle (module start and stop). A repeated failure is logged once and then summarised. Passwords are never logged.

The tags [Vision]<Camera>/_Status/State, LastError, Notice, LastWriteError, ReconnectCount and ProtocolErrors show the state of one camera. The table in the Quick Start chapter, section 6, lists the messages.

The camera does not connect

  • refused the connection ... Telnet Server Enabled: Telnet is off in the camera (the default on 2800 and 3800 series) or the port is wrong. Switch it on in the Industrial Ethernet utility.
  • sent no login prompt: the port is not the camera’s Native Mode port.
  • rejected the user name or password: wrong login, or the camera’s user list does not allow it. Names and passwords are at most 15 characters. Do not use admin.
  • Check from the gateway machine, not your PC.
  • A camera that accepts only one Native Mode session may refuse the module while In-Sight Explorer or another client is connected. Disconnect the other client and wait for the reconnect.

Connected, but result tags are Bad

  • Status -1 in the log: a cell or symbolic tag in the result map does not exist in the job. That one tag is Bad; the others are read.
  • Status -6: the camera user lacks the right the request needs.
  • A value that does not fit its type (INT given a decimal) makes that tag Bad and keeps its last value.
  • In-Sight 2000 series: no GV. Turn on Use DataChannel; the result tags stay Bad until it works.
  • With the DataChannel on, cells that are not in the camera’s DataChannel watch list are still read with GV; _Status/Notice names them.
  • _Status/Notice begins Not supported: when the camera lacks something the module needs.

The DataChannel does not connect, or drops

_Status/Notice says DataChannel is not connected (...) and results are read by polling with GV meanwhile. Check the port (default 50000), that the camera has a DataChannel (not in newer 2800/3800 firmware: the module does not try it there), and that the camera’s six DataChannel connections are not used up. The module retries after 1 s, then 2, 4 … up to 30 s. DataChannel was out of date means the stream stopped without closing (often a firewall or switch); the connection is reopened.

No image, or old images

  • Images: the camera user has no Full Access: RB needs a user with Full Access. Results work without it.
  • Images: the camera's image could not be used: the BMP was broken, over 16 megapixels or larger than Image memory. Raise the memory or lower the camera’s image size.
  • After a failed image the module waits 60 s before it asks again, so a new image may lag. Results are not held back.
  • Slow network or large images: the image is read as hex text over one session and delays the next poll. Raise the poll interval, or use interval mode with a long interval.
  • Loading /data/vision/image/... in a browser gives 401 or 403: sign in to the gateway web UI first with a user that has read permission. A Perspective session is not enough; in Perspective use the component Innorobix Vision Image.
  • The component shows Authentication required.: the Perspective session is not signed in (a project that does not require sign-in opens anonymous sessions). Sign in, or set the project’s authentication so that users sign in. The gateway logs a WARN naming the Perspective component; while a screen of such a project stays open, the WARN comes again in summaries (every 5 minutes), because the component asks every 2 seconds.
  • The Cognex Vision page or the image routes give 404 and the gateway log says Unable to mount routes for module with this module’s name and Route group "vision" already registered: Ignition’s own Vision module is installed and uses the same route name. Use this module on a gateway without it for now.
  • The component shows Camera not found.: the camera property names no running camera (check the name, that the camera is enabled and licensed). No image yet.: the camera has not delivered an image (see the notice above). The image is too large to show here: the image is over 4 MiB; use JPEG and a smaller image.
  • The component is missing from the Designer palette: the component needs Perspective. Check that Perspective is installed and running, then restart Cognex Vision. The gateway log of innorobix.vision.lifecycle says Perspective component ... registered when it worked; an INFO line saying the Perspective module is not installed or not running when the gateway has no running Perspective (cameras and tags still run); and an ERROR when Perspective is running but the component could not be registered.
  • 404: the camera name is unknown, or the camera is deleted, disabled or not licensed, or the history position is beyond the images kept.
  • Failed images are not archived: the result map needs a Pass entry (BOOL), the archive folder must be writable by the gateway’s service account, and _Status/Notice says Archive: the failed image could not be saved when it is not.

A command is refused or does nothing

  • The Cmd tags exist only while the switches are on: Cmd/Trigger with Allow writes, Cmd/Online with Allow writes and Allow online control. A tag left over from before a switch was turned off may remain; writes to it are refused.
  • Write true (or 1) to Cmd/Trigger; false does nothing.
  • A result tag cannot be written: the entry in the result map needs :W after its type, Allow writes must be on, and the camera must be connected. The tag is writable once the camera has connected after the setting was saved. A write that the module refuses (a value that does not fit the type) is in the gateway log at WARN with the reason; a write the camera refuses is in _Status/LastWriteError with the camera’s status (-1 no such cell or tag or an invalid value, -2 no matching edit box in that cell or the value is out of range, -6 the camera user lacks Full Access).
  • Status -2 in _Status/LastWriteError: the camera could not run it (Offline, or the trigger is not External, Manual or Network). -5: Online is held by the camera software or an input. -6: no Full Access. A Good tag write only means the write was accepted and queued.
  • No answer in 15 s (the camera timeout, if longer): the connection is reopened and the command is not sent again, because the camera may have done it. Check the camera, then repeat.
  • No tag or script starts a job change. If a job change left a camera Offline, the log says so; set it Online with Cmd/Online.

Not licensed, or only 2 cameras run

See the Compatibility chapter, Licensing.

What to send when you ask for help

Module version, camera model and firmware (_Info tags), the exact innorobix.vision lines, the camera’s _Status tags, and the result map text. Enable TRACE on innorobix.vision.protocol only for a short test; it shows the camera’s replies, which may hold production values. Do not send licence keys or passwords.

Generated from the module's documentation. Questions: contact us.

Get a quoteFree trial