Update a Discrete Output

The purpose of the "O" command is to energize or deenergize a Discrete Output. Its syntax is:
O[ ]#[ ]=[ ]SetTo  (or)  O*[ ]=[ ]###
   where # is the value 0 through 5 (or 1 through 6; see the Notes)
   SetTo is either zero or any nonzero numeric value
   '*' is an asterisk, which must immediately follow the 'O' or 'o'
   ### is a numeric value 0 through 255 (= 0xFF)

Notes:
  No distinction is made between uppercase and lowercase.
  The [ ] signifies one or more optional spaces, but, e.g.,"o1=1" (with no spaces) is valid.
  The first form of this command is expecting that two numeric values be passed.
  Numeric values may be input in either decimal or hexadecimal format.
  The # is the Discrete Output index, values 0 through 5.
  Bit BIT_OS_ONE_BASED changes the index from 0-5 to 1-6.
  SetTo is either zero (to turn OFF) or a nonzero (any other sets ON).
  If SetTo is not numeric, no Discrete Output is changed.
  Output 0 is the first (upper) relay on the SSG Relay board.
  The EEbConfig_AIs BYTE configures which PORTC pins are Analog Inputs.
  The EEbConfig_DIs BYTE configures which PORTC pins are Discrete Inputs.
  The EEbConfig_DOs BYTE configures which PORTC pins are Discrete Outputs.
  The second form ("O*") sets ALL Discrete Outputs (i.e., all BITS in PORTC) simultaneously.
  The numeric value after the equal is a bitmask of the Discrete Outputs' desired new states.

>o 0 = 0    ; Turn Discrete Output 0 OFF
>o0=45      ; Turn Discrete Output 0 ON
>O 1 = 1
>O 5 = 0
>O* = 0x3F  ; Set all six (6) Discrete Outputs ON
>O*=63      ; Same command, but using decimal and more compact
>O*=15      ; Turn the four (4) lowest Discrete Outputs ON, high two (2) OFF
>O*   =  3  ; Turn the two (2) lowest Discrete Outputs ON, high four (4) OFF
>O*=0       ; Turn all six (6) Discrete Outputs OFF
>                                                                               
See also:
    The Analog Input system command and the Discrete input and output System Functions.