Hello all
working on a r30iA controller, with Karel.
I am trying to communicate with a Panasonic GD-C2 double sheet detector over rs232.
I have tested the communications with a laptop using HyperTerminal, and I am able to make changes and read data from the Unit.
the problem is when I try running a Karel program to put the unit into "set" or "run" mode it doesn't seem to work,
I also noticed when I connect the laptop to the robot I get the command, but it's as if the robot sends a line feed, but no carriage return(the same happens with putty), I will attache a picture showing what I mean.
Also here is the Karel code I am using(it is copied from the forum, but slightly modified):
-- DSD3.kl
PROGRAM DSD3
%COMMENT = 'Serial Test 6'
VAR
file_var :FILE
text :STRING[8]
a_num :INTEGER
port_num :INTEGER
atr_type :INTEGER
atr_val :INTEGER
BEGIN -- serial test 6
-- Force User Screen
FORCE_SPMENU(TP_PANEL, SPI_TPUSER, 1)
-- Clear User Screen
WRITE TPDISPLAY(CR,CR,CR,CR,CR,CR,CR,CR,CR,CR,CR,'Opening Serial Port',CR)
OPEN FILE file_var('RW','P3:')
-- Status messages
--text = 'OUT0'
--a_num = 930
-- Write text to serial port
WRITE file_var ('SMD1',CR)
-- Close serial port on User Operator Pannel
CLOSE FILE file_var
-- Write message on User Screen
WRITE TPDISPLAY('TASK COMPLETED :)',CR)
END DSD3
the picture shows this program above being run and then the same program, but with SMD0 in the write command, and then the the same above again. etc.
any ideas what might be causing this?
thanks