
47
47
E
Data within angle brackets are control characters.
Values inside apostrophes represent the respective character(s) in ASCII code.
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.
3) If the file name is shorter than 8 characters, it must be filled out to 8 characters using spaces (20Hex).
Read file from the Handy Programmer to the PC or laptop
This command is used to read out a file stored in the Handy Programmer.
Task
Data Flow
Com-
mand
File name 3)
End
Acknow-
ledge 2)
Start
trans-
mission
Start
address on
the data
carrier
No. of bytes
on the data
carrier
Data (from start
address to start
a no. of
bytes)
End
Read file
from the
Handy
Programmer
from host
system to
BIS
'G'
'D7 ... D0'
'MUSTER_ _'
BCC
<STX>
from BIS to
host system
<ACK>'0'
or <NAK>
+ Error-No.
A3 A2 A1 A0
'0 0 0 0'
to
'8 1 9 1'
L3 L2 L1 L0
'0 0 0 1'
to
'8 1 9 2'
D1 D2 D3 ... Dn
BCC
1)
1)
Working with files over the serial interface
Telegram Structure and Examples
C-810-0-003-0_826044_E_0510.p65
48
48
E
Send file MUSTER1 to the Handy Programmer. Write 5 bytes to the data carrier starting with
Address 27.
The host sends
'T MUSTER1_ 0 0 2 7 0 0 0 5 M' BCC (4D Hex)
File name (filled out to 8 bytes) *)
Address of the first byte on the data carrier
Number of bytes
The Handy Programmer acknowledges with
<ACK>
'0'
The host gives the start command and data
<STX>
'12345 3' BCC (33 Hex)
The Handy Programmer acknowledges with
<ACK>
'0'
Telegram example
for 46:
Send file to the
Handy Programmer
with BCC block check
Data within angle brackets are control characters.
Values inside apostrophes represent the respective character(s) in ASCII code.
Read file MUSTER1 from the Handy Programmer. Read 5 bytes on the data carrier starting
with Address 27.
The host sends
'G MUSTER1_ ^' BCC (5E Hex)
File name (filled out to 8 bytes) *)
The Handy Programmer acknowledges with
<ACK> '0'
The host sends
<STX>
The Handy Programmer sends
'0027000512345 1' BCC (33 Hex)
Telegram example
for 47:
Read file from the
Handy Programmer
with BCC block check
Working with files over the serial interface
Telegram Structure and Examples
*) A space _, used for filling out the file name must also be accounted for in the BCC.