I am trying to communicate my pc with kuka robot with ethernetkrl software. I succeeded to send from the robot to my computer a string message, but I failed to do the inverse (pc ->kuka),
the program runs without errors, however EKI_GETSTRING("BinaryFixed","Buffer",Bytes[]) changes the value of the global variable "Bytes[]"to an empty string
Any ideas what could be going on?
the kuka program (i have KRC4 controller):
Code
DEF BinaryFixed( )
;FOLD Declaration
INT i
DECL EKI_STATUS RET
INT valueInt
REAL valueReal
BOOL valueBool
CHAR valueChar[1]
;ENDFOLD
;FOLD INI
;FOLD BASISTECH INI
BAS (#INITMOV,0 )
;ENDFOLD (BASISTECH INI)
;FOLD USER INI
;Make your modifications here
;ENDFOLD (USER INI)
;ENDFOLD (INI)
;FOLD Initialize sample data
FOR i=(1) TO (10)
Bytes[i]=0
ENDFOR
;ENDFOLD
RET=EKI_Init("BinaryFixed")
RET=EKI_Open("BinaryFixed")
Bytes[]="hello"
FOR i=(1) TO (20)
RET = EKI_Send("BinaryFixed",Bytes[])
ENDFOR
RET=EKI_GetString("BinaryFixed","Buffer",Bytes[])
RET=EKI_Close("BinaryFixed")
RET=EKI_Clear("BinaryFixed")
END
Display More
the xml receive configuration for the binary fixed data: