Knowledge Base

The SPice10211 contains two potentiometers, labelled Trim1 and Trim2. The settings of these can be read by your program using analog input instructions. That gives you the facility to easily provide field adjustable parameters. Possible uses include

  • “Analog” timer adjustment
  • Field calibration settings
  • Motor speed and acceleration presets
  • Setpoint control

The key to all this is that it is your program that creates the relationship between the potentiometer setting and whatever it is controlling.

The potentiometers are read using analog input instructions. They will result in a number between 0 and 255 in X.

All analog inputs are subject to errors. This can include missing codes, i.e. certain input values that for one reason or another never get generated. Your program should be designed so it cannot “hang up” or otherwise fail due to missing codes. In particular with something like the potentiometers, don’t rely on being able to get the extreme values like 0 and 255, or even 1 and 254.

Note: Which actual analog inputs the potentiometers map to depends on which model of SPLat controller the SPice10211 is attached to. The mapping is detailed under Programming.