S7-1200 with Stepper Motor (motion control)

Grzesiuk

Member
Join Date
Dec 2018
Location
Ukraine
Posts
24
Hello specialists!
I am facing the problem with controlling the stepper motor. In this project I am using S7-1200 CPU 1214C DC/DC/DC (4 PTO outputs).
My motor driver is Leadshine M452 and my stepper motor is 2-phase.
The wiring diagram below shows how I connected my driver to PLC:
http://pl.tinypic.com/r/2ivh7it/9
According to documentation, this is a connection to PNP signal.
I have also configured hardware configuration (enable PTO output, Axis, Mechanics, everything that was included to Siemens manual and other tips). In FC I have checked Enable axis and there are no errors. However, the main problem is that the axis is not moving at all. When i go to Comissioning tool, I choose "acivate" and then, when "Enable" mode is available, I click "Enable", go to Jog function, click "Forward/Backward" and then i got message "Axis is not enable (general)". I've checked every pin connections, flow, it seems like everything is okay, but still there is something missing that I cant see. And I cant figure out what is wrong.
Could you please provide me with some tips, help, some conclusion? Thank you for any help!
 
You should be able to jog the axis in commissioning regardless of your "pin connections".
Have you downloaded the hardware configuration to your CPU? In device view right click on the CPU and from the context menu down load hardware configuration.
 
You have configured the hardware, did you download it? Then as it says that "Axis is not enable (general)", go to the Technology object folder and look at the names of the pulse outputs, do they match the Axis name you have used in MC_Power and and MC_MoveVelocity. Double click the Technology object and make sure that everything is set correctly, particularly with regards to names. In the extended section is an Enable Output that can be chosen.
 
Yes, I have downloaded the hardware as well as software. It seems like there is no "enable" feedback from driver. I am certain that connection is okay.
 
It seems like there is no "enable" feedback from driver.
That is why I am saying to check what the enable signal is set to. On the MC_Power or MC_MoveVelocity click on the Configuration button, in the Extended Parameters/Drive Signals what is 'Drive Ready' set to?
 
Yes, I have downloaded the hardware as well as software. It seems like there is no "enable" feedback from driver. I am certain that connection is okay.

What do you mean by connection?

To my knowledge all you need to do is setup and download the hardware and from the commissioning window you should be able to use the jog command and watch the outputs turn on. Whether you have hardware connected is not important. Regardless if your move commands in code and whether you enabled or not, in code, jogging the axis should be possible in the commissioning window.

I think it's time we see some screenshots of your errors, configuration and anything else you see relevant.
 
Hey, i found the problem. It was because of signal state of Ready Input in Drive Paramteres. I wrote there M bit, but it should be TRUE status all the time.
 
Hello specialists!
I am facing the problem with controlling the stepper motor. In this project I am using S7-1200 CPU 1214C DC/DC/DC (4 PTO outputs).
My motor driver is Leadshine M452 and my stepper motor is 2-phase.
The wiring diagram below shows how I connected my driver to PLC:
http://pl.tinypic.com/r/2ivh7it/9
According to documentation, this is a connection to PNP signal.
I have also configured hardware configuration (enable PTO output, Axis, Mechanics, everything that was included to Siemens manual and other tips). In FC I have checked Enable axis and there are no errors. However, the main problem is that the axis is not moving at all. When i go to Comissioning tool, I choose "acivate" and then, when "Enable" mode is available, I click "Enable", go to Jog function, click "Forward/Backward" and then i got message "Axis is not enable (general)". I've checked every pin connections, flow, it seems like everything is okay, but still there is something missing that I cant see. And I cant figure out what is wrong.
Could you please provide me with some tips, help, some conclusion? Thank you for any help!


hello how did you configured the axis? i did one for stepper motor but i am getting axis error and configuration error with error message "OK".I think the axis is setup correctly though.

Capture.JPG
 

Similar Topics

Hello all, I'm working with an s7-1200 and a stepper motor in Tia portal v17. This stepper motor is an SMD23E2 and I am attempting to connect...
Replies
19
Views
2,842
Hello all, I'm working on a project involving stepper motors that is currently utilizing Allen Bradley hardware/software, but I'm transitioning...
Replies
12
Views
3,118
Are there any modules available for the Micrologix 1200 that perform stepper motor control? Is there a standard protocol to use with normal...
Replies
3
Views
4,770
Hi, I've got a micrologix 1200 and I've written a stepper application following the sample application included with the AMCI 3102 stepper...
Replies
1
Views
5,090
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
2
Views
36
Back
Top Bottom