Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: help with program

help with program 1 year, 7 months ago #1737

  • boswell
  • OFFLINE
  • Posts: 1
  • Karma: 0
Hi, Its been a few years since I have used these motors but I now have an application which I need some help with. My motor SM23405D
What I need is for the motor to

Input A on
move from 0 to 900
wait for 2 seconds
then move onto some amp value thus applying a clamp force
wait at that amp value for 2 sec
return to 0

Ramps and speed I can play with when I get this working.
Any help much appreciated.

Clive

Re: help with program 1 year, 7 months ago #1738

  • csearcy
  • OFFLINE
  • Posts: 480
  • Karma: 23
'Assuming No over travel switches are wired..
EIGN(0) 'Input for run
EIGN(2)
EIGN(3)
ZS 'Clear Errors
GOSUB(10) 'Run a homing routine
WHILE 1
WHILE IN(0)==1 LOOP
ADT=1000
VT=100000
PT=900
G
TWAIT
WAIT=2000 'Wait 2 seconds
AMPS=500 'Cut output power to 50%
PT=1500 'Move to force position
G
WAIT=2000 'Wait 2 seconds
PT=0
G
TWAIT
WHILE IN(0)==0 LOOP
LOOP
END

C10 'Homing Routine
'Some homing code here
RETURN
Last Edit: 1 year, 7 months ago by csearcy.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.38 seconds