Connecting A schneider M340 to a Arduino mega 2560

Bonjour,

J'aimerais savoir dans un premier temps si c'est possible d'utiliser une carte Arduino comme carte d'entrée sortie pour un automate Schneider par exemple? Ce serai pour faire un petit band d'essai car les capteurs Arduino ne sont pas chère. Si oui, comment faire une COM Modbus avec un Arduino en tant qu'esclave ?

Merci d'avance

Bonjour,

Est ce qu'on parle de modbus RTU (RS485) ou TCP/IP?
Si c'est modbus RTU, il te faut une interface RS485 et il existe des librairies pour gérer le protocole modbus.
Pour le modbus TCP/IP il te faut une carte ethernet et il existe aussi des librairies pour gérer le protocole.

un des deux me va très bien et je peux me servir de la carte arduino comme esclave ?

Oui, c'est plus simple à gérer que le mode master.
Je te conseille la librairie SimpleModbusSlave, simple d'utilisation.

Super merci beaucoup !

Bonjour,

Je suis interesre par la facon de faire la com aussi, entre un M340 et un Arduino, en Modbus TCP/IP?
Tu pourrais montrer ce que tu as reussi a faire?

Merci.

Hello Everyone,

I would like to get some help to establish a connection between a M340 and a Arduino mega 2560, using a Ethernet shield.
At this point I dont know much about arduino programming, librairies and coding...
Basicaly i want to use the M340 as a master, Arduino being the slave to control a stepper motor.

Any help?

Thank you.

2 duplicate topics merged and a third one deleted

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a timeout from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Schneider M340 to arduino using Modbus-TCP? Is it a single stepper motor or more than one? How many parameters on the stepper do you need to control apart from (I assume) position?

It is a single stepper motor, I need to control the pulse clock wise and the pulse counter clock wise.

Since you say you don't know anything about arduino, does that mean that the developer would have to build the complete system, i.e., arduino, motor drive, motor control, etc? Is there any particular reason for using an arduino as opposed to, e.g., an AMC motor controller that accepts MODBUS out of the box?

No in fact the M340 part is done, I know how to control the motor with Arduino already. I just don’t know which libraries I have tu use, to be able to send the pulse. I used an output card on the M340 directly on the stepper (thru a controller) but the signal is not clear and I’m losing pulse along the way.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.