Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use library #46

Open
hasan700 opened this issue Jun 24, 2019 · 3 comments
Open

How to use library #46

hasan700 opened this issue Jun 24, 2019 · 3 comments

Comments

@hasan700
Copy link

Hi
Thanks for your open source code. That’s very helpful.
I want to use Modbus/slave (ASCII and RTU) on STM32f103VET6. Actually, I’m new to ARM, and really confused. There is explanation in your code, but I don’t know how to implement the code. I should copy all of the code files to micro or just the files in “FreeModbus”? In main code of project, I should include all of the code files?
In my project, there are ten ADC inputs to micro. The micro should read them and save every ADC channel to one register separately. After that, all of the ten registers should be transmitted over Modbus protocol to PLC. So, in the Modbus code, where should I use registers for transmission?
Thank you very much…

@armink
Copy link
Owner

armink commented Jun 24, 2019

hi, this project base on STM32F103X MCU. It's has IAR and MDK IDE project. Please using the IDE project for development.

@hasan700
Copy link
Author

Hi.
Yes, I’m using MDK-ARM IDE for my project. I don’t know how to use this library in IDE. Should I use all of the files in this directory?

https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32

Or I should use the files in this directory?

https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32/tree/master/FreeModbus/modbus

And how to use the files?
Sorry, my question is very basic.

@armink
Copy link
Owner

armink commented Jun 24, 2019

Yes, This Modbus library is base on RT-Thread RTOS plantform. So I was suggest you can using all of project file by MDK-ARM IDE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants