Script Run Twice

I’d try expanding this further.

binEnc(
       {root/CoordinateContainer/FlexRepeaterAndRoutines/Routines/MurrElectronik/PhotoCell/ToggleRoutinePhoto.props.selected},
       {root/CoordinateContainer/FlexRepeaterAndRoutines/Routines/MurrElectronik/Inductive/ToggleRoutineInd.props.selected},
       {root/CoordinateContainer/FlexRepeaterAndRoutines/Routines/Sick/PhotoCell/RoutineSick.props.selected},
       {root/CoordinateContainer/FlexRepeaterAndRoutines/Routines/Coretigo/Encoder/Encoder_0.props.selected},
       {root/CoordinateContainer/FlexRepeaterAndRoutines/Routines/Coretigo/Inductive/Inductive Rob.props.selected},
       {root/CoordinateContainer/FlexRepeaterAndRoutines/Routines/Opto/Buttons/ToggleSwitch_4.props.selected}
      )

Then see if the encoded value is changing. The expression may be firing because of changes in different bits