561
General Mach Discussion / Re: Mach3, Opt Laser 5W and Aspire
« on: February 22, 2021, 07:47:57 AM »
how (Hardware) do you Switch your laser On/off?
scematics would also help.
scematics would also help.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
( For start function )
If IsActive (OEMTRIG1) Then
MSGBox "Trigger 1 hit!"
DoOEMButton(1000)
activatesignal(output2)
deactivatesignal(output3)
deactivatesignal(output4)
deactivatesignal(output5)
deactivatesignal(output6)
End If
( For stop function )
If IsActive (OEMTRIG2) Then
MSGBox "Trigger 2 hit!"
DoOEMButton(1003)
activatesignal(output3)
deactivatesignal(output2)
deactivatesignal(output4)
deactivatesignal(output5)
deactivatesignal(output6)
End If
i will try to make 2 files, but if all 5 OEMtrig should be set to 301, to read the script, then i would maybe tell in the script what OEM function i want ?exactly
so it know that i want function 1000 on oemtrig 1 and it should turn on output 2 ?
If IsActive (OEMTRIG1) Then
DoOEMButton(1000)
activatesignal(output2)
End If
So the first file M333 tell... when a oemtrig will be activatet, look in file 334 ?thats the was it is.[/code]
SetTRiggerMacro 334 'Set Macro M334 for OEM-Code 301
If IsActive (OEMTRIG1) Then
activatesignal(output2)
End If
Sleep 500
'clear x-axis Limit Switch if needed
If GetOEMLed(830) then
Code "G91 G1 X10 F100"
Code "G90"
While IsMoving()
Wend
'!!!!!!!!!!!!!!! I A PRETTY SURE HERE SHOULD BE A -> End If !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Dobutton( 22 ) ' Zerox
While IsMoving()
Wend