Compatible Devices
Object recognition sensor O2D22x. [g3-o2d22x | Word]
Verified Device
O2D224 [g3-o2d22x | Word]
Overview
This note describes two drivers: a Camera Data Driver and a Camera Image Driver for the Ifm Efector Dualis Object Recognition Sensor. Only one driver may be used per camera due to connection limitations.
Communication success depends on consistent configuration between the controller and the camera. Reading the Error Code is useful for diagnosing issues. [g3-o2d22x | Word]
Device Configuration
Camera Image Driver – Process Interface
- Protocol Version must match the device configuration
- Start, Stop, and Separator strings must match device settings
Image Access Methods:
- Result Message (unsolicited output)
- Last Good Image (Command I)
- Last Bad Image (Command F)
- Last Result (Command R)
- Release Trigger (Command T) [g3-o2d22x | Word]
Camera Data Driver – Process Interface
- Protocol Version must match device
- Start, Stop, and Separator strings should align with device settings [g3-o2d22x | Word]
Accessing Data
Camera Image Driver (DevCtrl)
DevCtrl syntax:
DevCtrl(Device, Function, Value)
| Function | Value | Description |
|---|---|---|
| 1 | — | Trigger Pulse Request |
| 2 | — | Trigger Status (2=Pending, 1=Success, 0=Fail) |
| 3 | result | PASS/FAIL Result |
| match | Match Quality | |
| 4 | — | Error Code |
| 5 | total | Total Evaluations |
| good | Good Evaluations | |
| bad | Bad Evaluations | |
| 6 | enable | Enable Statistics |
| disable | Disable Statistics |
Notes:
- Function 1 triggers image capture and evaluation
- Function 4 retrieves error code if a request fails
- Function 5 retrieves statistics when enabled
- Function 6 enables/disables statistics collection [g3-o2d22x | Word]
Camera Data Driver
| Name | Description | Access |
|---|---|---|
| Protocol | Protocol Version | Read/Write |
| Error | Error Code | Read Only |
| Trigger | Trigger Pulse | Write Only |
| Stats | Statistics | Read Only |
| Result | Evaluation Result | Read Only |
- Protocol: Set communication version
- Error: Retrieve device error codes
- Trigger: Execute image capture
- Stats: Get total/good/bad counts
- Result: Get evaluation result and match quality [g3-o2d22x | Word]
Cable Information
Ethernet cable as supplied with device. [g3-o2d22x | Word]
© HMS Networks AB 2025