Digital Output Control M62 M63
● M62 P-
turn ON digital output synchronized with motion (will execute after the motion of the previous command is completed). The P- word specifies the digital output number. The value of 255 will turn ON all available digital output. The number of outputs available will depend on the controller. Examples:
M62 P0
Turn on output 0 (zero)
M62 P1
Turn on output 1
M62 P255
Turn on all outputs
● M63 P-
turn OFF digital output synchronized with motion. The P- word specifies the digital output number. The value of 255 will turn OFF all available digital output. Examples:
M62 P1
Turn off output 1
M62 P255
Turn off all outputs
Digital Input M66
● M66 P- L- Q-
Synchronized wait for input (will execute after the motion of the previous command is completed).
The P- word specifies the input number
The L- word specifies the mode.
3 : Wait for input to go HIGH
4 : Wait for input to go LOW
The Q- word specifies the timeout in seconds for waiting. If the timeout is exceeded, the wait is interrupted.
Examples:
M66 P0 L4 Q10
Wait up to 10 seconds for digital input 0 to turn OFF
M66 P5 L3 Q5
Wait up to 5 seconds for digital input 5 to turn ON
Analog Output M67
● M67 E- Q-
Set an analog output (PWM channel) synchronized with motion (will execute after the motion of the previous command is completed).
The E- word specifies the analog output pin starting from 0 (zero). The number of analog outputs available will depend on the controller. The value of 255 will set all available outputs.
The Q- word specifies the analog value (float). 0 (zero) will turn OFF the PWM channel. The actual analog value will depend on the PWM timer's configuration.
Examples:
M67 E0 Q20.1
set the analog pin0 with the value of 20.1
M67 E1 Q0
turn OFF the PWM channel of analog pin1
M67 E255 Q100
set ALL available analog pins with the value of 100.0
M67 E255 Q0
turn off ALL analog pins
Acceleration Scaling M100
● M100 P- Q-
Enable custom Acceleration with P-word for axis, and Q-word for acceleration fraction, will execute after the motion of the previous command is completed. This will temporarily change the acceleration set in $120,$121,etc... The change is NOT written to the Flash (simulated EEPROM).
P- word is the axis ranging from 0 to 3 (F13 controller) or 6 (F16, F46 controllers). A value of 255 will change all available axes.
Q- word is a float > 0.0 and <= 1.0, representing the percentage of the acceleration.
Examples:
M100 P0 Q0.95
change acceleration of X axis to 95% of $120
M100 P4 Q0.5
change acceleration of A axis to 50% of $123
M100 P255 Q0.1
change acceleration of ALL axis to 10% of respected $12x
M100 P255 Q1
change acceleration of ALL axis to back to 100%