RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
781
Ctrl Command simulate_encoder
Function Activates or deactivates encoder simulation for the specified encoder.
Call
simulate_encoder( EncoderNo )
Parameters
EncoderNo
Encoder number as an unsigned 32-bit value.
Allowed values:
= 1: ENCODER X pulses are simulated and encoder counter
“Encoder0” thereby incremented.
= 2: ENCODER Y pulses are simulated and encoder counter
“Encoder1” thereby incremented.
= 3: Pulses for ENCODER X and ENCODER Y are simulated.
= 0: The encoder simulation is deactivated.
Comments • The encoder simulation is driven by an internal 1 MHz clock (see also Section ”Encoder
Simulation”, page 299).
• simulate_encoder does not trigger a reset of the encoder counter.
• If
EncoderNo
> 3, then simulate_encoder is ignored (get_last_error return code
RTC6_PARAM_ERROR
).
RTC4RTC6 Unchanged functionality.
RTC5RTC6 Unchanged functionality.
Version info Available as of DLL 600, OUT 600, RBF 600.
References get_encoder, store_encoder, read_encoder, wait_for_encoder, set_fly_x, set_fly_y,
set_fly_rot