Goodwin Electronics   ISO9001  

Motion Control Links


Powertalk Language Reference

COMMANDS  
MOVE(AXIS,VALUE) move the selected axis to the position specified by VALUE
VECTOR(VA1,VA2) move the X and Y axes vectorially to the positions specified by VA1 and VA2 values
ARC(DIR,VA1,VA2,VA3) move the X and Y axes from the current position to the X and Y co-ordinates specified by VA1 and VA2 in the direction specified by DIR. The motion will be in an arc whose radius is specified by VA
CIR(DIR,VA1,VA2) move the X and Y axes from the current position in a circle whose centre point co-ordinates specified by VA1 and VA2 in the direction specified by DIR. The end point of the move will be the same position as the start point
ANG(AXIS,REV,VA1) an absolute move which causes the selected axis to rotate to the position specified by REV and then to angle specified by VA1. The direction of motion is automatically set to move to target by the shortest possible route
   
MOTION(AXIS,TYPE) all subsequent moves of the specified axis will be either incremental or absolute depending on the option chosen. This option can be changed at any time by inserting another MOTION command in the program
WAIT(INPUT #) The program will stop at the point at which the command is inserted and will remain stopped until the INPUT # is asse
DWELL(VA1) The program will stop at the point at which the command is inserted and will remain stopped for the duration of VA1 (secs)
   
OUT(OUTPUT#,STATE) causes the output specified by OUTPUT # to be set to the state specified in STATE
PLS(OUT#,AX,VA1,VA2) causes the output specified by OUTPUT # to be asserted when the position of the axis specified in AX is greater than the position specified in VA1 and less than that specified in VA2 provided that ENABLE is set to ON.
At all other positional values the output specified is de-asserted.
DAC(AXIS,VA1) causes the analogue output of the axis specified by AXIS to be set to the voltage specified in VA1.
INPUT(INPUT#.INT) the state of the input specified by INPUT # is copied to the internal integer variable specified by INT
   
GET_POS (AXIS,FLOAT) place the current position of the axis specified by AXIS into the floating point variable specified by FL
GET_TIME(FLOAT) place the current time into the floating point variable specified by FLOAT
   
LOOP(VA1)…END_LOOP used to repeat a section of program the number of times specified in VA1
DO…DO_WHILE (INT) used to repeat a section of program until the INT becomes FALSE.
   
MATH COMMANDS E.G.  
ADD (VAR1,VAR2,VAR3) add the variables specified by VAR1 and VAR2. Result into variable specified by VAR3
MULT(VAR1,VAR2,VAR3) multiply the variables specified by VAR1 and VAR2. Result into variable specified by VAR3
   
front end window Customised main window display
   
FEED(AXIS,VA1) move the selected axis at the feed rate specified by VA1
   
IF(INT)…ELSE…
…END_IF
if the value of the variable specified by INT is true the code between the IF and ELSE line is executed ELSE execute the code between the ELSE and END_IF line is executed
   
CALL(NAME) Used to call a subroutine specified by NAME, from the point in the program at which the instruction is inserted. Calls must be to subroutines that exist.
SUBROUTINE(NAME) A subroutine that is identified by its NAME. A maximum of 9 nested subroutine calls are permitted.
   

For more information

Tel: 0151 33 44 555 
Fax: 0151 334 1616 
Email: sales@goodwinelectronics.com

See also