Scanlab RTC 5 PC Interface Board Installation And Operation Manual page 385

Table of Contents

Advertisement

Ctrl Command read_analog_in
Function
reads the analog input values (ANALOG IN0 and ANALOG IN1) from the
®
(RTC
5 PC interface board's) optional ADC add-on board or from the RTC
board's "SPI / I2C" connector and returns them as 12-bit digital values.
Call
AnalogValue = read_analog_in()
Result
an unsigned 32-bit value:
Bits#0...11
Bit#12
Bits#13...14
Bit#15
Bits#16...27
Bit#28
Bits#29...30
Bit#31
Comments
• This command can only be used together with an RTC
®
RTC
5 PC interface board with installed ADC add-on board (see
page
board.
• The old bits (bits #15 and #31) are set to 1 after reading via read_analog_in. They will
be automatically reset, when new data are available at the corresponding analog input.
®
®
RTC
4 RTC
5 new command
Version info
Available beginning with version DLL 527, OUT 529, RBF 519
Ctrl Command read_encoder
Function
returns the counts of the two RTC
store_encoder.
Call
read_encoder( &Encoder0_0, &Encoder1_0, &Encoder0_1, &Encoder1_1 )
Returned para-
Encoder0_0,
meter values
Encoder1_0,
Encoder0_1,
Encoder1_1
Comments
• Also see
Signals", page
• If incremental encoders are used to detect the motion of the parts to be processed,
encoder counter Encoder0 will be triggered by the signals at encoder input ENCODER X
and encoder counter Encoder1 by the signals at encoder input ENCODER Y. In contrast,
if an encoder simulation has been started via simulate_encoder, both encoder
counters will be triggered by an internal periodic 1 MHz clock signal.
• For buffer positions in which counts were not previously stored via store_encoder, the
value 0 will be returned (initialized value).
®
®
RTC
4 RTC
5 new command
Version info
Available beginning with version DLL 520, OUT 519
References
store_encoder, get_encoder, set_fly_x, set_fly_y, set_fly_rot,
®
RTC
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
ANALOG IN0 input value as 12-bit digital value
= 0 (channel number)
= 0
Old bit for ANALOG IN0
ANALOG IN1 input value as 12-bit digital value
= 1 (channel number)
= 0
Old bit for ANALOG IN1
595), i.e. not together with an RTC
®
counts as pointers to signed 32-bit values.
For parameter "Encodern_m",
• n is the number of the encoder counter (Encoder0, Encoder1)
• m is the number of the buffer position (parameter Pos of
store_encoder)
"Processing-on-the-fly (Optional)", page 177
215.
®
5-Express board or with an
®
5 PC/104-Plus board or an RTC
5 encoder counters that were stored via
and
"Synchronization via Encoder
®
5-Express
page 54
and
®
5 PCIe/104
wait_for_encoder
385

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RTC 5 PC Interface Board and is the answer not in the manual?

Related Products for Scanlab RTC 5 PC Interface Board

Table of Contents

Save PDF