protect()

$ret = Spectra::protect( mot1 => 1, mot2 => 1)
$ret = Spectra::protect( mot1 => 0, mot2 => 0)

Sets/clears the motor protection flags. The function returns an error, if the privilege flag is not set.