41
41
english
Programming
-> Head 1 is selected. Write 500 bytes of ASCII data value 0 (30
HEX
) starting at address 20 of
the data carrier at read/write Head 2. The data carrier at Head 2 has a block size of 64
bytes.
The host sends
'C 0 0 2 0 0 5 0 0 2 0 F' BCC (46
HEX
)
Address of first byte to write
Number of bytes to write
Read/write Head No. 2
Block size 0 = 64 Byte
The BIS processor acknowledges with
<ACK> '0'
The host system gives the start command and data
<STX> '0 2' BCC (32
HEX
)
The processor acknowledges with
<ACK> '0'
After the telegram sequence, Head 2 remains selected, with 64 byte block size.
Data within angle brackets are control characters.
Values inside apostrophes represent the respective character(s) in ASCII code.
Telegram example
for page 40:
Write to data carrier
with read/write head
select and block size
with block check (BCC)
C-6_0-007-00_836905_E_0704.p65
42
english
42
Programming
Read from Data carrier, Write to Data carrier
1) The commands Status and/or Quit are not permitted at this point.
2) Instead of block check BCC, depending on protocol variant either Carriage Return 'CR' or LIne Feed with Carriage Return may be used.
3) <ACK> '0' is returned as acknowledgement if there is no error, or <NAK> + 'Error No.' if an error occurs.
4) For protocol variants which always require a terminator, either 'CR' or 'LF CR' must be inserted here as a terminator.
Data within angle brackets are control characters.
Values inside apostrophes represent the respective character(s) in ASCII code.
Task
Data Flow
Com-
mand
Start address
of first byte to
send
Number of
bytes to
send
End
2)
Acknow-
ledge
3)
Termi-
nator
4)
Start
trans-
mission
Termi-
nator
4)
Data (from start
address to start
address
+ no. of bytes)
End
2)
Acknow-
ledge
3)
Termi-
nator
4)
Read
from host
system to
BIS
'R'
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'
BCC
or
see
2)
<STX>
'CR' or
'LF CR'
from BIS
to host
system
<ACK>'0'
or <NAK>
+ Error-No.
'CR' or
'LF CR'
D1 D2 D3 ... Dn
BCC
or
see
2)
1)
Write
from host
system to
BIS
'W'
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'
BCC
or
see
2)
<STX>
D1 D2 D3 ... Dn
BCC
or
see
2)
from BIS
to host
system
<ACK>'0'
or <NAK>
+ Error-No.
'CR' or
'LF CR'
<ACK>'0'
or <NAK>
+ Error-No.
'CR' or
'LF CR'
1)
1)