Issued: 19.12.2012 Version: KST EthernetKRL 2.2 V1 en (PDF)
6 Programming
6.2.6
Deleting received data
Description
A distinction is to be made between the following cases when deleting re-
ceived data:
Deletion with EKI_Clear(): the Ethernet connection is terminated and all
memories used by the connection are deleted.
Deletion with EKI_ClearBuffer(): data received but not yet called up are
deleted from one or all of the memories.
Examples
The position of the memory to be deleted is specified in XPATH. All ele-
ments after <Root><Activ><Flag>... are deleted.
All memories of the <Root>...</Root> element are deleted.
6.2.7
EKI_STATUS – Structure for function-specific return values
Description
Each EthernetKRL function returns function-specific values. EKI_STATUS is
the global structure variable to which these values are written.
Syntax
GLOBAL STRUC EKI_STATUS INT Buff, Read, Msg_No, BOOL Con-
nected, INT Counter
Explanation of
the syntax
; Declaration
INT i
DECL EKI_STATUS RET
CHAR Bytes[64]
; Initialization
FOR i=(1) TO (64)
Bytes[i]=0
ENDFOR
RET=EKI_GetString("Channel_1","Buffer",Bytes[])
XML data are extracted by the EKI and stored type-specifically in dif-
ferent memories. When deleting individual memories, it must be en-
sured that no data that belong together are lost.
EKI_STATUS RET
RET = EKI_ClearBuffer("Channel_1","Root/Activ/Flag")
EKI_STATUS RET
RET = EKI_ClearBuffer("Channel_1","Root")
Element
Description
Buff
Number of elements still in the memory after the
access.
Read
Number of elements read out of the memory
Msg_No
Error number of the error that occurred during a func-
tion call or data reception.
If automatic message output has been deactivated,
EKI_CHECK() can be used to read out the error num-
ber and display the error message on the smartHMI.
Summary of Contents for KUKA.EthernetKRL 2.2
Page 8: ...8 79 Issued 19 12 2012 Version KST EthernetKRL 2 2 V1 en PDF KUKA EthernetKRL 2 2 ...
Page 16: ...16 79 Issued 19 12 2012 Version KST EthernetKRL 2 2 V1 en PDF KUKA EthernetKRL 2 2 ...
Page 20: ...20 79 Issued 19 12 2012 Version KST EthernetKRL 2 2 V1 en PDF KUKA EthernetKRL 2 2 ...
Page 40: ...40 79 Issued 19 12 2012 Version KST EthernetKRL 2 2 V1 en PDF KUKA EthernetKRL 2 2 ...
Page 52: ...52 79 Issued 19 12 2012 Version KST EthernetKRL 2 2 V1 en PDF KUKA EthernetKRL 2 2 ...
Page 58: ...58 79 Issued 19 12 2012 Version KST EthernetKRL 2 2 V1 en PDF KUKA EthernetKRL 2 2 ...
Page 76: ...76 79 Issued 19 12 2012 Version KST EthernetKRL 2 2 V1 en PDF KUKA EthernetKRL 2 2 ...
Page 79: ...79 79 Issued 19 12 2012 Version KST EthernetKRL 2 2 V1 en PDF KUKA EthernetKRL 2 2 ...