Z-touch plate code from CNCrouterparts.


This is copied right off their website. I'm getting a syntax error on the 2nd period of the first line. Which makes no sense to me, random syntax errors in the entire thing. I feel like im doing something wrong and its not the code?

Message( "Auto Zeroing..." )
If IsSuchSignal (22) Then
code "G31 Z-3 F20"
While IsMoving()
Wend
Call SetDRO( 2, 1.00 )
code "G1 Z1.5"
End If