Discrete Output Set

This MotoHawk™ block is used to alter the state of a separately defined Discrete Output.

Block ID

motohawk_dout_set

Library

MotoHawk_lib/Digital I/O Blocks

Description

 

Overview

This MotoHawk™ block is used to alter the state of a separately defined Discrete Output. Multiple instances of the block can be populated in a single model, which presents a convenient method for different portions of a model to affect a shared output.

The input port is typically of the boolean type, which when true will assert the output.

A signed input value can also be used. The sign only serves a purpose when the output is capable of interpreting direction. Here negative represents reverse, positive represents forward and zero represents off. Outputs that are not able to interpret direction will assert for a non-zero value.

Usage Considerations

Multiple instances of the Discrete Output Set block can be populated in a model, which presents a convenient method for different portions of a model to affect a shared output. However, it is important to note that the output is shared and thus the last state applied to the output is the active state. Issues can arise if the application model does not correctly account for the shared nature of the resource. Typically the application should ensure that the use is mutually exclusive or that an appropriate sharing mechanism has been used.

One common sharing mechanism is to employ conditional execution when turning the output ON and OFF. The illustrated example has a system where the output is to assert if either ConditionA or ConditionB is TRUE and should turn OFF if neither condition is true.

 

Block Parameters

Parameter Field Values Comments/Description
Reference Name alpha numeric Set to the Name of the Discrete Output that is to be affected by this block