Hi, guys!
I've taken on learning the CWRITE and etc. I have two KR C2 robot controllers and I have a very simple program:
Code
DEF test_cwrite( )
channel :ser_3 :ser_3 $pser_3
decl state_t sw_t
decl modus_t mw_t
int my_value, my_handle
my_value = 123.5
mw_t = #sync
copen(:ser_3,my_handle)
cwrite (my_handle, sw_t, mw_t, "%d",my_value)
HALT
cwrite (my_handle, sw_t, mw_t, "%x",my_value)
HALT
END
Display More
But I have faced a problem. CWRITE returns CMD_ABORT and I can't understand the source of the problem
The COM3 is configured as enabled in HW_INF.INI
I have a communication cable like sketched at cable.jpg. May be the reason is missing connection between pins 4 and 6?
I tried to connect pins as it depicted at com.jpg to transfer data and recieve data at the same KR C2. The problem is the same.
Can somebody help me with this question?