39
39
english
Initialize a data carrier for CRC_16 data checking
This telegram initializes a data carrier located at the active read/write head for use of CRC_16 data checking.
This telegram must also be send again if a CRC error results from a failed write operation, i.e., the data carrier must be
reinitialized in order to use it again.
Please note the table on
10!
The indicated number of usable bytes must not be exceeded, i.e., the sum of start address
plus number of bytes must not exceed the data carrier memory capacity!
Task
Data Flow
Com-
mand
Start address
of first byte to
be sent
Number of
bytes to be
sent
End
Acknow-
ledge 2)
Start
trans-
mission
Data (from start
address to start
a no. of
bytes)
End
Acknow-
ledge 2)
Initialize
CRC_16
range
from host
system to
BIS
'Z'
A3 A2 A1 A0
'0 0 0 0'
to
usable bytes
using CRC -1
L3 L2 L1 L0
'0 0 0 1'
to
usable bytes
using CRC
'1' '0'
BCC
or
'CR'
<STX>
D1 D2 D3 ... Dn
BCC
or
'CR'
from BIS
to host
system
<ACK>'0'
or <NAK>
+ Error-No.
<ACK>'0'
or <NAK>
+ Error-No.
1)
1)
1) The Quit command is not permitted at this point.
2) <ACK> '0' is returned as acknowledgement if there is no error, or <NAK> + 'Error No.' if an error occurs.
Data within angle brackets are control characters.
Values inside apostrophes represent the respective character(s) in ASCII code.
Telegram Structure and Examples
Reading / Writing over the serial interface
M-81_854610_E_0703.p65
40
english
40
Error numbers
The BIS M-81_ always outputs an error number. The meaning of these error numbers is
indicated in the following table.
Reading / Writing over the serial interface
Error Numbers
No. Error Description
Effect
2
Read error
Read telegram aborted,
Handy Programmer goes into ground state.
3
Read aborted, since the
data carrier was removed
Handy Programmer goes into ground state.
4
Write error
Write telegram aborted, Handy
Programmer goes into ground state.
CAUTION:
An aborted write could
cause new data to be
written to the data carrier
which may be incomplete!
5
Writing aborted,since the
data carrier was removed
Handy Programmer goes into ground
state.
6
Interface error
Handy Programmer goes into ground state.
(parity or stop bit error)
7
Telegram format error
Handy Programmer goes into ground state. Possible format errors:
- Command is not 'L', 'P', 'Q', 'C' or 'Z'
Start address or number of bytes exceed permissible range
8
BCC error, the trans-
mitted BCC is wrong
Telegram is aborted,
Handy Programmer goes into ground state.
E
CRC error
The CRC for the read data does not agree with the CRC on the data
carrier.