Engee documentation

GP-LC-4x DPWM

Page in progress.

PWM reference on the GP-LC-4X discrete pins using the output DMA.

gp lc 4x dpwm

Description

The block is used to specify PWM on the discrete pins of the GP-LC-4X using the output DMA.

The usage of the GP-LC-4x DPWM block loses the usage of the GP-LC-4x DO block on this I/O module even on unused channels.
When using the high-frequency periodic signal generation units on a particular analogue output channel of the RITMeX GP-LC-45 I/O module, it will no longer be possible to use other high-frequency periodic signal generation units on another channel of this module.
When changing the parameters of the signal at low frequencies (up to 1kHz), the change of the signal shape takes effect after 1-2 periods of this signal. When changing the parameters of the signal at high frequencies, the changes take effect not less than 1 ms and not more than 2 ms. The process of changing the waveform does not affect the TET of the unit.

Ports

Input

Frequency - signal frequency (data type Float64) for all involved discrete output channels in the range from 10 to 100000 hertz
scalar

Square - PWM slope as an array (data type Float64), which must have a size equal to the number of channels involved
vector

Details

The duty cycle is the ratio of the signal period to the pulse width.

Parameters

All parameters listed above except the last three set the waveform only at initialisation. If at the first calculation step the corresponding parameters at the block inputs are different, the waveform will be changed.

Frequency - initial frequency of the signal (data type Float64) for all involved discrete output channels in the range from 10 to 100000 hertz
0.0 (By default).

Squareness - initial PWM slope in the form of an array (data type Float64), which must have a size equal to the number of channels involved.
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] (By default)

*Start channel the first discrete output channel to be used
1 (By default) | 2` | 3` | 4` | 5` | 6` | 7` | 8` | 9` | 10` | 11` | 12` | 13` | 14` | 15` | 16

Number of channels - number of discrete output channels used
`16 (By default).

Module number - unique module identification
1 (by default) | 2 | 3 | 4 | 5 | 6 | 7 | 8

Details

Used when more than one I/O module of the same type is installed in a real-time machine.

Calculation Step - calculation step in seconds for sending counts to digital output channels from the real-time application
`-1 (By default).