Digital I/O Blocks

From NewEagleWiki
Jump to navigation Jump to search

MotoHawk:Blocks:Digital Input

This MotoHawk® block is a single-bit digital input, which outputs a boolean value. Select a unique resource name. This name can be the name of the sensor that is being read. If none is given, it will either inherit the pin name or the vardec name, depending on whether calibrateable IO is selected. Choose the pin resource. "Output Creation Status" will add an optional uint16 output that provides the ControlCore error status. 0 means OK, and any other number is an error. This can be useful for disabling diagnostics or strategies based on different I/O calibrations.

MotoHawk:Blocks:Digital Input Reference

This MotoHawk® block is a single-bit digital input, and outputs a boolean value. Choose the resource name (specified in the Digital Input block) to specify the digital input channel to reference.

MotoHawk:Blocks:Digital Output

This MotoHawk® block is a single-bit digital output, with a boolean value input. Choose the pin resource.

When "Output Fault Status" is checked, a value indicating fault status is provided. This value is one of:

0 - OK

1 - Fault

2 - Indeterminate