set_conveyor_tick_count(tick_count, absolute_encoder_resolution=0)

Deprecated:Tells the robot controller the tick count of the encoder. This function is useful for absolute encoders, use conveyor_pulse_decode() for setting up an incremental encoder.  For  circular  conveyors,  the value must be between 0 and the number of ticks per revolution.

Parameters

tick_count: 

Tick count of the conveyor (Integer)

absolute_encoder_resolution:

Resolution of the encoder, needed to handle wrapping nicely. (Integer)

0 is a 32 bit signed encoder, range [-2147483648 ; 2147483647] (default)

1 is a 8 bit unsigned encoder, range [0 ; 255]

2 is a 16 bit unsigned encoder, range [0 ; 65535]

3 is a 24 bit unsigned encoder, range [0 ; 16777215]

4 is a 32 bit unsigned encoder, range [0 ; 4294967295]

Deprecated: This function is replaced by encoder_set_tick_count and it should therefore not be used moving forward.

Example command: set_conveyor_tick_count(24543, 0)

  • Example Parameters:
    • Tick_count = 24543    a value read from e.g. a MODBUS register being updated by the absolute encoder
    • Absolute_encoder_resolution = 0    0 is a 32 bit signed encoder, range [-2147483648 ;2147483647] (default)