
5
AP000240-01-01/19 (Application)
Application EKS
Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3
EN
4. Overview of the communication data
4.1.
Input
PROFINET
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Byte 0
(Status byte)
Job in progress
Job finished
-
-
-
-
Electronic-Key
detected
Device ready for
operation
PROFINET
Description
Function
Byte 1
Receive data
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 hex.
.
.
.
Byte 127
4.2.
Output
PROFINET
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Byte 0
(command byte)
-
-
-
-
-
-
-
Write Electron-
ic-Key
PROFINET
Description
Function
Byte 1
Start address
Defines first byte in the memory in the Electronic-Key that is written on setting bit no. 0 in the
command byte. Start address of user data: byte no. 0, 4, 8 … 112.
Byte 2
Number of bytes
Defines the number of bytes in the memory in the Electronic-Key that are written on setting bit no.
0 in the command byte. Number of bytes of user data: 4, 8, 12 … 116 bytes.
Byte 3
Not used
Byte 4
Transmit data
If bit no. 0 in the command byte is set to 1, the content of these bytes is written to the Electronic-Key
starting from the start address defined.
.
.
.
Byte 119
Byte 120
.
.
Byte 127
Not used
TIP!
You will find further information in the manual.
NOTE!
On the Electronic-Key read/write with 116 bytes freely programmable, the memory is organized in
4-byte blocks. This means the start address for writing 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 a multiple of 4-byte sized
blocks must always be written (4, 8, 12 ... 116 bytes).
During reading it is possible to access the memory byte-by-byte without the above-mentioned restric-
tion for writing.