
21
AP000240-01-01/19 (Application)
Application EKS
Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3
EN
10. Reading and writing Electronic-Key data
10.1. Transferring program to the PLC
Transfer the program to the control system by clicking
Activate configuration
.
10.2. Reading content of the memory in the Electronic-Key using the block interface
In the following an extract of the status bytes and part of the data in the memory in the Electronic-Key are shown using the
block interface. Go online by clicking
Login
. To read the Electronic-Key data, it is only necessary to place the Electron-
ic-Key in the Electronic-Key adapter. The Electronic-Key data are transferred cyclically to the PLC.
Figure 24: Reading Electronic-Key data example
10.3. Writing content of the memory in the Electronic-Key using the block interface
The same block interface has been prepared such that data can also be written to the Electronic-Key. For this purpose the
start address and the number of bytes must be defined (cf. Chapter 4.2). In this example the first 8 bytes of the memory in
the Electronic-Key are written. In the
Receive_data
array complete the data in the
Prepared value
column, set the
Write_Elec-
tronic_Key
bit to
TRUE
and transfer everything by clicking the
Force value
button. Then the
Write_Electronic_Key
bit
must be reset to the value
FALSE
.
Figure 25: Writing Electronic-Key data example