11-06-2019, 12:02 PM
Hi Patrick,
Yes, I was referring to case 14 of the serial driver. If you have a dionum called colletOpen mapped to digital output 0 you can do the following:
You can implement this in an IF THEN ELSE or a SWITCH CASE.
Albert
Yes, I was referring to case 14 of the serial driver. If you have a dionum called colletOpen mapped to digital output 0 you can do the following:
Code:
IF num1 == 0 THEN
SetDO colletOpen, num2;
ELSEIF num2 == 1 THEN
SetDO dionum1, num2;
ELSE
TPWrite "Unknown Output ID: " \Num:=num1;
STOP;
ENDIF
You can implement this in an IF THEN ELSE or a SWITCH CASE.
Albert