Configuration:

Set the selector input to 15-Analog input switching:


Assign analogs to positions P R N D S M/S. Items that don't exist set to 0:




Caution:

If the selector specifies GND then enable Invert

If it gives voltage, disable Invert.