Hello dears,
my problem is : when i want to comminucate kuka kr c2 (5.6.5) rs-232 (COM3) to my delta plc rs-232 ,nothing sent or nothing received !
but when i comminucate kuka kr c2 (5.6.5) rs-232 (COM3) to my laptop connection is ok.
Code
DEF final( )
;FOLD INI
;FOLD BASISTECH INI
GLOBAL INTERRUPT DECL 3 WHEN $STOPMESS==TRUE DO IR_STOPM ( )
INTERRUPT ON 3
BAS (#INITMOV,0 )
;ENDFOLD (BASISTECH INI)
;FOLD USER INI
;Make your modifications here
;FOLD COLLISION_V_3.01 INI ;%{E}
IF (COLLISION_DATA[1].I_NR>0) THEN
GLOBAL INTERRUPT DECL 21 WHEN $IN[COLLISION_DATA[1].I_NR]==FALSE DO COLLSTOP (1,0 )
ENDIF
IF (COLLISION_DATA[2].I_NR>0) THEN
GLOBAL INTERRUPT DECL 22 WHEN $IN[COLLISION_DATA[2].I_NR]==FALSE DO COLLSTOP (2,0 )
ENDIF
IF (COLLISION_DATA[3].I_NR>0) THEN
GLOBAL INTERRUPT DECL 23 WHEN $IN[COLLISION_DATA[3].I_NR]==FALSE DO COLLSTOP (3,0 )
ENDIF
IF (COLLISION_DATA[4].I_NR>0) THEN
GLOBAL INTERRUPT DECL 24 WHEN $IN[COLLISION_DATA[4].I_NR]==FALSE DO COLLSTOP (4,0 )
ENDIF
;ENDFOLD (Collision)
HaltPunktEndeInit()
;ENDFOLD (USER INI)
;ENDFOLD (INI)
;FOLD ; Anlagenbezeichn: Stations-Nr:;%{PE}%R 5.6.13,%MKUKATPBASIS,%CCOMMENT,%VNORMAL,%P 2:Anlagenbezeichn: Stations-Nr:
;ENDFOLD
;FOLD ; Stand / Version:;%{PE}%R 5.6.13,%MKUKATPBASIS,%CCOMMENT,%VNORMAL,%P 2:Stand / Version:
;ENDFOLD
;FOLD ; Name Bearbeiter:;%{PE}%R 5.6.13,%MKUKATPBASIS,%CCOMMENT,%VNORMAL,%P 2:Name Bearbeiter:
;ENDFOLD
;FOLD PTP P0 Vel=100 % PDAT0 Tool[0] Base[0];%{PE}%R 5.6.13,%MKUKATPBASIS,%CMOVE,%VPTP,%P 1:PTP, 2:P0, 3:, 5:100, 7:PDAT0
$BWDSTART=FALSE
PDAT_ACT=PPDAT0
FDAT_ACT=FP0
BAS(#PTP_PARAMS,100)
PTP XP0
;ENDFOLD
MW_T=#SYNC
IR_VALUE=0
IR_VALUE2=0
IR_VALUE3=0
MR_T=#ABS
TIMEOUT=10.0
OFFSET=0
COPEN(:SER_3,HANDLE)
IF(HANDLE==0) THEN
HALT
ENDIF
CWRITE(HANDLE,SW_T,MW_T,"%s","start")
Display More