39
39
E
Restart the Handy
Programmer (Quit)
Sending the Restart command causes a telegram in process to be aborted and puts the
Handy Programmer in the ground state.
After this telegram is acknowledged, a minimum of 1600 ms pause should be allowed
before starting a new telegram.
Important! The Quit command is not permitted while the Handy Programmer is waiting for a
terminator (BCC or 'CR'). In this situation, the Quit would be incorrectly interpreted as a termina-
tor or datum.
Task
Data Flow
Command Terminator
Acknowledge Terminator
Restart
(Quit)
from host system to BIS
'Q'
BCC or'CR'
from BIS to host system
'Q'
BCC or'CR'
1)
1) The Quit command is not permitted at this point.
Put the Handy Programmer into the ground state.
The host sends
'Q Q'
BCC (51 Hex)
The Handy Programmer acknowledges with
'Q Q'
BCC (51 Hex)
Telegram example with
BCC block check:
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
C-810-0-003-0_826044_E_0510.p65
40
40
E
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 may 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
Block
size
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
'8 1 9 1'
L3 L3 L1 L0
'0 0 0 1'
to
'8 1 9 2'
'1'
B
'0'
or
'1'
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.
Telegram Structure and Examples
Reading / Writing over the serial interface
Data within angle brackets are control characters.
Values inside apostrophes represent the respective character(s) in ASCII code.