i started messing around with arduinos last year for an engineering project and I grew very interested in the world of arduinos. Now I am working as an intern, and once again I am working with arduinos.
I am trying to control a Festo stepper motor, and stepper driver, with an arduino micro-controller. I will also be using an Ethernet shield. I am new to stepper motors and communication protocols such as CanOpen, etc. The stepper controller communicated via Modbus TCP/IP. After research, I know that it is necessary to initialise the Modbus. I also know that I need to test it using qmodbus or similar. After this point, I am lost. How do I go about controlling the stepper using Modbus TCP/IP?
I don't know anything about Modbus but if you want to control a stepper motor then you need to send a message that contains relevant data such as the number of steps to move, the direction and the interval between steps (which defines the speed).
It is much easier to give useful advice if you describe the project you are going to create.
Hi Robin 2, I'm designing a control system for a life-cycle test rig for taps. This specific control system addresses the horizontal movement of the tap handle (temperature control of flow). Essentially a stepper motor will rotate the handle through at least 90% of its full range of motion, which is 100 degrees. Speed control is not ipmortant, however position control is imperative.
Hi Morgan.S, yes I have found a few. One specifically had a servo example, but I don't know how to transform it to a stepper version. I understand there is a stepper library. Do you know how I could combine these? Specifically how to work with Modbus registers and commands.
ambition:
Hi Robin 2, I'm designing a control system for a life-cycle test rig for taps. This specific control system addresses the horizontal movement of the tap handle (temperature control of flow). Essentially a stepper motor will rotate the handle through at least 90% of its full range of motion, which is 100 degrees. Speed control is not ipmortant, however position control is imperative.
That is entirely consistent with what I said in Reply #1
I understand that, I'm just not sure exactly what code i need to write in order to tell the driver that, using Modbus. I am not sure how to make the relation between the modbus registers and the commands.
Like I said, I know nothing about Modbus except that it is a system for sending data.
Decide what data you need as instructions for the stepper driver and then figure out how to get Modbus to send that - or ask for help getting Modbus to send a particular message.
ambition:
I understand that, I'm just not sure exactly what code i need to write in order to tell the driver that, using Modbus. I am not sure how to make the relation between the modbus registers and the commands.
And more to the point you did not tell us what you learned, whether anything you found was helpful, or whether there was some specific item that you did not understand and with which we may be able to help.
Remember, we know nothing about you, or your project, apart from what you tell us.