Main Power Relay Control
This block is an example implementation for the main power relay.
Block ID
Main Power Relay
Library
motohawk_examples_lib
Description
Regardless of where the block is placed in a design, the strategy will execute at the background task rate. This rate is determined by the Trigger Definition block or the Control Core OS Definition block.
Notes
- This block is an example block and is simply composed of other primitive MotoHawk blocks. It may be used as a starting point for a different strategy.
- One tick before MPRD is turned off, non-volatile variables will be stored, and the Shutdown event will be posted. It is not necessary to use the Shutdown event.
- The block is supported by the scripts motohawk_main_power_relay_iconmask.m and motohawk_main_power_relay_initmask.m. If the user needs to customize these files, the files need to be copied to a location accessible by their project under new names. The block mask will need editing to make use of these new files. Editing the files directly will impact negatively impact other applications that use the default implementation.
Block Parameters
Parameter Field | Values | Comments/Description |
---|---|---|
On Delay Count | Numeric value | Once the ECU power goes high, this specifies the number of times the background task must execute before the Main Power Relay will be turned on. |
Off Delay Count | Numeric Value | Once the ECU power goes low, this specifies the number of times the background task must execute before the Main Power Relay will be turned off. |
ECUP High Threshold | Numeric Value | Threshold in ADC Counts above which ECUP is considered high |
Instrumentation Group | Alpha-numeric text, single-quote enclosed | Defines the folder name and hierarchy to be used by a suitable instrumentation tool. Use "|" character between folder names to delineate subfolder structure. |