PWM Peak and Hold Output Definition

This MotoHawk™ block, PWM Injector Output, is similar to the PWM Output block, except it supports driving peak-and-hold injectors with a variable peak-time.

Block ID

motohawk_pwm_injector

Library

MotoHawk_lib/Analog I/O Blocks

Description

The Duty Cycle input is an int16, ranging from -4096 to 4096, where 0 is 0%, 4096 is 100%. When negative, the polarity is reversed, which is only valid on PWM resources that are H-Bridge outputs, like ETC or H1. The Frequency input is a uint32, ranging from 119 to 19988175. Each unit represents 0.01Hz. The Peak Time input is a uint16, ranging from 0 to 65535. Each unit represents 1 microsecond. When the Peak Time is set to 0, there is no peak-and-hold behavior, and the entire waveform will operate at peak current.  

Block Parameters

Parameter Field Values Comments/Description
Resource Drop-down list Select from available Fuel Injector resource, list per target ECU.
Minimum Frequency (Hz) Numeric Enter a value for minimum PWM frequency.
Peak-and-Hold Mode Always High Current
Always Low Current
Variable Peak Time
Select the Peak-and-Hold Mode.
Output Current Check box (enable) When checked, the drive current in milliamps is provided as an output from the block.
Output Fault Status Check box (enable) Only visible for supporting modules (Classic Module Types) or when already checked. This option exposes the optional diagnostic output port on the block when checked. Modules that don't support this option expose dignostic information via blocks like Detailed Fault Status or IO Fault Status.

The fault status of the output is queried when the block executes, which will report one of these values:
0 - OK
1 - Fault
2 - Indeterminate

"motohawk_fault_status_enum" is a script that returns a cell array with that enumeration. It can be used in the Enumeration field of a probe to decode the return value of this block.

The behavior of the fault status is dependent upon the capability of the underlying hardware. Some hardware may cache observed faults and report them when next queried whilst other hardware may only be able to report the instantaneous fault status. Often Indeterminate is returned when the hardware is unable to determine the fault status of the output when it was queried. For example, some outputs can only detect open circuit while they are asserted and so may report indeterminate while not asserted.
Allow I/O pin to be calibrated Check box (enable) Name, Access Levels and Instrumentation Group Strings fields available. This field is only available on Classic modules, see ModuleTypes for help.
Name Alpha-numeric text, single-quote enclosed Name as displayed in Instrumentation Tool, for block. No special characters, such as spaces, dashes, commas (underscore allowed).
Read Access Level 0-8 Sets security level 1 lowest, 8 highest, for user access to read value. A setting of zero indicates unsecured access is allowed.
Write Access Level 0-8 Sets security level 1 lowest, 8 highest, for user access to write value. A setting of zero indicates unsecured access is allowed.
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.