Herunterladen Inhalt Inhalt Diese Seite drucken

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

Elektronische identifikations-systeme
Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

C-6_0-007-00_836905_E_0704.p65
43
Telegram example
from page 42:
Read from Data
carrier
with block check (BCC)
Telegram example
from page 42:
Write to Data carrier
with block check (BCC)
44
Selecting a
Read/Write Head
Telegram example:
Selecting a Read/
Write Head
with block check (BCC)
44
english
Programming
Read from Data carrier: -> Read 10 bytes starting at address 50.
The host sends
Address of first byte to read
Number of bytes to read
The BIS processor acknowledges with
The host gives the start command
The BIS processor provides the data
from the data carrier
Write to Data carrier:
The host system sends
The BIS processor acknowledges with
The host sends the data
The BIS processor acknowledges with
The 'R' and 'W' commands represent a subtype of the 'L' and 'P' commands.
Data within angle brackets are control characters.
Values inside apostrophes represent the respective character(s) in ASCII code.
Programming
The 'H1' command selects Read/Write Head 1, 'H2' Read/Write Head 2, and 'HT' (Head Twin)
both Read/Write Heads.
If both heads are selected, please note:
1. Only one data carrier is allowed to be in the active zone of a read/write head at a time.
2. The read or write time increases by ca. 40 ms - regardless of the data amount to be read or
written. (This does not apply to the data carrier recognition).
3. The positive acknowledgement for a read or write action is no longer <ACK> '0' but rather
<ACK> '1' or <ACK> '2', depending on at which read/write head there is a data carrier to
be read from or written to.
Task
Data Flow
Com-
mand
from host system
'H'
Select
to BIS
Read/Write
Head
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.
-> Switch to Head 1.
The host sends
The BIS processor acknowledges with
Data within angle brackets are control characters.
Values inside apostrophes represent the respective character(s) in ASCII code.
'R 0 0 5 0
0 0 1 0 V'
<ACK> '0'
<STX>
'1 2 3 4 5 6 7 8 9 0 SOH' BCC (01
-> Write 5 bytes starting at address 500.
'W 0 5 0 0 0 0 0 5 W'
<ACK> '0'
<STX> '1 2 3 4 5
<ACK> '0'
Head number
End
Acknowledge
2)
3)
'1', '2' or 'T'
BCC or
see 2)
<ACK>'0' resp.
<NAK> + Error-No.
1)
'H 1
y'
BCC (79
<ACK> '0'
BCC (56
)
HEX
)
HEX
BCC (57
)
HEX
3'
BCC (33
)
HEX
43
english
Terminator
4)
'CR' or
'LF CR'
)
HEX

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

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

Inhaltsverzeichnis