Hello Guest it is April 28, 2024, 03:46:02 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - toneytf

Pages: 1
1
G-Code, CAD, and CAM discussions / G code problem
« on: December 12, 2014, 03:00:22 AM »
Hi,
I use Aerotech A3200 software to control a stepper motor connected via USB port, the motor is controlled with an setp.exe file whose syntax is
setp <COM port> <Offset> <percentage>
I use the following command and it works fine
setp COM4 0 10 ;

But i need the percentage value as a varible, So that i could change the $percent value by looping, Something like this

DVAR $percent
$percent = 10
WHILE ()
setp COM4 0 $percent ;
$percent = $percent +1
ENDWHILE


This gives an error saying the last argument of the setp syntax is not valid.

Is there a solution ?
Thanks in advance

Pages: 1