Modbus Examples?

More
08 May 2013 09:05 #33748 by Todd Zuercher
Replied by Todd Zuercher on topic Modbus Examples?
Using Classicladder I was finally able to control one drive.
I think I am still going to try to work up a configuration for Classicladder, and try to see how many drives I can make run with it.

If CL is limited to only 16 modbus communication instances then I will probably only be able to run half my drives with it and I will have to look to some other solution. (probably mb2hal).

Once I am done experimenting with CL I will try to post what I've learned somewhere, probably in the wiki.

Please Log in or Create an account to join the conversation.

More
08 May 2013 20:19 #33776 by BigJohnT
Replied by BigJohnT on topic Modbus Examples?
If you get some info/examples that should go in the manual let me know.

John

Please Log in or Create an account to join the conversation.

More
08 May 2013 21:48 #33784 by bigalex
Replied by bigalex on topic Modbus Examples?
Hi people.
I'm interested at mb2hal component too.
I've found the files into the git here .
But how to install the component into LCNC ?

bigalex :blink:

Please Log in or Create an account to join the conversation.

More
08 May 2013 22:40 #33788 by BigJohnT
Replied by BigJohnT on topic Modbus Examples?
That is part of master so you would need to install a git repo of master and either install or run as a RIP.

John

Please Log in or Create an account to join the conversation.

More
08 May 2013 23:03 #33789 by Todd Zuercher
Replied by Todd Zuercher on topic Modbus Examples?
Sorry but your going to have to walk a noob like me through this.
trying to follow what is in the wiki here
wiki.linuxcnc.org/cgi-bin/wiki.pl?ModbusToHal
I can't even get past the 1st step.
I open a terminal and type in the command and get this
pgd@pgd-desktop:~$ sudo apt-get install libmodbus3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package libmodbus3
pgd@pgd-desktop:~$
I am sure I'm leaving out some simple but very important steps that are not mentioned in the wiki.

Please Log in or Create an account to join the conversation.

More
08 May 2013 23:15 - 08 May 2013 23:20 #33790 by ArcEye
Replied by ArcEye on topic Modbus Examples?
You have to build it.
It is not a Ubuntu package

www.libmodbus.org/download/

(EDIT: or do git clone git://github.com/stephane/libmodbus)

Then just ./configure && make && make install

Builds fine on my system, albeit I have every development library known to man on here, so you may get some dependencies crop up from configure
Last edit: 08 May 2013 23:20 by ArcEye.

Please Log in or Create an account to join the conversation.

More
08 May 2013 23:30 - 08 May 2013 23:36 #33793 by Todd Zuercher
Replied by Todd Zuercher on topic Modbus Examples?
Where should I save it?

(Told you, I don't know what I'm doing)
Last edit: 08 May 2013 23:36 by Todd Zuercher.

Please Log in or Create an account to join the conversation.

More
08 May 2013 23:40 #33795 by ArcEye
Replied by ArcEye on topic Modbus Examples?
Either go to /usr/src and use the git pull line
or
download the zip (easier) and extract to /usr/src/libmodbus-3.0.3

Then cd /usr/src/libmodbus-3.0.3
./configure && make && make install

Please Log in or Create an account to join the conversation.

More
08 May 2013 23:49 #33796 by Todd Zuercher
Replied by Todd Zuercher on topic Modbus Examples?
Thanks,

that did something, but are these errors of any concern?

make all-recursive
make[1]: Entering directory `/usr/src/libmodbus-3.0.3'
Making all in src
make[2]: Entering directory `/usr/src/libmodbus-3.0.3/src'
CC modbus.lo
libtool: compile: Failed to create `.libs'
make[2]: *** [modbus.lo] Error 1
make[2]: Leaving directory `/usr/src/libmodbus-3.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/libmodbus-3.0.3'
make: *** [all] Error 2

Please Log in or Create an account to join the conversation.

More
09 May 2013 02:48 #33800 by Todd Zuercher
Replied by Todd Zuercher on topic Modbus Examples?
OK step 2 seemed to go ok,

step 3, I am getting stuck when I type make, it says "No such file or directory"

Please Log in or Create an account to join the conversation.

Time to create page: 0.402 seconds
Powered by Kunena Forum