ethernet IP connection with machine - help needed
ethernet IP connection with machine - help needed
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,
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 ...
PS: sorry for my english I speak flemish ...
Re: ethernet IP connection with machine - help needed
Hi,
to less informations
Which protocol is used?
Which port is used?
You can do this without any problems in PB if you have the necessary informations.
Bernd
to less informations

Which protocol is used?
Which port is used?
You can do this without any problems in PB if you have the necessary informations.
Bernd
Re: ethernet IP connection with machine - help needed
Hi Bernd,
I must tell, I never programed in ethernet communications,
so WOOPS, I'm more a 3D and math programmer.
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
I must tell, I never programed in ethernet communications,
so WOOPS, I'm more a 3D and math programmer.

Which protocol is used? thats like chinees for me ??infratec wrote: to less informations![]()
Which protocol is used?
Which port is used?
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 ...
PS: sorry for my english I speak flemish ...
Re: ethernet IP connection with machine - help needed
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
) 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
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

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
Re: ethernet IP connection with machine - help needed
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
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
Re: ethernet IP connection with machine - help needed
Bernd,
thanks,
marc,
thanks,
marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
PS: sorry for my english I speak flemish ...
Re: ethernet IP connection with machine - help needed
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
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
Re: ethernet IP connection with machine - help needed
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,
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 ...
PS: sorry for my english I speak flemish ...
Re: ethernet IP connection with machine - help needed
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.
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.
Re: ethernet IP connection with machine - help needed
Not helpful,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.
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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: ethernet IP connection with machine - help needed
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,
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 ...
PS: sorry for my english I speak flemish ...