beautypg.com

3 reading the serial number, 3 reading, The serial number – EUCHNER EKS FSA with Profibus-DP Interface User Manual

Page 31: Manual eks electronic-key adapter profibus-dp

background image

Manual EKS Electronic-Key Adapter Profibus-DP

8.6.3 Reading the serial number

The Electronic-Key read/write contains a unique 8-byte serial number. This number is written by laser during the
Electronic-Key production process and can never be changed or deleted. The serial number is used for secure
distinction of every single Electronic-Key. If you want to use the serial number, it is necessary to completely
evaluate all 8 bytes. The serial number is appended to the freely programmable user data.

The serial number can be read using user data start address byte no. 116 and the number of bytes set to 8 (see
section 8.6.2 Reading/writing any data areas).

8.7 Read-only operation in conjunction with Electronic-Key read-only

In read-only operation a 7-byte long communication message is transferred to the input area of the bus master
on each bus cycle.

Input area of the bus master

Byte no.

Description

Function

0

Status byte

(see below)

1 Execution

counter

0 ... 255, the execution counter is increased by 1 for each newly read
Electronic-Key. At a counter reading of 255 the counter is reset to 0.
Using the execution counter, the user can ensure that no Electronic-
Key is accidentally evaluated more than once.

2

:

5 bytes receive data

Representation of the contents of the Electronic-Key

6

The following status information is transferred in the status byte:

Status byte

Bit no.

Description (active with bit = 1)

Function

0 Electronic-Key

adapter

ready

After successful configuration the Electronic-Key adapter signals that
it is ready via bit no. 0. Readiness should be continuously monitored
by the application.

1 Electronic-Key

detected

The detection of a valid Electronic-Key is signaled using bit no. 1.
Using this bit the bus master can detect that new data is available.

2

Reserve

3
4

Operating mode

For read-only operation always set to 1.

5 Job

status

Bit no. 5 is set on a status change in the EKS diagnostics byte (value
not 00

hex

, see section 8.5). This bit can be monitored by the

application.

6

Job finished

Bit no. 6 indicates that a read has been successfully finished.

7

Job in progress

Bit no. 7 indicates that a read is currently in progress.


092009-03-10/07

Subject to technical modifications

Page 31

/

36

This manual is related to the following products: