Mode transitions are standard. The mode of the device is specified through the MODE parameter field.
The actual mode changes to Local Override (LO) in the following instances:
when TRK_IN_D is True
when SHUTDOWN_D is True
when the interlock is lost (the Interlock device option is enabled and INTERLOCK_D is False)
when there is no permit (the Permissive device option is enabled and PERMISSIVE_D is False) and the device state is Confirmed Passive, Going to Passive, or Failed Passive
When DC_STATE is Locked the mode is kept in Local Override.