Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 04:38:59 AM
Home Help Search Calendar Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Robot Help and Discussion Center
| |-+  Fanuc Robots (Moderators: Sven Weyer, Jim Tyrer)
| | |-+  420F Robot , RH System. Communication with RS232 device
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: 420F Robot , RH System. Communication with RS232 device  (Read 533 times)
teknikjocke
Newbie
*
Offline Offline

Posts: 15


« on: June 18, 2008, 02:29:58 PM »

Hello all.

I have a question regarding my 420F robot , with RH system.

I would like the robot to communicate  with a RS232 device. I belive i have a com port on the CPU board , but I dont know how to program this. Anyone have any good ideas ? or perhaps any example programs to slove this ?

Thanks.

Teknikjocke
Logged
teknikjocke
Newbie
*
Offline Offline

Posts: 15


« Reply #1 on: June 25, 2008, 02:36:44 PM »

No one with experience about this kind of problem ?

TeknikJocke
Logged
BabakRobot
Newbie
*
Offline Offline

Posts: 3


« Reply #2 on: June 26, 2008, 03:13:20 PM »

Hi,

You can use file open with "p2:" name and read and write ability and you can write and read data with readfile and writefile commands.

Please test it.

Logged
teknikjocke
Newbie
*
Offline Offline

Posts: 15


« Reply #3 on: August 08, 2008, 05:34:13 PM »

Hi everyone.


I have tested and managed to get the "write" command to work (i´m sending and recieving data from a system)

Does anyone have experience with the "read" command ? When i try to program it the same way as the "write" , the programs just halts on that line. What is the robot waiting for ? Do i have to specifie the message to "read" somewhere ?

Teknikjocke
Logged
M.Fotovat
Newbie
*
Offline Offline

Posts: 27



« Reply #4 on: August 12, 2008, 09:38:55 AM »

Hi,
you need to have KFLOPPY software to emulate.
Logged
teknikjocke
Newbie
*
Offline Offline

Posts: 15


« Reply #5 on: August 12, 2008, 09:39:17 PM »

M.Fotovat

Thanks for your reply.

Do I really need KFLOPPY to send and recieve data through the RS 232 port ? (The port on the board , not on the front  panel)

I know I need it when I copy and transfer programs etc , but in this application i'm only reading dand writing data (ASCII).

As I wrote , i have managed to write data thrugh the port , and I have no KFLOPPY in the recieving end. Im communicating with a ink printer.



Teknikjocke
Logged
murrellr
Newbie
*
Offline Offline

Posts: 44



« Reply #6 on: August 14, 2008, 04:25:25 PM »

I believe the READ statement is blocking and buffered by default.  This is OK for files, but would cause a program to suspend, waiting for its input buffer to fill.  Its been a long time since I did serial communications in KAREL.  Take a look at the GET_PORT_ATTR and SET_PORT_ATTR builtins.  I believe you can turn off buffering and do look-ahead reads to see if there is anything to READ.
Logged

The future isn't what it used to be.
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!