How can I change the digital tool output mode from PNP (sourcing) to NPN (sinking) with an URScript?
Like e.g. set_tool_voltage(0)
I’m also looking for the corresponding functions and so far I have found these:
set_tool_digital_output_mode(n, mode)
Set output mode of 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 will source current when
set to 1 and be high impedance when set to 0.
set_tool_output_mode(mode)
Set tool Digital Outputs mode
Parameters
mode: The output mode to set, integer: [0:1]. 0 = Digital
Output mode, 1 = Power(dual pin) mode
Example command: set_tool_output_mode(1)
• Example Parameters:
– 1 is power(dual pin) mode. The digital outputs will be used as
extra supply
Interesting is that these functions are missing from the latest Script Manual 5.11 but when I compile the provided example ‘Tool IO Control’ and read the generated script code, the same functions are still in use. @Ebbe do you have any comments or suggestions here?
Thanks
Csaba
Hi @csaba,
It seem like it disappeared from the documentation from 5.9 to 5.10. So to be clear it is not deprecated, but properly something that was forgotten in the transfer from one built system to another.
Thanks for letting us know. I will create a ticket!
@bernd.heinzmann please notice that this functionality is an e-Series only.
Ebbe
Perfect, that was the code I was looking for.
My little testprogramm works perfectly: