AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.5.8 CAMVM.DIR
General Information
Type R/W
Description
Specifies the direction the virtual encoder goes when CAMVM.GOVEL is
executed.
Units None
Range 0, 1
Default
Value
0
Data Type Integer
Start Ver-
sion
M_01-06-00-000
Description
CAMVM.DIR specifies the direction the virtual encoder goes when CAMVM.GOVEL is
executed. It also sets the direction of the virtual encoder when CAMVM.GOUPDATE is
executed if the virtual encoder is performing a CAMVM.GOVEL move.
0 is positive
1 is negative
Example
‘This runs the virtual encoder forward at
20,000 counts/sec
CAMVM.FREQ = 20000
CAMVM.DIR = 0
CAMVM.GOVEL
pause(5)
'This runs the virtual encoder backwards at
40,000 counts/sec
CAMVM.FREQ = 40000
CAMVM.DIR = 1
CAMVM.GOVEL
Related Topics
CAMVM.GOVEL
163 Kollmorgenâ„¢ | March 30, 2012