Dataman Application Development; Dmcc Overview; Command Syntax - Cognex DataMan Communications And Programming Manual

Hide thumbs Also See for DataMan:
Table of Contents

Advertisement

DataMan Application Development

DataMan Control Commands (DMCC) are a method of configuring and controlling a DataMan reader from a COM port or
through an Ethernet connection, either directly or programmatically through a custom application.
Note: For a complete list of DMCC commands, click the Windows Start menu and browse to Cognex -> DataMan
Setup Tool v x.x -> Documentation -> Command Reference. Alternatively, you can open the Command Reference
through the Setup Tool Help menu.

DMCC Overview

DataMan Control Commands (DMCC) are a method of configuring and controlling a DataMan reader from a COM port,
either directly or programatically through a custom application. Depending on the DataMan reader you are using, the
COM port connection can be either RS232, USB, or the Telnet protocol in the case of Ethernet capable readers. By
default, Ethernet capable readers are configured to communicate over TCP port number 23, but you can use the
DataMan Setup Tool to assign a different port number as necessary.
Note: Use a third party client such as PuTTY to make changes to the Telnet client provided by Windows to
communicate with the DataMan.

Command Syntax

All DMCC commands are formed of a stream of ASCII printable characters with the following syntax:
command-header command [arguments] footer
For example:
||>trigger on\CR\LF
Command Header Syntax
||checksum:command-id>
All options are colon separated ASCII text. A header without the header-option block will use header defaults.
checksum
0: no checksum (default)
1: last byte before footer is XOR of bytes
command-id
An integer command sequence that can be reported back in acknowledgement.
Header Examples
Example
Description
Default Header
||>
||0:123>
Header indicating no-checksum and ID of 123
Header indicating checksum after command and data .
||1>
Command
The command is an ASCII typable string possibly followed by data. All command names and public parameters data are
case insensitive. Only a single command can be issued within a header-footer block. Commands, parameters and
arguments are separated by a space character.
DataMan Application Development
18

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DataMan and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF