Difference between revisions of "MotoHawk:Blocks:Synchronized PWM Child"

From MotoHawk
Jump to navigationJump to search
(Description)
(Limitations)
Line 20: Line 20:
  
 
==Limitations==
 
==Limitations==
 +
The level of child PWM support is defined by the capability of the hardware. Modules that can't support this capability will not populate resources in the drop down menu. Modules that have capability will have selectable resources. However in some cases the selected child can only be used with a subset of the PWM Outputs that the module has at its disposal. Generally only PWM resources that can operate as a child can be selected to operate as a parent to a child PWM. There can also be further limitations. Build or runtime errors will result (depending on the module type) if a legal child PWM attempts to use an incompatible parent PWM.
  
This block currently only works for 5xx processor targets, each parent can only have two or fewer child PWMs, and the parent and child resources must reside on the same [../MotoHawk_topics/TPU.html TPU bank]. <br /><br /> If the resource is not behaving as exspected there are a few common errors. To check the common errors look at the resource creation status in the display(System|Debug|Resources|PWM|"ResourceName").
+
The number of children that a parent PWM Output can support may also be limited.
  
===Common Errors===
+
The [http://mcs.woodward.com/content/motohawk/Documentation/MotoHawk2016bSP0/HTML/MotoHawk_lib_Blocks/SynchronizedPWMChild.html Synchronized PWM] help topic provides additional information.
 
 
 
 
{| class="TableMHStyle"
 
! class="TableHeaderTDStyle" style="width: 100px" | Error Enum
 
! class="TableHeaderTDStyle" style="width: 300px" | Common Causes
 
|- id="tpu_config"
 
| class="TableTDStyle" valign="top" | TPU Config
 
| class="TableTDStyle" valign="top" | Check parent PWM is enabled as parent PWM.<br /> Check parent and child are on same [http://mcs.woodward.com/content/motohawk/Documentation/CurrentVersion/HTML/MotoHawk_topics/TPU.html TPU bank].
 
|- id="tpu_primative_usage"
 
| class="TableTDStyle" valign="top" | TPU Primative Usage
 
| class="TableTDStyle" valign="top" | Use 2 or fewer child PWM per parent PWM.
 
|- id="tpu_primative_count"
 
| class="TableTDStyle" valign="top" | TPU Primative Count
 
| class="TableTDStyle" valign="top" | Use 2 or fewer child PWM per parent PWM.
 
|- id="hardware_not_support"
 
| class="TableTDStyle" valign="top" | Hardware not Supported
 
| class="TableTDStyle" valign="top" | Check that resource is on a [http://mcs.woodward.com/content/motohawk/Documentation/CurrentVersion/HTML/MotoHawk_topics/TPU.html TPU bank].  
 
|}
 
  
 
==Block Parameters==
 
==Block Parameters==

Revision as of 08:42, 24 May 2017

Synchronized PWM Child

This MotoHawk™ block references a PWM parent block, and drives the output with a square wave with a specified phase offset relative to the parent.

Block ID

motohawk_pwm_child

Library

MotoHawk_lib/Analog I/O Blocks

Description

Synchronized PWM Child.PNG

A synchronized PWM child has an independent duty cycle, but has a defined phase relationship with a parent.

The MotoHawk block help topic Synchronized PWM Child provides up to date help content for this block.

Limitations

The level of child PWM support is defined by the capability of the hardware. Modules that can't support this capability will not populate resources in the drop down menu. Modules that have capability will have selectable resources. However in some cases the selected child can only be used with a subset of the PWM Outputs that the module has at its disposal. Generally only PWM resources that can operate as a child can be selected to operate as a parent to a child PWM. There can also be further limitations. Build or runtime errors will result (depending on the module type) if a legal child PWM attempts to use an incompatible parent PWM.

The number of children that a parent PWM Output can support may also be limited.

The Synchronized PWM help topic provides additional information.

Block Parameters

Parameter Field Values Comments/Description
Resource Drop-down list Select from available resource, per target ECU, such as H-bridge, etc.
Parent Reference Type Select Method for choosing resource of Parent
By Resource Enable Drop-down list
By VarDec Name Open Parent Name field
Parent Resource Drop-down list Select Parent Resource from available resource, per target ECU, such as H-bridge, etc.
Parent Name Alpha-numeric text, single-quote enclosed Indicate exact Name of Parent Resource. No special characters, such as spaces, dashes, commas (underscore allowed).
Output Current Check box (enable) When "Output Current" is checked, the drive current in milliamps is provided.
Output Fault Status Check box (enable)

When "Output Fault Status" is checked, a value indicating fault status is provided. This value is one of:
0 - OK
1 - Fault
2 - Indeterminate

Allow I/O pin to be calibrated from MotoTune Check box (enable) Name, Access Levels and MotoTune Group Strings fields available
Name Alpha-numeric text, single-quote enclosed Name as displayed in MotoTune, for block. No special characters, such as spaces, dashes, commas (underscore allowed)
Read Access Level 1-4 Sets security level 1 lowest, 4 highest, for user access to read value
Write Access Level 1-4 Sets security level 1 lowest, 4 highest, for user access to write value
MotoTune Group String Alpha-numeric text, single-quote enclosed Determines Folder name and hierarchy as displayed in MotoTune. Use "|" character between folder names to delineate subfolder structure