SIM_ENCODER(9) | HAL Component | SIM_ENCODER(9) |
sim_encoder - simulated quadrature encoder
loadrt sim_encoder [num_chan=num | names=name1[,name2...]]
sim_encoder can generate quadrature signals as if from an encoder. It also generates an index pulse once per revolution. It is mostly used for testing and simulation, to replace hardware that may not be available. It has a limited maximum frequency, as do all software based pulse generators.
sim_encoder supports a maximum of eight channels. The number of channels actually loaded is set by the num_chan= argument when the module is loaded. Alternatively, specify names= and unique names separated by commas.
The num_chan= and names= specifiers are mutually exclusive. If neither num_chan= nor names= are specified, the default value is one.
The names for pins and parameters are prefixed as:
sim-encoder.N. for N=0,1,...,num-1 when using num_chan=num
nameN. for nameN=name1,name2,... when using
names=name1,name2,...
The sim-encoder.N. format is shown in the following descriptions.
2007-01-16 | LinuxCNC Documentation |