Hello Guest it is April 19, 2024, 12:15:39 AM

Author Topic: G code problem  (Read 1684 times)

0 Members and 1 Guest are viewing this topic.

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