To build my pendant I need to control some of the 100 I / O virtual pins that PoKeys57U offers through a Mach3 VB script to signal me by lighting an LED, a particular state. The order is executed, by pressing in a matrix keyboard input through the "Mach IO pin 0" with the following routine:
'Rutina para leer el estado del botón shift y enclavarlo
Sub LeerShift()
OutputNumber = 30
If GetIODevInput(0, 0) =1 Then 'Si pulso el botón Shift
If SHIFT Then
SetIODevOutput(0,OutputNumber,0)
SHIFT = False
Else
SetIODevOutput(DevID,OutputNumber,1)
SHIFT = True
End If
End If
End Sub
This works well and I am able to recognize touch on the keyboard, but to send the order by the corresponding output ("IO pin Mach 30") Mach3 show me this message:
When I press "OK" and the window closes, the order is executed and the LED lights.
I tried to use the instructions for the command of the virtual pin contained in the handbook PoKeys57U but do not work (GetInput, SetOutput).
Can you help me solve this problem?