![Balluff BIS Series Скачать руководство пользователя страница 54](http://html1.mh-extra.com/html/balluff/bis-series/bis-series_manual_3613914054.webp)
45
45
english
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 43:
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 44:
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.
M-81_854610_E_0703.p65
46
english
46
Read the file directory from the Handy Programmer. Two files are stored in the Handy Pro-
grammer.
The host sends
'D D' BCC (44 Hex)
The Handy Programmer
acknowledges with
<ACK> '0'
The host sends
<STX>
The Handy Programmer sends
'0002MUSTER1_00270005 MUSTER2_00350012 EOT'
BCC (04 Hex)
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.
This command is used to read the file directory stored in the Handy Programmer.
Task
Data Flow
Command End
Acknowledge 2)
Start transmission
Data
End
Read
directory
from Handy
Programmer
from host
system to BIS
'D'
BCC
<STX>
from BIS to
host system
<ACK>'0' or
<NAK> + Error-No.
D1 D2 D3 ... Dn
BCC
1)
1)
Telegram example:
Read file directory
from Handy
Programmer
with BCC block check
Working with files over the serial interface
Telegram Structure and Examples
Read file directory
from Handy
Programmer to PC /
Laptop
*) A space _, used for filling out the file name must also be accounted for in the BCC.