This documentation is out of date.

The new version of the documentation is here: https://cannylogic.com/docs

Difference between revisions of "PWM Generator"

From CANNY Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Created page with " <div style="float:right;margin:5px;"> {|class="cannytable" width="350px" |- !colspan="2" style="background-color:#AFEEEE;"|Appearance |- |colspan="2" align="center" style="...")
 
m
 
(4 intermediate revisions by 3 users not shown)
Line 24: Line 24:
 
|style="padding-left:1em;"|[[CFD Language#Data|Integer]]
 
|style="padding-left:1em;"|[[CFD Language#Data|Integer]]
 
|-
 
|-
|style="padding-left:1em;"|Startт:
+
|style="padding-left:1em;"|Start:
 
|style="padding-left:1em;"|[[CFD Language#Data|Logical]]
 
|style="padding-left:1em;"|[[CFD Language#Data|Logical]]
 
|-
 
|-
 
!colspan="2" style="background-color:#AFEEEE;"|Outputs
 
!colspan="2" style="background-color:#AFEEEE;"|Outputs
 
|-
 
|-
|style="padding-left:1em;"|Выход:
+
|style="padding-left:1em;"|Output:
 
|style="padding-left:1em;"|[[CFD Language#Data|Logical]]
 
|style="padding-left:1em;"|[[CFD Language#Data|Logical]]
 
|-
 
|-
Line 44: Line 44:
  
 
<div>
 
<div>
При ненулевом значении на входе «Старт», генерирует на выходе блока единицу с заданной длительностью и периодичностью.
+
Non-zero value at the input "Start", generates a logic one at the output with a predetermined duration and periodicity.
  
[[File:5_8_3_3.png|left|thumb|Параметры импульсного сигнала]]
+
[[File:5_8_3_3.png|left|thumb|Pulse signal parameters]]
 
</div>
 
</div>
 
</div>
 
</div>
 
<br clear="left">
 
<br clear="left">
  
Для асинхронной генерации высокоточного ШИМ-сигнала физического уровня на выходе канала контроллера используйте [[Драйвер каналов ввода-вывода#Режим широтно-импульсного выхода| Драйвер каналов ввода-вывода]] или [[Драйвер высокочастотного широтно-импульсного модулятора (ВЧ ШИМ) | Драйвер ВЧ ШИМ]]
+
For asynchronous generation of the precision PWM signal at the output using[[CANNY_7,_Discrete_IO_Driver#PWM_output_mode | Discrete IO Driver]] or [[CANNY_7,_HR_PWM_Driver | HR PWM Driver]]
  
 
== Features ==
 
== Features ==
Хорошей практикой при работе с CANNY 7 является использование временных интервалов больших чем 5-10 мс.
+
When working with CANNY 7, it is a good practice to use the time intervals greater than 5-10 ms.
  
При задании временных значений на диаграмме, необходимо учитывать длительность цикла выполнения диаграммы, которая зависит от модели контроллера, размера диаграммы, режима работы контроллера, загруженности периферии контроллера и может изменяться от цикла к циклу в определенных пределах в процессе работы. Точное время исполнения каждого цикла диаграммы во время работы контроллера доступно в регистре [[Системные ресурсы и режимы работы#Фактическое время выполнения функциональной диаграммы | "Длительность программного цикла"]].
+
When specifying temporal values on the diagram, it is necessary to take into account the duration of the diagram execution cycle, which depends on the model of the controller, the size of the chart, controllers' operation mode, controller periphery. It may be varied from cycle to cycle within certain limits during operation. Exact execution time for each cycle is available in the register, during controller operation [[CANNY_7,_System_Registers#Function_Diagram_actual_run_time | "Last Execution Loop Duration Register"]].
  
Временные интервалы в диаграмме не должны задаваться значениями меньшими чем длительность одного цикла и будут измеряться с погрешностью порядка длительности одного цикла пользовательской диаграммы.
+
Time intervals in the diagram should not be specified by value less than the duration of one cycle and will be measured with an uncertainty about the duration of one cycle of a user diagram.  
  
== Примеры ==
+
 
 +
== Examples ==
 
{|
 
{|
 
|-
 
|-

Latest revision as of 20:01, 13 December 2016

Appearance
5 8 3 2.png
Symbol
PWM
Group
Timers and Generators
Inputs
Period, мс: Integer
Duty, мс: Integer
Start: Logical
Outputs
Output: Logical
Version CANNY Lab
from 0.6b
Icon

Non-zero value at the input "Start", generates a logic one at the output with a predetermined duration and periodicity.

Pulse signal parameters


For asynchronous generation of the precision PWM signal at the output using Discrete IO Driver or HR PWM Driver

Features

When working with CANNY 7, it is a good practice to use the time intervals greater than 5-10 ms.

When specifying temporal values on the diagram, it is necessary to take into account the duration of the diagram execution cycle, which depends on the model of the controller, the size of the chart, controllers' operation mode, controller periphery. It may be varied from cycle to cycle within certain limits during operation. Exact execution time for each cycle is available in the register, during controller operation "Last Execution Loop Duration Register".

Time intervals in the diagram should not be specified by value less than the duration of one cycle and will be measured with an uncertainty about the duration of one cycle of a user diagram.


Examples

5 8 3 4.png
Timing diagram

See also

Delayed turning OFF

Delayed turning ON

RND Generator

Built-in Function Blocks