Author Topic: Programming the CL57Y / CL86Y Closed Loop Stepper Driver via "USB" and Software  (Read 8644 times)

0 Members and 1 Guest are viewing this topic.

Offline hrsxTopic starter

  • Newbie
  • Posts: 7
  • Country: de
I'm doing a CNC conversion on a milling machine and got some steppers (https://www.omc-stepperonline.com/ye-series-1-axis-closed-loop-stepper-cnc-kit-2-0-nm-283-28oz-in-nema-23-motor-and-driver.html) from stepperonline that have an encoder. They are meant be used in a closed loop setup. The motors were bundled with a CL57Y driver that is meant for closed loop operation which I don't want to use that function since I have a LinuxCNC setup with a Mesa 5i25 that handles the encoder and PID. From the shop I used I couldn't get the motors with the open loop driver that I need for my application, so I went for it, assuming the driver could be used as open loop. I've seen some similar ones that could be configured like that with a DIP switch.

Well, with the CL57Y that is not the case. So I wanted to use the "USB" interface and the manufacturer software (https://www.omc-stepperonline.com/y-series-closed-loop-stepper-driver-0-7-0a-24-50vdc-for-nema-17-23-24-stepper-motor.html) to configure the driver to the open loop operation that I need. However, the device can't be recognized by Windows/Linux. After playing around with many Windows drivers I still had no luck.

Then I finally found a video on YouTube where someone purchased the "Handheld Intelligent Setting Unit for Closed Loop Driver" which I thought was only used for older drivers with RS232 interface. There was the final clue: They use a USB-B plug but it is still standard RS232  serial connected to it!!! Correct me if I'm wrong but to me that electronics design is an absolute no go!
You obviusly don't need a special "Handheld Intelligent Setting Unit" to connect the driver to a PC. I used the CH340 on my Arduino. Just Connect Reset to GND to keep the 328P from interfering and cut open a USB-B cable. Green (pin 3) -> TX, White (pin 2) -> RX and black (pin 4) -> GND. Now the COM port can be selected in the software and the driver connects. I set the "Run Mode" to 1 (open loop) --> Write --> Save EEPROM. Also, for some reason the DIP switch 3 "Servo Mode" has to be ON (Track Mode). Power cycle and it works perfectly.

I really want to get this information out there for the next one having problem connecting the driver. I'm guessing that the CL86Y and many other clones are very similar.

Now to the product itself: The stepper motors as well as the provided cables and plugs seem to be of good quality. The encoder are 1000 cpr quadrature encoders. So on (e.g. in LinuxCNC) that gives you 4000 counts per revolution which for most appliications is plenty.
The drivers are actually kind of cool as well. They have an input voltage range from 20 - 50 VDC and an output current of up to 5 A. That comes in a fooprint of only about 120 mm x 75 mm x 25 mm. There are lots of configurable parameters, but most are only accessible via the software. If you were to use the driver for closed loop operation, as problably most people will, there is no auto-tuning. You will probably have the use the software to change parameters.

Overall I'm still happy with the product, especially for that price!
 

Offline daffyduck66

  • Newbie
  • Posts: 1
  • Country: ca
Hi hrsx,

I have exactly the same issue.  I am trying to connect via USB cable to the software to program the stepper driver.  Were you able to connect to their supplied software?  Do you rewire a USB cable?  I think as I read your post you connected to Arduino but I would like to use their software.  Do you have any advice on how I can rewire a USB cable?

Many thanks.

Vielen dank von Kanada!

:-)
 

Offline MarkLiu

  • Newbie
  • !
  • Posts: 7
  • Country: cn
I also encountered a similar problem, and this is the answer I got:

1. Install the debugging software on the computer 2. Use Y-USB-CL to connect the drive to the computer and power on the drive 3.
Note: (1) There are 2 dip switches on Y-USB-CL for internal use in the factory, customers do not need to make any settings on Y-USB-CL.
(2) The debugging software cannot be programmed. The software has "Internal test mode" which can simply control the motor start/stop and change direction. The software is mainly used to modify the parameters.

The software provided by Stepperonline can only provide simple button selection and cannot be programmed.
 

Offline hrsxTopic starter

  • Newbie
  • Posts: 7
  • Country: de
Were you able to connect to their supplied software?  Do you rewire a USB cable?  I think as I read your post you connected to Arduino but I would like to use their software.  Do you have any advice on how I can rewire a USB cable?

I think my original post answers all of those questions but here are some direct answers (I guess better late than never).

  • Were you able to connect to their supplied software? - I was able to connect to the driver through their software ("Tuning Software" on here: https://www.omc-stepperonline.com/y-series-closed-loop-stepper-driver-0-7-0a-24-50vdc-for-nema-17-23-24-stepper-motor.html).
  • Do you rewire a USB cable?  - Yes
  • I think as I read your post you connected to Arduino but I would like to use their software. - I just used the CH340 chip on an Arduino board as a USB-to-RS232 converter, since it was the only one I had. It physically connects the PC to the driver. The PC is running the supplied software, which communicates with the driver. PC-USB -> Arduino -> Rewired USB cable -> Driver.
  • Do you have any advice on how I can rewire a USB cable? - Yes, it is Green (pin 3) -> TX, White (pin 2) -> RX and black (pin 4) -> GND.



I also encountered a similar problem, and this is the answer I got:

1. Install the debugging software on the computer 2. Use Y-USB-CL to connect the drive to the computer and power on the drive 3.
Note: (1) There are 2 dip switches on Y-USB-CL for internal use in the factory, customers do not need to make any settings on Y-USB-CL.
(2) The debugging software cannot be programmed. The software has "Internal test mode" which can simply control the motor start/stop and change direction. The software is mainly used to modify the parameters.

The software provided by Stepperonline can only provide simple button selection and cannot be programmed.

I find that a bit misleading. First of all it is correct that you are supposed to use their adapter Y-USB-CL for the CL57Y and the CL86Y (https://www.omc-stepperonline.com/handheld-intelligent-setting-unit-for-closed-loop-driver-y-usb-cl). I dont know if that might block any configuration options. With my setup using my own USB-RS232-USB adapter however, I had (write) access to all parameters and there are a lot. So you can "programm" the driver by changing parameters. As far as I can tell you can't upload your own firmware and programm it in that sense.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf