Modbus Slave

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
cedlgy
Posts: 4
Joined: Mon May 01, 2017 7:59 pm
Contact:

Modbus Slave

Post 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
Attachments
testing with adress slave at 0 with 1 i have time out error
testing with adress slave at 0 with 1 i have time out error
pbmodbusslave.jpg (72.81 KiB) Viewed 4238 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.

cedlgy
Posts: 4
Joined: Mon May 01, 2017 7:59 pm
Contact:

Re: Modbus Slave

Post 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

medelec35
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

Post 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
Martin

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: Modbus Slave

Post 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
Attachments
Capture.JPG
Capture.JPG (51.3 KiB) Viewed 4230 times
Success always occurs in private and failure in full view.

cedlgy
Posts: 4
Joined: Mon May 01, 2017 7:59 pm
Contact:

Re: Modbus Slave

Post 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

Post Reply