Omron V440-F User Manual page 247

C-mount code reader
Table of Contents

Advertisement

Appendices
C-1 Serial Command Syntax
This section explains the structure and syntax of Omron Microscan's proprietary serial commands – K
commands. K command are used to configure the V440-F Reader. All K commands are described in
Appendices D through N.
Serial Command Format
Omron Microscan readers are controlled by two types of serial commands: configuration commands and
utility commands.
 Rules that apply to both configuration and utility commands
• Less than '<' and greater than '>' angle bracket characters enclose the commands.
• Commands and data are case sensitive. Characters must be entered as upper or lower case,
as specified.
Serial Utility Commands
Serial Utility Commands are sent during operations and are not followed by <A> or <Z>.
Serial Configuration Commands (K Commands)
Omron Microscan's serial configuration commands begin with a single "K" character followed by a 3-digit
numeric character, comma-separated command fields, and an initializing command, as follows:
<Knumeric character,data,data,...etc.><initializing command>
An initializing command <Z> or <A> may follow the command.
• <Z> initializes the memory and saves for power-on.
• <A> initializes the memory but does not save for power-on, with the exception of Communications
parameters.
For example, to enable UPC and save the change for power-on, send <K473,1><Z>.
To change Baud Rate and reset without saving changes for power-on, send <K100,3><A>.
 Serial Configuration Command Conventions
• All command fields (except the last) must be followed by a comma (without a space).
• NULL cannot be used. The characters <, >, and
values.
• All fields preceding a modified field must be included.
• If there is no change in preceding fields, then commas alone can be entered in these fields.
For example, if only the last field in the following command is changing, <K100,4,1,0,0> can
be entered as <K100,,,,0>.
• All fields following a modified field can be omitted. For example, to change Baud Rate only,
send <K100,3>.
Concatenating Configuration Commands
Commands can be concatenated (added together) in a single string. For example,
<K145,1><K220,1><A> enables LRC, sets End of Read Cycle mode to New Trigger, and resets the
data buffers without saving the changes for power-on.
C-2
,
can be used, but only if entered as hex
V440-F C-Mount Code Reader User Manual

Advertisement

Table of Contents
loading

Table of Contents