flood()

Controls the flood coolant system.

If called with no arguments, it toggles the flood coolant state.
If called with one argument, it explicitly turns the flood coolant on (`1`) or off (`0`).

Syntax

flood()
flood(state)

Parameters

Parameter Type Description
state Number (Optional) `1` to turn on, `0` to turn off. optional

Return Value

Examples

Toggle flood coolant

flood();  

Turn on flood coolant

flood(1);

Turn off flood coolant

flood(0);

See also

output
output_pwm
output_rc

mist
flood
spindle

extout1
extout2