Interfaces – Communication
Leuze electronic
DCR 248i
87
11
Interfaces – Communication
Commands can be used to send commands directly to the code reader for control and configuration. The
following transmission options are available for the commands:
• Online commands via the Ethernet or RS 232/RS 422 interface (see chapter 11.1 "Online commands")
• XML-based communication via the Ethernet interface (see chapter 11.2 "XML-based communication")
11.1
Online commands
11.1.1 Overview of commands and parameters
Online commands can be used to send commands directly to the code reader for control and configuration.
For this, the code reader has to be connected to a computer (host) via the serial interface or the Ethernet
interface (see chapter 8.3.4 "Ethernet host communication").
Online commands offer the following options for controlling and configuring the code reader:
• Control/decode the reading gate
• Read/write/copy parameters
• Carry out an automatic configuration
• Teach-in/set reference codes
• Call up error messages
• Query statistical device information
• Perform a software RESET and re-initialize the code reader
Syntax
Online commands consist of one or two ASCII characters followed by command parameters.
No separation characters may be entered between the command and the command parameter(s). Both
small and capitalized letters can be used.
Example:
Command ’
CA
’:
Auto setup function
Parameter ’
+
’:
Activation
Transmitted is:
’
CA+
’
Notation
Commands, parameters and returned data are enclosed between single quotation marks ’ ’ in the text of
this manual.
Most online commands are acknowledged by the device and any requested data returned. For commands
that are not acknowledged, command execution can be observed or monitored directly on the device.
11.1.2 General online commands
Software version number
Command
’V’
Description
Requests device version information
Parameter
None
Acknowledgment
Example:
’DCR 202i FIX-F1-102-R2 V1.0.0 2016-01-01’
The first line contains the device type of the code reader, followed by the device ver-
sion number and version date. The data which is actually displayed may vary from
the values given here.