Herunterladen Inhalt Inhalt Diese Seite drucken

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

Elektronische identifikations-systeme
Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

C-6_0-007-00_836905_E_0704.p65
39
Telegram example
for page 38:
Read from data
carrier with head
select and block size
with block check (BCC)
Telegram example
for page 38:
Write to data carrier
with read/write head
select and block size
with block check (BCC)
40
Writing a constant value in the data carrier with read/write select and block size
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
from host
'C'
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.
40
english
Programming
-> Head 1 is selected. Read 10 bytes starting at address 50 of the data carrier at read/write
Head 2. The data carrier at Head 4 has a block size of 64 bytes.
The host sends
Address of first byte to read
Number of bytes to read
Read/write Head No. 2
Block size 0 = 64 bytes
The BIS processor acknowledges with
The host system gives the start command
The BIS processor provides the data from the data carrier '1 2 3 4 5 6 7 8 9 A F' BCC (70
After the telegram sequence, Head 2 remains selected, with 64 byte block size.
-> Head 1 is selected. Write 5 bytes starting at address 500 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
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
Head
Block
End
of first byte to
bytes to be
No.
size
2)
be sent
sent
A3 A2 A1 A0
L3 L3 L1 L0
K
B
BCC
'0 0 0 0'
'0 0 0 1'
'1'
'0' or
or
to
to
or
'1'
see
'8 1 9 1'
'8 1 9 2'
'2'
2)
1)
'L
0 0 5 0 0 0 1 0 2 0 J' BCC (4A
<ACK> '0'
<STX>
'P 0 5 0 0
<ACK> '0'
<STX> '1 2 3 4 5 3' BCC (33
<ACK> '0'
Acknow-
Start
Data (from start
Termi-
Termi-
ledge
trans-
address to start
nator
nator
3)
mission
address
4)
4)
+ no. of bytes)
<STX>
D
<ACK>'0'
'CR' or
or <NAK>
'LF CR'
+ Error-
No.
)
HEX
)
HEX
0 0 0 5 2 0 R' BCC (52
)
HEX
)
HEX
39
english
End
Acknow-
Termi-
2)
ledge
nator
3)
4)
BCC
or
see
2)
<ACK>'0'
'CR' or
or <NAK>
'LF CR'
+ Error-
No.
1)

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

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

Inhaltsverzeichnis