set_tool_digital_output_mode (n, mode)

Sets the output mode of the tool output pin.

Parameters

n: The number (id) of the output, integer: [0:1]

Mode: The pin mode.

Integer: [1:3]

  • 1=Sinking/NPN
  • 2=Sourcing/PNP
  • 3=Push-Pull

Example command: set_tool_digital_output_mode(0,2)

  • Example Parameters:
    • 0 is digital output pin 0.
    • 2 is pin mode sourcing/PNP.

      The pin sources current when it is set to 1.

      The pin is high impedance when it is set to 0.