1231
General Mach Discussion / Re: Output aktivate bevor Start of Programm
« on: October 20, 2015, 05:21:29 PM »
Here is the VB, I am using modbus for these inputs so it wont be the same, you would have to use the code for the output as rcaffin suggested but the code below should show you what is possible.
If GetInput(23) And (GetInput(10) Or GetInput(11)) Then
DoOemButton(1000)
Else
DoOemButton(1003)
MsgBox("Engage Headstock or Enable Spindle")
End
End If
If GetInput(23) And (GetInput(10) Or GetInput(11)) Then
DoOemButton(1000)
Else
DoOemButton(1003)
MsgBox("Engage Headstock or Enable Spindle")
End
End If