S7-1200 Stepper Motor home/jog program

marko18

Member
Join Date
Nov 2021
Location
USA
Posts
47
Hello all,

I'm working on a project involving stepper motors that is currently utilizing Allen Bradley hardware/software, but I'm transitioning the project to run on a Siemens s7-1200 and KTP400 Basic HMI. I am working in Tia Portal v17.

The stepper motors are from AMCI, no. SMD23E2-130E-M12

I've found some resources on the AMCI website including a library for the motor which contains a lot of different functions and some data blocks.

Link to motor resources/library (Siemens TIA Portal Sample Programs): https://www.amci.com/plc-automation...es-integrated-stepper-motor-controller-drive/

As someone who hasn't dealt with programming stepper motors before, how would I go about creating a program which is capable of homing the motors to a set position, and then being able to jog them clockwise/counterclockwise in between the home position and a limit position. I don't really care about any other motor functions at the moment, but I'm unsure of which functions I need to get this to work.

I've created a simple HMI screen with a home button, a clockwise jog, a counterclockwise jog, and an indicator for the stepper motor position. Ideally I'd only want the jog commands to work as the button is being held down.

Some of the functions in the library include enable/disable driver, jogCw, jogCcw, writedata, stopjog, and more, but I'm not sure which ones I need to include to create a working program. Research has suggested I can also control stepper motors directly with a Siemens PWM command but I'm also unsure how this would work in the program. Any help or literature is greatly appreciated
 
In the other thread in post #2 I posted a link to a manual describing how to control a generic stepper motor.

I've been investigating that guide and looking at making a program using Siemens' built-in motion control commands. What would be the difference between me using those Siemens commands (MC_Power, MC_MoveRelative, etc.) vs using the motor specific functions provided by the AMCI website?
 
Use their blocks from the library!
The control word etc probably won’t line up using MC blocks

Any idea on how to use these? There doesn't seem to be any documentation on their blocks and it's not exactly intuitive stuff
 
I downloaded the sample Basic Moves program from AMCI but I am unable to view/open any of the function or data blocks without a Step 7 Professional license? (I only have basic)
 
you open the library and paste in the blocks?
I have used an AMCI on profinet- easy to use
Use the library blocks
 
you open the library and paste in the blocks?
I have used an AMCI on profinet- easy to use
Use the library blocks

Ah okay, I can paste the blocks into a new project but I just can't use the sample project they gave.

I still don't really know what I'm doing and the documentation on these blocks is poor. I haven't programmed a stepper motor before so am unfamiliar with how to tie home, jog, etc commands to a button on HMI
 
Find this document ---

Got it, thanks. I've been reading through this but still don't understand how to actually program the thing. I understand the networking/profinet aspect but unsure of how to program the blocks
 

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,860
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...
Replies
8
Views
3,773
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,777
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,097
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
6
Views
257
Back
Top Bottom