Welcome, Guest
Username Password: Remember me
Messages posted to this category need to be reviewed by the moderator before it gets posted.
  • Page:
  • 1

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 4 years, 10 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

Re: Write a user program that will display the velocity in real time 4 years, 10 months ago #360

  • csearcy
  • OFFLINE
  • Posts: 480
  • 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.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.83 seconds