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
Modbus Slave
Moderator: Benj
Modbus Slave
- Attachments
-
- testing with adress slave at 0 with 1 i have time out error
- pbmodbusslave.jpg (72.81 KiB) Viewed 4232 times
-
- Flowcode1.fcfx
- (11.25 KiB) Downloaded 247 times
Last edited by cedlgy on Fri May 05, 2017 7:29 pm, edited 1 time in total.
Re: Modbus Slave
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
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
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Modbus Slave
I have Moved both posts from this topic
As you're hijacking someone else's topic & you're using Atmega and not PIC.
Martin
As you're hijacking someone else's topic & you're using Atmega and not PIC.
Martin
Martin
- Steve001
- Valued Contributor
- Posts: 1189
- Joined: Wed Dec 31, 2008 3:37 pm
- Has thanked: 460 times
- Been thanked: 523 times
- Contact:
Re: Modbus Slave
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
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
- Attachments
-
- Capture.JPG (51.3 KiB) Viewed 4224 times
Success always occurs in private and failure in full view.
Re: Modbus Slave
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 ATMELmedelec35 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
Best regards.
C.Largy