Modbus Motion Interface
Write_Word(System_+_SampleRate_w,<Value>);
Read_Word(System_+_SampleRate_w);
Description
The Sample Rate registers sets and queries the Sample Rate of the controller.
The sample rate is typically 1000 Hz with a discrete time period of 1000 microseconds.
Every on-board task runs every sample period.
The sample rate can be changed, although it is recommended this value not be changed unless explicitly recommended by technical support.
Even though the sample rate can be changed during program execution it is recommended that it be set once
during initialization and that all speed and acceleration settings be made after the sample rate has been
set. Changing the sample rate after Speed and Accel settings have been established can result in distorted speeds and accels.
To avoid this
issue it is best and simplest to choose the sample rate from the drop-down list on the Setup Tab:
Escapes
If the sample rate is set to greater than 8 kHz
a Parameter Out Of Range Escape Code will occur.
Examples
Query the controller sample rate.
Read_Word(SYSTEM_+_Sample_Rate_w);
Related Topics
Sample Counter
Parameter Out Of Range Escape Code