3 read/write operation, 1 input area (read process), Manual eks electronic-key adapter profinet – EUCHNER EKS FSA with PROFINET interface User Manual
Page 35
Manual EKS Electronic-Key Adapter PROFINET
109283-01-04/10
Subject to technical modifications
Page 35/44
8.3 Read/write
operation
In read or write operation, following successful configuration, a transfer message with up to 128 bytes is
continually transferred to the input area or the output area of the control system during each cycle.
Information!
On the Electronic-Key read/write with 116 bytes freely programmable, the memory is organized in 4-
byte blocks. This means the start address must be given in the range byte number 0 to byte number
112, always in 4-byte steps (byte number 0, 4, 8 ... 112). Also the blocks written must always be a
multiple of 4-byte blocks (4, 8, 12 ... 116 bytes)!
However, during reading it is possible to access the memory byte-by-byte without the above-mentioned
restriction for writing.
The Electronic-Key read/write also 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 can therefore not be changed. The serial number is used for secure distinction of every single
Electronic-Key. It is necessary that all 8 bytes are completely evaluated for reliable differentiation. The
serial number is appended to the freely programmable memory. The serial number can be read by
entering the start address byte number 116 and the number of bytes 8.
8.3.1 Input area (read process)
Information!
If a specific start address is not defined, the user data are cyclically transferred to the input area of the
control system from byte no. 0 on the Electronic-Key. The number of bytes with user data transferred
cyclically from the Electronic-Key depends on the setting in the configuration software for the control
system (see section 7.2.1.2 Parameter Start address and 7.2.1.3 Parameter Number of bytes).
Input area of the PROFINET CPU
Byte no.
Description
Function
0
Status byte
(see below)
1
Max. 124 bytes user data from the Electronic-Key plus 3 bytes reserve.
If fewer bytes of data were selected during configuration, these are
filled with 0
:
:
Receive data
hex
.
127
The following status information is transferred in the status byte (byte no. 0, see above):
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 application can detect that new data is available.
2
3
4
Reserve
5
6 Job
finished
Bit no. 6 indicates that a write process has been successfully
finished.
7
Job in progress
Bit no. 7 indicates that a write process is currently in progress.