Write a user progra...
 
Notifications
Clear all

Write a user program that will display the velocity in real time

2 Posts
1 Users
0 Reactions
11.4 K Views
(@klimovitsky)
Posts: 7
Active Member Guest
Topic starter
 

Hello there,
I am using SM34440D with 415C compiler.

I tried to write a program that runs at a set acceleration and velocity. And I want to be able to print to the screen the current velocity. The motor runs in 90 or 18 degrees each time.

Ideally, I am looking to see if what I set it to be, is what actually happens.

Thank you

 
Posted : 29/11/2011 8:27 am
(@csearcy)
Posts: 316
Reputable Member Guest
 

Please try the following code..

ZS
A=10
V=10000
MP
WHILE 1
P=4000
G
TWAIT
P=0
G
TWAIT
LOOP
END

This program will go 1 rev and back forever. Go to the tools menu and open Chart View.
You can chart velocity and other parameters like position and position error.
If you right click on the chart, you can copy the data and paste it into Excel.

 
Posted : 29/11/2011 6:26 pm
Share: