![CS-Lab CSMIO-ENC User Manual Manual Download Page 6](http://html1.mh-extra.com/html/cs-lab/csmio-enc/csmio-enc_user-manual-manual_2692490006.webp)
www.cs-lab.eu
CS-Lab s.c. | CSMIO-ENC module for threading
6
3.
VisualBasic®
macro
use
3.1
GetInput
–
position (16 bit) and angle read out
With this command you can read position counter for each encoder inputs as well as the spindle angle
(encoder channel 0).
Syntax:
GetInput (
addr
)
Parameters:
addr
-
register addresses
(look at the table below)
Register no.
Description
84
Spindle angle multiplied
x10 (
range 0-
3600)
85
Encoder
channel 0
position counter
(spindle)
86
Encoder channel 1 position counter
87
Encoder channel 2 position counter
3.2
GetUserDRO
–
position read out
(32 bit)
With this command you can read position counter in
32bit
format
.
Syntex:
GetUserDRO (
addr
)
Parameters:
addr
-
register address (look at the table below)
Register no.
Description
1501
32 bit encoder channel 0 position counter
1502
32 bit encoder channel 1 position counter
1503
32 bit encoder channel 2 position counter