From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Control P7000 through serial port

Solved!
Go to solution

I just found out that there is no module for the 9178 chassis to interface with the P7000 drive. Can we use the serial port on the P7000 to control directly from Labview? What would be the easiest way to control it? Using P7000 tools we can operate the stepper all day long.

0 Kudos
Message 1 of 7
(7,942 Views)

Galanm,

 

While the P7000 stepper drives do have a serial port, this is only used to configure the drive. You cannot issue serial commands to the drive that will move the motor. The P7000 Tools are also used for configuration purposes, and not for actual programming. 

 

As far as what is the best or easiest way to control your drive will depend on what kind of system you want to have. I would suggest that you read through the following two articles that describe the process and considerations for selecting desired your motion system.

 

 

[1] Motion System Selection Guide

[2] NI Stepper Motion System Selection Guide 

Huntington W
National Instruments
Applications Engineer

***Don't forget to give Kudos and Accepted as Solution where it is deserved***
0 Kudos
Message 2 of 7
(7,915 Views)
Solution
Accepted by topic author galanm

Thank you for your response. Using portmon we were able to determine the commands used through P7000 tools. We have since incorporated modbus code into the labview code and are able to control speed and direction through the serial interface. I hope this fix may help others in the future.

Message 3 of 7
(7,913 Views)

Hi Galanm,

Understand that you managed to control the motor drives through the serial port.

Is it possiblie to share the coding? I trying to communicate the motor drives P70530 series through serial.

Would like to perform a jog at a certain speed and stop the motor.

 

Regards,

Jeffrey Wong

0 Kudos
Message 4 of 7
(7,578 Views)

Galanm,

 

                   Im trying to achive the same thing but my computer is running Windows 7 so I cannot use portmon.

Im using "advance serial monitor.exe" and, before jogging and after jogging, I get the same strings:

 

<SOH><ETX><NUL> [len=2]
<20131106171410.689 TX>
b<NUL> [len=1]
<20131106171410.689 TX>
<SOH>Ô%
<20131106171410.700 TX>
<SOH><ETX><NUL> [len=2]
<20131106171410.700 TX>
g<NUL> [len=1]
<20131106171410.700 TX>
<SOH>Õ5
<20131106171410.711 TX>
<SOH><ETX><NUL> [len=2]
<20131106171410.711 TX>
<DLE><NUL> [len=1]
<20131106171410.711 TX>
<STX>ÎÅ
<20131106171410.889 TX>
<SOH><ETX><NUL> [len=2]
<20131106171410.889 TX>
b<NUL> [len=1]
<20131106171410.889 TX>

 

Can you help me a little with this. ( sharing your commands would be very appreciated)

 

 

Thanks

 

Erwin Franz

0 Kudos
Message 5 of 7
(7,261 Views)

Problem solved.

                             I could  jog the motor   through modbus RTU with the Modbus library for Labview.

I deployed it to  a crio 9073  using the serial VIs .

The modbus holding registers to jog are index  22-23 ( double word where  the first bits represent the sign).

 

To do more complex stepping I suggest the p7000 modbus application note.

 

 

 

hope this helps someone else,

 

regards,

 

 

Erwin Franz

Erlab México.

0 Kudos
Message 6 of 7
(7,215 Views)

Hi ErwinFranz,

 

I am trying to control a P7000 via Labview MODBUS. I can jog the motor with the serial port and using the P7000 tool provided by Kollmorgen. Could you share a VI where you were able to jog a motor using LabVIEW MODBUS? Thanks.

0 Kudos
Message 7 of 7
(3,479 Views)