5.1.43. Digital output (pdx_DigitalOutput)

Set the output channel pin high or low.

5.1.43.1. Supported targets

M110-000, M110-000, M220-000, M220-0AU, M220-000, M220-0AU, M221-000, M221-000, M250-000, M250-000, M460-000, M460-000, M461-000, M461-000, M670-000 and M670-000

5.1.43.2. Required license

None (Main library). (See Section 2.3, “Licensed Features”.)

5.1.43.3. Description

The digital output block causes the channel pin to be taken high or low depending on the state inport at every model iteration.

The channel logical state can be inverted with respect to the input in order to achieve the desired logical output state by setting the mask parameter Inversion.

The block also has a mechanism to set the output to a default value in two situations: at start-up; or if the fault indicator is active. The default output value is mapped directly to the channel pin logical state and is never inverted.

5.1.43.4. Inports

  • state

    Place a 1 here to set the output channel pin high, place a 0 here to set the output channel pin low.

    Range: 0 or 1

    Value type:Boolean
    Calibratable:No
  • fault

    Place a 1 here to force the block to use the default value for the channel pin state, otherwise place a 0 here to force the block to use the inport state as the channel pin state.

    Range: 0 or 1

    Value type:Boolean
    Calibratable:No

5.1.43.5. Outports

  • sim_state

    Only used in simulation. this outport is set to the requested channel pin state (i.e., state or the default state).

    Range: 0 or 1

    Value type:Boolean
    Calibratable:No

5.1.43.6. Mask parameters

  • Channel

    The channel pin for this digital output.

    Value type:List
    Calibratable:No
  • Inversion

    Inverts the mapping of the input value to the channel pin. If inversion is set to 1 then a logical NOT operation is applied to the input value before further processing.

    Range: 0 or 1

    Value type:Boolean
    Calibratable:No
  • Default state

    This sets the output to the default state in two situations: at start-up time, before this block has been executed in the first model iteration; and if a fault indicator is associated with the output and the fault is active. The value is mapped directly to the channel pin logical state and is never inverted.

    Range: 0 or 1

    Value type:Boolean
    Calibratable:Yes, offline and online
  • Provide simulation output?

    Tick to enable outport sim_state.

    Value type:Boolean
    Calibratable:No

5.1.43.7. Notes