maurizio
how to import plcopen libreriemotion control into openplc
Reply 1 0
JFA
What kind of motion control are you thinking of doing ?

Many drivers relys only on a PWM signal which is somewhat simple to setup in the open plc editor. Maybe a PID block to command a dutycycle is what you need?

I'm also interested in looking into the above, controlling several BLDC/ESC.
Reply 0 0
RaynoP
@JFA I think he is referring to the NC-Motion set of libraries which allows you to control real-time servo and stepper drives. But for these I believe you need pretty powerful kit and currently there is no "direct way" of doing this.
 
You can always pull in a raw C++ file set and there is a threat on how to make your own libraries, but you need to understand the inner workings of both the hardware you intend to run on and how OpenPLC is put together. It is not impossible, you just need to ensure you don't forget something.
 
BLDC/ESC is more for high torque or speed motor control like on drones or RC planes (or spindle of CNC machine). Servo or stepper is more for the control of the axes' of motion, aka CNC machines, XY plotters, cutting table moving for lathes etc.
 
When it comes to motion control, you typically have multiple controllers working in unison to keep the costs of the kit down and to meet safety and speed requirements.
 
Kind regards,
RaynoP
------------------------------------------------------------
If you forever think inside the box...
You will never live outside of it.
 
Red pill or blue pill Neo? All I offer is the truth.
Follow the white rabbit.
Reply 0 0
Reply