![Balluff BIS Series Manual Download Page 49](http://html1.mh-extra.com/html/balluff/bis-series/bis-series_manual_3613914049.webp)
35
35
english
You want to read 10 bytes from the data carrier starting at address 50.
The host sends
'L 0 0 5 0 0 0 1 0 1 0 I' BCC (49 Hex)
Address of first byte to read
Number of bytes to read
Fixed
Fixed
The Handy Programmer acknowledges with
<ACK> '0'
The host gives the start command
<STX>
The Handy Programmer provides the data
from the data carrier
'1 2 3 4 5 6 7 8 9 A F' BCC (70 Hex)
You want to write 5 bytes to the data carrier starting at address 500.
The host sends
'P 0 5 0 0 0 0 0 5 1 0 Q' BCC (51 Hex)
Address of first byte to write
Number of bytes to write
Fixed
Fixed
The Handy Programmer acknowledges with
<ACK> '0'
The host gives the start command and data
<STX> '1 2 3 4 5 3' BCC (33 Hex)
The Handy Programmer acknowledges with
<ACK> '0'
Telegram example
for 34:
Write to data carrier
with BCC block check
Telegram example
for 34:
Read from data
carrier
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
M-81_854610_E_0703.p65
36
english
36
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.
Writing a constant value in the data carrier
This command can be used to erase a data carrier data. One saves the time for the transmission of the write byte.
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
address
+ no. of bytes)
End
Acknow-
ledge 2)
Write
from host
system to
BIS
'C'
A3 A2 A1 A0
'0 0 0 0'
to
'0 7 5 1'
L3 L2 L1 L0
'0 0 0 1'
to
'0 7 5 2'
'1'
'0'
BCC
or
'CR'
<STX>
D
BCC
or
'CR'
from BIS
to host
system
<ACK>'0'
or <NAK>
+ Error-No.
<ACK>'0'
or <NAK>
+ Error-No.
1)
1)
Telegram Structure and Examples
Reading / Writing over the serial interface