S7-1200 Stepper motor profinet not connecting

marko18

Member
Join Date
Nov 2021
Location
USA
Posts
47
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 this motor and an HMI to the s7-1200 with a profinet connection.

I downloaded a motor control program to the PLC but after loading it doesn't seem to be connecting or communicating with the motor at all.

I have the IP address for the motor in my project as 192.168.0.50, which is the default motor address and has not been changed, so I don't know why it isn't connecting. I currently have the PLC, HMI, and motor all plugged into an ethernet switch, with everything powered.

Under "Devices and Networks" I have a profinet connection running between the plc, motor, and hmi, and I have the proper gsdml files installed to recognize the motor. Is there something I'm forgetting to do?

Under Local Modules and Distributed I/O it says there is an error with a lower-level component, saying the smd23x2 is unreachable.

error2.PNG
 
Last edited:
On the Stepper Motor you have to load its Device Name.
Edit: "the smd23x2 is unreachable" means that the CPU cannot find the device with the configured name.

In the Devices and Networks .. Network View, right-click on the Stepper Motor (or maybe a controller card within the stepper motor), then select Assign device name in the menu that pops up.
A dialog will appear, and you can browse to reachable devices. The stepper motor should be there, maybe only with its MAC address (no IP) edit: Ok you have loaded the IP.
Select it and load the device name.
That should help.
 
Last edited:
Thank you Jesper. It doesn't appear the motor is a reachable device, only the PLC comes up in reachable devices. I don't know if it has something to do with the ethernet switch that I am using but everything is powered on and should be connected in the profinet network.
 
Can you ping the stepper motor ? (assuming it is already setup from the factory with the default address 192.168.0.50)
Are there lights on the port on the stepper motor ?
Are there lights green and yellow in the port on the switch connected to the stepper motor ?

Also try to connect only your laptop with the stepper motor with nothing in between.
 
Last edited:
I can ping the stepper motor from the manufacturer's motor configuration program.

The network status light on the stepper motor is flashing green which I believe means a connection is established.

The ethernet switch just has a green light on the port with the stepper motor connected.
 
In the TIA dialog for assigning the name, try to remove all the tick marks in "only show devices of the same type", "only show devices with bad parameter settings" and "only show devices without names".
And in this dialog, be sure that you have selected the correct ethernet port at "PG/PC Interface".

edit: And then you should also see the S7 CPU in the list of accessible devices. This will tell you if the problem is with the ethernet port in the PC.
 
Last edited:
I tried removing those tick marks, still only the PLC comes up. In the motor config program I can only change ip/subnet/gateway of motor and provide basic commands, not much else.
 
Never mind, I was able to ping it from cmd. So the device is communicating with the PC just not with the plc/siemens
 
I do not use S7 but I had a similar issue with AB devices and a power down and power up of the PLC fixed the issue. It did activate any network changes until rebooted.. Just a thought and easy to try.
 

Similar Topics

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,140
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,775
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
258
Back
Top Bottom