regarding libmodbus-0.0.1

Asked by Akbar

Hi,
Iam currently working on modbus that communicates between PLC and BPU..i downloaded the software libmodbus-0.0.1 but it is not reading the data from BPU while the data is stored in a particular address in the BPU..
i have given the right address but still it is not communicating.i was wondering may be libmodbus-0.0.1 does not have the features for RS-485 while the software is ok with RS232 i checked it, it is working fine with RS232...
i just want a simple modbus software that communicate through RS-485. can you suggest me which version is going to be good for me..I appreciated

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
libmodbus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stéphane Raimbault (sra) said :
#1

The latest version of libmodbus is 1.2.4 and I never released the 0.0.1 one.
I never tested libmodbus with RS-485 because I don't have the hardware, there is certainly available documentation on the subject on the Web...

Anyone has tried?

Revision history for this message
Stéphane Raimbault (sra) said :
#2

Ooops, the latest is 2.0.2!

Revision history for this message
Todd Denniston (todd-denniston) said :
#3

Stéphane Raimbault wrote:
> The latest version of libmodbus is 1.2.4 and I never released the 0.0.1 one.

Akbar, You are getting your source from one of the release links on
https://launchpad.net/libmodbus
right?

> I never tested libmodbus with RS-485 because I don't have the hardware, there is certainly available documentation on the subject on the Web...
>
> Anyone has tried?
>

No, but considering http://en.wikipedia.org/wiki/EIA-485 claims it to be a serial bus, then as long as the 485 equipment in use presents itself to the OS's user space as a serial interface, it should work as any other serial link with libmodbus. I am not sure if the user space serial controls might limit the coms to 115kbps vs the 35Mbps wikipedia lists as max for 485.

Revision history for this message
Akbar (akbar-2667) said :
#4

Thanks for your help!!
I downloaded the latest version now from https://launchpad.net/libmodbus that is 2.0.2
now i want to test the hardware to make sure that it is reading from my hardware..it was wondering is there any example programs that i can test in RTU mode over serial communication(RS485).
i see a unit-test-msater.c iam not sure that i can use to test my hardware for serial .

Thanks
!!

Revision history for this message
Akbar (akbar-2667) said :
#5

i was wondering as iam testing in RTU mode .do i have to uncomment thefunction modbus_init_rtu and comment the modbus_init_tcp in example programs
random-test-master.c
unit-test-master.c

i just have one address 0*04,i was wondering about ADDRESS_START and ADDRESS_END

i was wondering where i have to give the read function address(0*03)

Iam sorry if i ask too many qestions at one time

Thanks

Revision history for this message
Akbar (akbar-2667) said :
#6

after intalling iam trying to run the example program random-test-slave.c
but it gives me the error pkg-confiq command not found
at the time of insallation when i run ./configure it displays something like
> checking for g77... no
> checking for f77... no
> checking for xlf... no
> checking for frt... no
> checking for pgf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for f90... no
> checking for xlf90... no
> checking for pgf90... no
> checking for epcf90... no
> checking for f95... no
> checking for fort... no
> checking for xlf95... no
> checking for ifc... no
> checking for efc... no
> checking for pgf95... no
> checking for lf95... no
>checking whether we are using the GNU Fortan 77 compiler... no

i was wondering is this could be the problem

Thanks

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Stéphane Raimbault (sra) said :
#8

To compile a program you need to install the required development environment (gcc, devel lib and so on)!

Can you help with this problem?

Provide an answer of your own, or ask Akbar for more information if necessary.

To post a message you must log in.