Serial Communication
dfolker
✭
Hi.
I have a problem with our IRB 4600 running RW5.12_04.00.4003.
For some reason the robot cant read strings from com1 unless I send 200+ characters over the channel. It doesn't seem to matter if I send CR+LF or EOF (Tried a bunch of different delimiters). However if I spam the robot with data it starts going through. Writing on the serial channel however seems to work just fine.
Settings:
Baudrate: 9600
Parity: None
Number of bits: 8
Number of stop bits: 1
Flow control: None
Duplex: Full
(Both PC and Robot have the same settings)
I get the feeling that it is buffering the data, but not returning it unless the buffer is full.
I'm using the following test procedure.
[CODE] PROC SerialTestProc()
VAR iodev comIn;
VAR string sValue;
Close comIn;
Open "com1:", comInRead;
ClearIOBuff comIn;
WHILE TRUE DO
sValue := ReadStr(comIn, Delim:="A"Time:=30);
TPWrite sValue;
ENDWHILE
Close comIn;
ENDPROC[/CODE]
Anyone got any ideas?
I have a problem with our IRB 4600 running RW5.12_04.00.4003.
For some reason the robot cant read strings from com1 unless I send 200+ characters over the channel. It doesn't seem to matter if I send CR+LF or EOF (Tried a bunch of different delimiters). However if I spam the robot with data it starts going through. Writing on the serial channel however seems to work just fine.
Settings:
Baudrate: 9600
Parity: None
Number of bits: 8
Number of stop bits: 1
Flow control: None
Duplex: Full
(Both PC and Robot have the same settings)
I get the feeling that it is buffering the data, but not returning it unless the buffer is full.
I'm using the following test procedure.
[CODE] PROC SerialTestProc()
VAR iodev comIn;
VAR string sValue;
Close comIn;
Open "com1:", comInRead;
ClearIOBuff comIn;
WHILE TRUE DO
sValue := ReadStr(comIn, Delim:="A"Time:=30);
TPWrite sValue;
ENDWHILE
Close comIn;
ENDPROC[/CODE]
Anyone got any ideas?
0
Comments
-
I am having this exact same problem. Does anyone have a solution for it?It has been working great for a week and now it does not read anything until you type in 200+ characters.0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 801 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings