i am learning RSI 4.0 at kuka 8.5.
and i run a "ethernet"example of rsi package.
this is code of "ethernet" src:
Code
&ACCESS RVP
&REL 1
&PARAM TEMPLATE = C:\KRC\Roboter\Template\vorgabe
&PARAM EDITMASK = *
DEF RSI_Ethernet( )
; =============================================
;
; RSI EXAMPLE: ETHERNET communication
; Realtime UDP data exchange with server application
;
; =============================================
; Declaration of KRL variables
DECL INT ret ; Return value for RSI commands
DECL INT CONTID ; ContainerID
;FOLD INI
;FOLD BASISTECH INI
BAS (#INITMOV,0 )
;ENDFOLD (BASISTECH INI)
;FOLD USER INI
;Make your modifications here
;ENDFOLD (USER INI)
;ENDFOLD (INI)
; Move to start position
PTP {A1 0, A2 -90, A3 90, A4 0, A5 90, A6 0}
; Create RSI Context
ret = RSI_CREATE("RSI_Ethernet",CONTID,TRUE)
IF (ret <> RSIOK) THEN
HALT
ENDIF
; Start RSI execution
ret = RSI_ON(#RELATIVE)
IF (ret <> RSIOK) THEN
HALT
ENDIF
; Sensor guided movement
RSI_MOVECORR()
; Turn off RSI
ret = RSI_OFF()
IF (ret <> RSIOK) THEN
HALT
ENDIF
PTP {A1 0, A2 -90, A3 90, A4 0, A5 90, A6 0}
END
Display More
the result of this example is :when add or minus position value of TCP from PC server application,the robot moves a little(in 5mm and 5degree limit),so it cannot move too much.
But i want robot move without this limit,for example i give robot a Angle or Line or PTP command,the robot TCP can go to to any postion in its reachable area.
How to code it ,have you any example (src and server app)?
Thank you!