Page 1 of 1
Modbus Slave
Posted: Fri May 05, 2017 8:13 am
by cedlgy
Dear sir i post the simple program that no reponse of the slave MODBUS component.
with modbus poll (i testing and validate the serial with the master modbus component its working correctly and µc it s ok )
Thank you for your colaboration to resolve this problem.
Best regards
C.Largy
Re: Modbus Slave
Posted: Fri May 05, 2017 6:48 pm
by cedlgy
I have allready tested in my first program and the probem is present with checkforincomming macro, i think the problem is at the adress number check.
My program is very simple for my test i want just read a holding at 40001 on my cpu.
Thank your for your help.
C.LARGY
Re: Modbus Slave
Posted: Sat May 06, 2017 2:32 pm
by medelec35
I have Moved both posts from
this topic
As you're hijacking someone else's topic & you're using Atmega and not PIC.
Martin
Re: Modbus Slave
Posted: Sat May 06, 2017 4:22 pm
by Steve001
Hi cedlgy
You are not calling the component macro "checkforincomming" on the Modbus component
there is an example here
http://www.matrixtsl.com/wikiv7/images/ ... mple1.fcfx
Modbus wiki here
http://www.matrixtsl.com/wikiv7/index.p ... orIncoming
Steve
Re: Modbus Slave
Posted: Sun May 07, 2017 4:01 pm
by cedlgy
medelec35 wrote:I have Moved both posts from
this topic
As you're hijacking someone else's topic & you're using Atmega and not PIC.
Martin
I am sorry my intention is not to pertub your post I just want to solve the problem with component modbus slave and the problem is common with tow family PIC and ATMEL
Best regards.
C.Largy