Maintainer: JT | Last updated: 2026-03-09
| Field | Length | Type | Description |
|---|---|---|---|
| Magic | 8 bytes | string | "FIXFIXFI" |
| ACK | 2 bytes | unsigned short | 1, 2, 3, 4 … |
| Command | 2 bytes | unsigned short | |
| Parameter Length | 4 bytes | int | |
| Parameter | unlimited |
| ACK | Description |
|---|---|
| 6000 | FIX counting value changed, sent back to the Client |
| 5001 | FIX returns the file name after saving a teach file |
| Command | Description | Parameter Format | Return | Notes |
|---|---|---|---|---|
| 104 | Load image and count | Image path[; 4ReelsMode] | Single reel: Image Name, Count Number, Red Points Number Multiple reels: Image Name, Count Number, Red Points Number, Count Number, Red Points Number, Count Number, Red Points Number, Count Number, Red Points Number |
Result image saved as *-results.pngYou may pass the 4-reel mode explicitly, or let FIX auto-detect 4-reel mode in its settings |
| 1002 | Load image | Image path | None | |
| 6000 | After the user changes the FIX count on the UI, it is sent back to the Client | Image Name, Count Number, Red Points Number | Currently only applies to single reel? To be confirmed |
| Command | Description | Parameter Format | Return | Notes |
|---|---|---|---|---|
| 101 | Load image and run teach file | Image path;Teach file name | Error code | |
| 120 | Switch teach file group | Group name | List of teach files in this group | If the group does not exist, create it If it exists, show only the teach files of the current group |
| 121 | Delete teach file group | Group name | Error code | Deletes the group and all teach files within it |
| 1100 | Create teach file | Teach file name → save current image to the currently selected group Teach file name;Group name → save current image to the group Teach file name;Group name;Image path → save the specified image to the group Teach file name;Group name;Image path;Calibration info → save the specified image to the group |
Error code | |
| 1102 | Edit teach file | Teach file name | Error code | |
| 1103 | Delete teach file | Teach file name | Error code | Teach file name must be globally unique |
| 1104 | Get teach file list | None → get the full teach file list Group name → get the teach file list within the group |
Teach file list | Separated by semicolons |
| 1105 | Get the name of the teach file being edited | None | Teach file name, or empty | |
| 1014 | Load image with calibration info | Path;Float | None | If the float is 1.533, it means 1 pixel = 1.533 mm |
| 1015 | Set the calibration info of the current image | Float | None | If the float is 1.533, it means 1 pixel = 1.533 mm Calibration info is passed in millimeters; the UI can display it in various formats |
| 5001 | Set whether to return the teach file name each time after saving | 0: default, do not return 1: return |
None | Convenient for auto-matching positions and corresponding teach files during CNC teaching Needs to be enabled only once; saved in the registry KEY=sd_ReturnUDPCMD5001AfterSaving |
| Command | Description | Parameter Format | Return | Notes |
|---|---|---|---|---|
| 1006 | Window always on top | None | None | |
| 1007 | Window not on top | None | None | |
| 1200 | Show main window | None | None | |
| 1201 | Hide main window | None | None | |
| 1202 | Close FIX | None | None | |
| 1204 | Show parameter panel | None | None | |
| 1205 | Hide parameter panel | None | None | |
| 1211 | Get main window handle | None | 8 bytes | |
| 1212 | Get parameter panel handle | None | 8 bytes | |
| 1213 | Set main window parent | Handle, x, y, w, h | None | Given a handle and view size, FIX sets itself as its child window and sets the size. |
| 1214 | Set parameter panel parent | Handle, x, y, w, h | None | Given a handle and view size, FIX sets itself as its child window and sets the size. |
| 1301 | Set FIX visibility (when not embedded) | 0: hide 1: visible 2: query |
0: hide 1: visible |
|
| 1302 | Set UDP response | 0: default 1: respond to all commands 2: query |
0: default 1: respond to all commands |
|
| 1303 | Set close-button behavior | 0: perform close 1: hide FIX 2: query |
0: perform close 1: hide FIX |
|
| 2302 | Set user mode | ["Operator", "Engineer"] |
Error code | Operator: operator mode (cannot modify templates) Engineer: supports all operations |
| 2303 | Show/hide all software markers | ["Hide", "Show"] |
Error code | Software version info Counting A-OK markers Tray icon Image info at the top of the software (mouse position, pixels, zoom, etc.) |
| Error Code | Description |
|---|---|
| 0 | Success |
| 1 | Inspection result: GOOD |
| 2 | Inspection result: NG |
| 4 | Unknown error occurred; see the log file for details |
| 8 | Parameter format error |
| 16 | Image file does not exist |
| 32 | Teach file does not exist |
| 64 | Teach file execution failed |
| 128 | Screenshot exception |
| 256 | Image alignment error |
| 512 | Target object match error, or does not exist |
* Error codes can be combined