Herunterladen Inhalt Inhalt Diese Seite drucken

Balluff BIS C-6 0 RS 232 Serie Handbuch Seite 60

Elektronische identifikations-systeme
Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

C-6_0-007-00_836905_E_0704.p65
41
Telegram example
for page 40:
Write to data carrier
with read/write head
select and block size
with block check (BCC)
42
Read from Data carrier, Write to Data carrier
Task
Data Flow
Com-
mand
from host
'R'
Read
system to
BIS
from BIS
to host
system
from host
'W'
Write
system to
BIS
from BIS
to host
system
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.
42
english
Programming
-> Head 1 is selected. Write 500 bytes of ASCII data value 0 (30
the data carrier at read/write Head 2. The data carrier at Head 2 has a block size of 64
bytes.
The host sends
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
The host system gives the start command and data
The processor acknowledges with
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.
Programming
Start address
Number of
End
Acknow-
of first byte to
bytes to
2)
ledge
send
send
3)
A3 A2 A1 A0
L3 L3 L1 L0
BCC
'0 0 0 0'
'0 0 0 1'
or
to
to
see
'8 1 9 1'
'8 1 9 2'
2)
<ACK>'0'
or <NAK>
+ Error-No.
1)
A3 A2 A1 A0
L3 L3 L1 L0
BCC
'0 0 0 0'
'0 0 0 1'
or
to
to
see
'8 1 9 1'
'8 1 9 2'
2)
<ACK>'0'
or <NAK>
+ Error-No.
1)
) starting at address 20 of
HEX
'C 0 0 2 0
0 5 0 0
<ACK> '0'
<STX> '0 2' BCC (32
<ACK> '0'
Termi-
Start
Termi-
Data (from start
nator
trans-
nator
address to start
4)
mission
4)
address
+ no. of bytes)
<STX>
'CR' or
'LF CR'
'CR' or
D1 D2 D3 ... Dn
'LF CR'
<STX>
D1 D2 D3 ... Dn
'CR' or
'LF CR'
1)
2 0 F' BCC (46
)
HEX
)
HEX
41
english
End
Acknow-
Termi-
2)
ledge
nator
3)
4)
BCC
or
see
2)
BCC
or
see
2)
<ACK>'0'
'CR' or
or <NAK>
'LF CR'
+ Error-No.

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Bis c-600 rs 232Bis c-620 rs 232

Inhaltsverzeichnis