Configuring the comparison for Cognex DataMan Scanner
For CognexSensors, the following files are compared for Cognex DataMan (barcode readers only):
- Configuration files (*.cfg)
- Configuration files (*.cdc)
- Plain text files for comparison (*.cfg.txt)
- Plain text files for comparison (*.cdc.txt)
The following actual values are excluded from comparison:
If CAMERA.AUTO-REGULATION returns the value ON, CAMERA.EXPSURE-US, CAMERA.EXPOSURE and CAMERA.GAIN must be ignored. These values exist in every Read Setup.
Starting the successful Read Setup:
If SETUP.START-WITH-LAST-READ returns the value ON, then the reader starts a new trigger cycle. In the case, the value of SETUP.START-WITH-SETUP must be excluded from the comparison.
Match String +++/-:
It is possible to set the data validation via a comparison string with an increasing or decreasing number (e.g. part000, part001, part002). If the first returned value of DVALID.MATCH-STRING-PARAMS returns the value ON, then the value of DVALID.MATCH-STRING changes. In this case, the value of DVALID.MATCH-STRING must be excluded from the comparison.
The following limitations apply to file comparisons:
- The contents of DMB files cannot be directly compared.
- DMB, CDC and CFG files can only be compared in binary format.
- Text files included in a device backup can be compared, but they cannot be generated from projects.
- Disaster recovery is supported for CDC and CFG files. A DMB file includes both CDC and CFG files.
Info
A detailed comparison cannot be performed using the data generated by the editor. To enable comparison, you can create a new version from a backup and then compare the backup with the newly created version.
- Create a project via SetupTool and install it on the device.
- Create a Cognex DataMan component in the UserClient and check it in without a base version.
- Create a job for the empty Cognex DataMan component in the AdminClient and execute it.
- Copy the job result (Files_.CDC_.CFG_.CDC.TXT_.CFG.TXT) to the working directory and check it in as a new version. You can use this version to perform comparison with the subsequent backups.
To make changes to the project files, repeat steps 1–4.