Welcome, Guest
Messages posted to this category need to be reviewed by the moderator before it gets posted.

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

Write a user program that will display the velocity in real time 6 years 9 months ago #357

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
The administrator has disabled public write access.

Re: Write a user program that will display the velocity in real time 6 years 9 months ago #360

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
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.
The administrator has disabled public write access.
Moderators: hsummer, csearcy, swalters, mmeyers
Time to create page: 0.227 seconds
Powered by Kunena Forum