INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Arduino to Motor Controller Communication

Arduino to Motor Controller Communication

(OP)
Hello all,

I need to communicate orders to an “SMC – LECP6 Step Motor Controller” from an Arduino Uno board.
From what I’ve managed to understand from the internet I need to use a PLC and Modbus (Arduino -> Modbus -> PLC -> motor controller, I think this is the correct order).

Is there another way to achieve this?

The controller uses Parallel I/O 26 pin connector (11 in and COM, 13 out and COM).

RE: Arduino to Motor Controller Communication

"Is there another way to achieve this?"

Yes. More directly.

https://www.arduino.cc/en/Reference/Stepper

If you're just starting out, then follow the guidance exactly. Once it's up and running, then it's easy to modify it, and to go above and beyond (e.g. much higher power).

--

http://www.smcusa.com/products/LECP6-Step-Motor-Co...

"...Data entry requires laptop software or a teaching pendant. ...Configuration software required (sold separately)"

Doesn't sound Arduino-friendly.

RE: Arduino to Motor Controller Communication

(OP)
Great suggestions, thanks!

But I have a basic knowledge on how to wire and use a stepper motor using Arduino but this time I need to operate a rodless actuator (single axis robot).
I can’t and don’t want to mess with the wiring of the robot, it has to be wired through the motor controller I mentioned at the start of the post.

From what I've managed to figure out is that I can use something called API library (some sort of conversion of the signal) but I'm having trouble to figure it out further, and found something called Controllino, which is an Arduino based PLC. Before finding this PLC I wanted to eliminate the use of one as they are very expensive and usually not very (new) user friendly in terms of programing.

RE: Arduino to Motor Controller Communication

You use an API to control the 3rd party software/hardware with something like C# or VB.net and it has built in functions and classes. What are you doing with the actuator? What is the feedback? Changing the wiring and understanding it is part of the problem/solution. I would use the cheap motor shield and get it to do what you want with the Arduino functions/library. That Arduino C is pretty powerful and you can bring custom/outside header files (Is this the API you speak of?) into it to really do almost anything.

RE: Arduino to Motor Controller Communication

It would be advisable to look at the user manual for your controller:
https://www.smcpneumatics.com/pdfs_smc_instruction...

There appear to be two methods of control: via serial command or via a "parallel" interface. with the Arduino I would advise using the parallel interface using the GPIO interface of the Arduino.

In any case the PC is necessary to program the controller.

RE: Arduino to Motor Controller Communication

API stands for "application programming interface," which would allow supported programming languages to access the desired functionality from a user-written programs.

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: Arduino to Motor Controller Communication

"In any case the PC is necessary to program the controller."

A PC will also be necessary (at least typically) to program the Arduino. smile


RE: Arduino to Motor Controller Communication

(OP)
Well for those who think/have a feel that this is a bit "hobbyish", I’m so very glad that wherever you work at you have entire departments with experts in every field possible at your disposal.
Unfortunately for me, I don’t have this privilege and sometimes in the real world when someone is working on developing something, once in a while, pops up a topic that this individual or the team has no knowledge of and this topic need to be learned in a sufficient way but without delving too deep because of deadlines.

So if you don’t have something productive or educating to add, please feel free to have a laugh on someone else’s expense.

And on that positive note, I’ll try to clarify about what I’m trying to do.
I need the actuator to make oscillating movements, the amplitude and frequency are dependent on other parameters of systems that work in parallel to the actuator.
We have a working prototype that needs to be upgraded to more industrial and robust components (but still will be in the prototype phase), that means that we have the code for it (with proper adjustments for the actuator step motor of the actuator) and for now the controller (two parallel Arduino Uno) isn’t on the list to be upgraded, so I need to figure a way to relay the signal from the Arduino to the actuator through the controller I’ve mentioned at the start of the thread.

I've managed to find a PLC (Controllino MAXI) that is based on Arduino's open source software, probably this will solve the problem but for the worst case scenario I still want to figure out how to connect the Arduino to the actuators controller.

RE: Arduino to Motor Controller Communication

Spent half of my career making things work in areas where "entire departments of experts" didn't exist, so let me knock that high horse down now. The hobbyist comment came about because it sounded like just that... a hobbyist (which we get here all of the time) trying to throw together a kludge-like Rube Goldberg machine. Perhaps if we knew what the intended application was from the beginning we could suggest a more appropriate path. In essence, we ARE that department of experts you desire, but we can only give advice based upon what you tell us.

Dan - Owner
http://www.Hi-TecDesigns.com

RE: Arduino to Motor Controller Communication

Like I said - scrap the “SMC – LECP6 Step Motor Controller” and get a cheap motor controller shield like the:
http://www.robotshop.com/en/arduino-compatible-meg...
- it will be much easier and thern figure out with a multimeter which wires to hook up to where...

RE: Arduino to Motor Controller Communication

(OP)
I wouldn’t want to scrap the SMC controller as it’s paired with the actuator and I want to avoid doing makeshift connections.
Anyway, I think I found a solution in the form of Androind powered PLC (Controllino).

Any thoughts about the PLC?

RE: Arduino to Motor Controller Communication

I wouldn't reinvent the wheel. The PLC looks like its a beta and its not very cheap. You could get an AD Click or Unitronics Samba for that kind of money and have actual development capabilities, tech support, HMI, ladder etc.

Wiring doesn't look that difficult and once you understand it everything is cheaper see:

https://create.arduino.cc/projecthub/robotgeek-pro...

RE: Arduino to Motor Controller Communication

(OP)

Quote (UniCO2)

You could get an AD Click or Unitronics Samba for that kind of money and have actual development capabilities, tech support, HMI, ladder etc.
Now the Samba PLC got me excited!
However, for now the Controllino PLC works best as I don’t have to convert the Arduino code and can just leave it as is.
The Samba looks like a great solution for later iterations of the system upgrade process, but I’m a bit skeptical that the Samba goes for the same price range as the Controllino MAXI.

RE: Arduino to Motor Controller Communication

We do medium volume with our distributor so we get good prices. Shop around. If you paid what your link lists as 195 euros for the Controllino, I just bought a SM35-J-R20 for less.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close