Skip to main content

setEncoderQuadInvert v5.2

Invert the quadrature inputs of an encoder speed source, which reverses the direction of travel reported by the encoder. This is useful when an encoder is mounted so that it counts backwards.

The setting is saved as part of the speed source settings and applies to all encoder inputs of the speed source.

Parameter​

KeyTypeDescription
invertbooleantrue to invert the encoder quadrature, false for normal operation.
idstringOptional speed source ID. If omitted, the speed source of printer is used.
printerstringPrinter ID. Required if id is omitted and more than one printer is available.

Return value​

null

Example​

setEncoderQuadInvert {"printer": "printer1", "invert": true}