tylorC (Customer) asked a question.

Unable to spin Stepper CCW using negative values for "JS" SCL command STP-DRV-80100

I am unable to get a STP-MTR-34066 to spin CCW using the "JS" SCL command using the STP-DRV-80100. once the motor is spinning clockwise I can send a negative value for "CS", and the motor will spin CCW, but i cannot send a negative value for "JS" to start jogging CCW. i have SCL selected as the Motion Control Mode in the SureMotion Pro software, using Step and Direction for the command mode, and pulse and direction as the digital signal type. my STP-DRV-80100 is using firmware revision 1.07G. I am using the SCL terminal built into the SureMotion Pro software for testing.

 

Does anybody have any idea what the problem could be? all documentation and examples that I have seen indicate that sending a negative value for "JS" should set the direction to CCW.


  • tylorC (Customer)

    I have read that, but some backstory:

     

    I was testing a program using the on board RS 232 port of a C2-01CPU-2 to communicate with the STP-DRV-80100. in my program, I was able to use a negative value for "JS" to spin the stepper CCW. (when one button was pushed, it spun CW, when a different button was pushed, it spun CCW). Unfortunately, when my project is implemented I will need to use a C2-DCM module to handle rs 232 communication. I had alot of issues getting this set up, and I ended up needing to update the firmware for both the C2-01CPU-2 and the C2-DCM module. Unfortunately during the troubleshooting for that issue, I tried many different things, and I am unsure if anything I changed caused the issue I am currently seeing.

     

    Because I am seeing the issue directly from the SCL terminal in the SureMotion Pro software, Its easy to determine that the issue is not with my PLC program. I am just curious if I accidentally changed something in the driver setup that is causing this. if not, what is the most reliable way to start the motor jogging in a counter-clockwise motion? setting the jog speed to zero and then sending a "CS" command with a negative value to change it to counter clockwise seems counter intuitive to me.

    Expand Post
  • ADC Community_02 (Automationdirect.com)

    Take a look at CJ (commence jogging page 34) with the CS (Change Speed page 38) commands.

     

    CS – Change Speed Sets or requests the jog speed in rev/sec while jogging. When Jogging using the CJ command the jog speed can be changed dynamically by using this command. The value of CS can be positive or negative allowing the direction of jogging to be changed also. Ramping between speeds while jogging is controlled by the JA and JL commands. 

    Expand Post
  • tylorC (Customer)

    I'm starting to think that when I originally got this to work, I had accidentally wrote my logic wrong, and it just so happened to work the way I wanted it to. So from what you are saying, there is no way to set the jog direction CCW before any motion begins while using the CJ command? I am experimenting with attempting to set the jog speed to 0.0042, sending the CJ command, and then using the success of that sent command to send the CS command with a negative value, but so far it doesn't seem to be working.

    Expand Post
  • tylorC (Customer)

    Hey all,

     

    thanks for your replies, Talking to someone other than yourself can really help. I realized that I had been looking at the function of JS, CS, and CJ all wrong. It finally clicked that JS is global, and the CS command modifies that value whenever the CJ command is sent, rather than the JS command needing to be sent every time you send the CJ command.