AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.5.14 CAMVM.POSITION
General Information
Type R/W
Description Contains the current value of the virtual encoder counter.
Units counts
Range 0 to (EXTENCODER.POSMODULO - 1)
Default
Value
0
Data Type Integer
Start Version M_01-06-00-000
Description
Control the virtual encoder using CAMVM.GOVEL and CAMVM.GOREL.
EXTENCODER.POSMODULO is used as the modulo value for CAMVM.POSITION.
Example
This example shows how CAMVM.POSITION is updated during a CAMVM.GOREL move.
CAMVM.FREQ = 10000
CAMVM.RELATIVEDIST = 100000
DRV.TIME = 0
EXTENCODER.POSMODULO = 200000
CAMVM.POSITION = 0
CAMVM.GOREL
While DRV.RUNTIME < 12
Print "DRV.TIME=" ; DRV.RUNTIME , "CAMVM.P-
OSITION=" ; CAMVM.POSITION , "CAMVM.MOVING=" ;
CAMVM.MOVING
Pause(1)
Wend
Related Topics
CAMVM.GOREL | CAMVM.GOVEL | CAMVM.MOVING
169 Kollmorgenâ„¢ | March 30, 2012