Hello Leo! My name is Junior, I would like to know if it is possible to create a program in Ladder language on Codesys and convert it to Arduino language, is this possible? How did you do it in your video?
@ಠಿ_ಠ-ತ7ಭАй бұрын
the fact that the pc still is the plc master, wouldnt it better to use io tcp slave like moxa anyway right.
@lazaro7lakes7504 жыл бұрын
Excellent video! Very enlightening! Simple and straightforward explanation.
@leonunes87204 жыл бұрын
Thank you so much for your feedback, really appreciate it!
@kenneth45753 жыл бұрын
I'm having trouble using my Arduino UNO: the modbus slave status is ''bus failure'' how do I fix this?
@leonunes87203 жыл бұрын
Hi Kenneth! That problem occours everytime that something is wrong with the modbus communication. That means there is some problem either with your connections (less common) or with your setup (most common issue). My first thought would be to make sure that the programm you are running on the Arduino is properly configured. Once you have done this and if the problem continue to persist I would have a look into the slave's configurations inside the codesys. You have to determine a adress based on the function code you are using on your modbus communication (It have to be supported by your library - There is some libraries out there that doesn't support all function codes) and you have to use the right Read offset for your inputs (dependant on the way you have programmed your Arduino device). After all that troubleshooting if you still have some issue, let me know.
@omarzedan12613 жыл бұрын
Hi Leo the MODBUS object in device tree is unavailable how can I insert it????
@omarzedan12613 жыл бұрын
I find it from device right click select add device thank you.
@leonunes87203 жыл бұрын
Hi! I'm Glad you found. if you need anything just let me know!
@omarzedan12613 жыл бұрын
@@leonunes8720 Hi Leo I try to connect to uno device via modbut rtu but the log in need user name and password what can I do to solve this issue (I use Administrator in user name and password but It is not correct)?
@leonunes87203 жыл бұрын
@@omarzedan1261 Normally you don't need credentials to connect to your modbus device. There is though a couple of things you can check out to make sure your workflow is ok. First you can check if your device is properly connected and configured on the modbus (things like port, stop bit, etc.). Make sure the gateway is up and running. Look if your control win V3 service (dependant on the OS and the device you're connecting) is up and running. And last but not least, you need to have a proper program (that suports modbus communication) running on the Arduino to connect. With all that out of the way you can try again. It should not ask for credentials at this point. If you have any troubles, just let me know.
@omarzedan12613 жыл бұрын
@@leonunes8720 Dear Leo 1- I use opctechs software (it is a free OPC server ) to connect with my Uno device via Modbus RTU and set the parameters (baud rate, parity stop bit, com port number, and slave address) correctly and the test pass. This means Uno IED program and communication parameters are good. 2- I am sure that codesys gateway sys try-64 (running) 3- I am sure Codesys control Win sys try-x64 is started (64 is red) but when I scan the device there is no Uno appears What can I do ? shall I add some libraries? Thanks in advance.
@2011JESUSBELEN4 жыл бұрын
Leo, cómo vc conseguiu conectar Arduino ao codesys
@leonunes87203 жыл бұрын
With Modbus RTU Communication (Master/Slave) & Codesys Control Win V3. help.codesys.com/webapp/_mod_f_configurator;product=core_Modbus_Configuration_Editor;version=3.5.14.0 (link to some documentation about Modbus RTU) and store.codesys.com/codesys.html (Codesys V3 - it is free). Com comunicação Modbus RTU (Master / Slave) e Codesys Control Win V3. help.codesys.com/webapp/_mod_f_configurator;product=core_Modbus_Configuration_Editor;version=3.5.14.0 (link para alguma documentação sobre Modbus RTU) e store.codesys.com/codesys.html (Codesys V3 - é de graça).
@arduinosantacruzbolivia46012 жыл бұрын
Podrias hacer un video explicando la comunicacion modbus rtu gracias
@CaMo200sx3 жыл бұрын
Modbus RTU I assume. Does it auto reconnect when disconnected? I have a similar setup but codesys on raspberry pi usinf modbus RTU to nano. Can't get it to reconnect no matter what :(
@leonunes87203 жыл бұрын
Hello Cam__D! Yes it is RTU and yes it does reconnect with no problem. Try to clean the build on your device and rebuild it and see if it works. Sometimes dependant on the way you configured your system it can bring some troubles to reconnect. If with the cleaning process does not work for you lemme know, maybe we can see a different solution for you.
@gabrielmacedo46934 жыл бұрын
That’s some good stuff!!!
@leonunes87204 жыл бұрын
Thanks for your support! We have more stuff coming soon... ;)
@Time4yes2 жыл бұрын
Can we please have your arduino code, or do a video on how to establish the communication.