Communications
MS-860 Industrial Raster Reader User’s Manual
6-7
User Defined Example
User Defined Multidrop
Note: Any ASCII character except a null (00) and a ^A (01) can be assigned as an
address. Control characters can be used to define RES through NAK in serial com-
mands. (See
"Communication Protocol Commands"
on page A-15.)
Note: Definitions of commands in User Defined and User Defined Multidrop must
be duplicated in host applications to enable poll and select sequences to execute cor-
rectly during transmission.
Note: Typically, parameters in User Defined Multidrop are defined by first enabling
Multidrop, then enabling User Defined Multidrop. This pre-loads multidrop charac-
ters into the parameters. Then changes are made to individual characters to match the
host or other requirements.
Example:
An ACK/NAK protocol can be configured using
User Defined. The reader
will transmit data to the host when an
ACK is received. If a NAK or
response timeout occurs, the reader will re-send the data to the host up
to 3 more times before aborting.
Tip: To use User Defined Point-to-Point, first select Point-to-Point
<K140,0>
and then
User Defined
<K140,6>
.
Example: To select an unpolled ACK/NAK User Defined protocol with
LRC disabled, send
<K140,0><K140,6,,,,,,,^F,^U><K145,0>
. ACK
and NAK will be displayed in the menu.
Tip: To use User Defined Point-to-Point, first select Point-to-Point
<K140,0>
and then
User Defined
<K140,6>
.
Serial Cmd:
<
K140,6
,RES,address,
REQ,EOT,STX,ETX,ACK,NAK
>
Default:
No assignment
Options:
Any ASCII character except a null. Control characters can be used to
define RES through NAK in serial commands.
Usage:
Used when connecting to a concentrator or other device that does not
match standard multidrop protocol.
Definition:
User Defined Multidrop allows the user to customize the polling protocol.
If selecting
User Defined Multidrop (7), complete the format by either
choosing new parameters or place commas where unchanged data fields
occur.
Serial Cmd:
<
K140,7
,
RES,address,REQ,EOT,STX,ETX,ACK,NAK>
For
User Defined Multidrop, first select Multidrop
<K140,F140,5>
,
then
User Defined Multidrop
<K140,140,F7...>
.
Address:
Any single character (02 hex to 7E hex) in the ASCII table can be
assigned as the address character. The character chosen is used as the
poll character and the subsequent ASCII character becomes the select
character. For example, if a
^B
(02 hex) is selected as the address,
^C
(03 hex) becomes the select address that the host will use in sending
host select commands.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com