ethernet IP connection with machine - help needed

Just starting out? Need help? Post your questions and find answers here.
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

ethernet IP connection with machine - help needed

Post by marc_256 »

Hello,

I need some help (again),
I need to communicate with a machine I just bought.
the connection is ethernet (LAN).

what I need is to send a string to the machine via ethernet cable.
and the machine i going to answer a string if needed.
the machine have a fixed IP adress xxx.xxx.xxx.xxx

can this be done in PureBasic ?
if so, where can I find a starter program ?

I use:
- PC
- windows 7(x64), 8.1(x64)
- PureBasic 5.60 Final
- ethernet communication (RJ-45 / 8 pins)


thanks in advance,
greetings,
marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
infratec
Always Here
Always Here
Posts: 7575
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: ethernet IP connection with machine - help needed

Post by infratec »

Hi,

to less informations :wink:

Which protocol is used?
Which port is used?

You can do this without any problems in PB if you have the necessary informations.

Bernd
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: ethernet IP connection with machine - help needed

Post by marc_256 »

Hi Bernd,

I must tell, I never programed in ethernet communications,
so WOOPS, I'm more a 3D and math programmer. ;-)
infratec wrote: to less informations :wink:

Which protocol is used?
Which port is used?
Which protocol is used? thats like chinees for me ??
Which port is used? also here ... do you mean 192.168.xxx.xxx prived network?

and one cable between PC and Machine ?

sorry,
thanks,
marc,


EDIT:

I found some data in the user manual:
and now I'm gone a speak real chinees for me ...

application protocol ?? RAP - FTP
transmission protocol ?? RAP PPP - FTP TCP/IP
physical connections ?? RS232/RS422 and ETHERNET

marc,

EDIT2:
Just found, RAP = Robot Application Protocol
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
infratec
Always Here
Always Here
Posts: 7575
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: ethernet IP connection with machine - help needed

Post by infratec »

Hi,

normally you have a network with a router somewhere, then you can connect your machine to any ethernet connector at the router (if your PC is also connected to the router :mrgreen: ) and your machine is in the same subnet.

If your PC is 'standalone', you can also connect PC and machine directly via one cable.
Normally the networkcard can handle a 1:1 connection without need for a special cable.

But still, the IP addresses have to be in the same subnet, else they can not communicate.

Port:
A networkport is like a room number in a house, where the house is your ip address.

http uses port 80, https uses port 443 ...

Also you need the protocol of your machine:
Does it sends strings, can you send special commands, does it use http communication with json ...

Many things to know before you can start with
OpenNetworkConnection()
NetworkClientEvent()
...

Which should be in an own thread.

Bernd
infratec
Always Here
Always Here
Posts: 7575
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: ethernet IP connection with machine - help needed

Post by infratec »

I just searched for 'Robot Application Protocol'.

I found ....
nothing which is useful.

This protocol have to be documented and you need this documentation to communicate with it.

With FTP it sounds that you can send a data file to the machine.

Bernd
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: ethernet IP connection with machine - help needed

Post by marc_256 »

Bernd,

thanks,
marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
infratec
Always Here
Always Here
Posts: 7575
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: ethernet IP connection with machine - help needed

Post by infratec »

I only found something from ABB about RAP.

http://rab.ict.pwr.wroc.pl/irb1400/Ethserv.pdf

http://citeseerx.ist.psu.edu/viewdoc/do ... 1&type=pdf

Is it a ABB machine?

Bernd
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: ethernet IP connection with machine - help needed

Post by marc_256 »

bernd,

Yes it is a ABB robot arm

thanks, but do not lose to much time on this ...
I gone first better read the user manuals.
so I can find more (correct) info.

I'm developing my own 3D software for this robot,
and make my own positioning software.

greetings,
marc,
Last edited by marc_256 on Sun May 14, 2017 1:12 pm, edited 1 time in total.
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: ethernet IP connection with machine - help needed

Post by heartbone »

marc_256, this standalone program worked fine..... two years ago.
http://www.purebasic.fr/english/viewtop ... 92#p460892
It contains exactly what you are asking for, and contains an improved function for sending strings over the net (at the time).
Hopefully things haven't changed too much.
Keep it BASIC.
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: ethernet IP connection with machine - help needed

Post by mk-soft »

heartbone wrote:marc_256, this standalone program worked fine..... two years ago.
http://www.purebasic.fr/english/viewtop ... 92#p460892
It contains exactly what you are asking for, and contains an improved function for sending strings over the net (at the time).
Hopefully things haven't changed too much.
Not helpful,
It's about data control a robot ...

@marc_256
But have made you very much ...

In order to transfer simple control commands to the ABB robot, ABB also provides an OPC server (program)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
marc_256
Addict
Addict
Posts: 835
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: ethernet IP connection with machine - help needed

Post by marc_256 »

Hi to everyone,

just home from work,
thanks for all the info ...

@heartbone
will test yours, and can start with it, and use parts of it.

@mk-soft
I know about ABB OPC server program
but I liked to integrate the communication in my 3D program,
so I can send direct control to the robot.

thanks,
marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Post Reply