Engee documentation

GP-AD-24 DAC

Setting the value of analogue outputs of the RITMeX GP-AD-24 I/O module.

blockType: CFunction

Path in the library:

/RITM/RITMeX GP-AD-24/GP-AD-24 DAC

Description

Block GP-AD-24 DAC is used to set the value of analogue outputs of the RITMeX GP-AD-24 I/O module.

Characteristics:

  • Number of output channels - 32;

  • DAC digit capacity - 16 bits;

  • Output range - ±10 V, 0-20 mA or 4-20 mA.

  • The slew rate is `0.7 V/mux

  • Load resistance - > 1 kOhm

Ports

Input

# dac — Receiving an array of values that are interpreted as voltage values in volts or current values in milliamperes
``

Details

Each array element corresponds to an output channel with a sequence number: the first array element corresponds to the first output channel, the second channel corresponds to the second output channel, etc.

Data types

Float64.

Complex numbers support

No

Parameters

Параметры

# Номер модуля: — unique module identification
1 | 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.

Module numbers are signed on the housing of the RITM.

Values

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Default value

1

Program usage name

m_module_idx

Tunable

No

Evaluatable

Yes

# Тип выхода: — setting the type of analogue outputs of the module
Напряжение | Ток 0-20 мА | Ток 4-20 мА

Details
Values

Напряжение | Ток 0-20 мА | Ток 4-20 мА

Default value

Напряжение

Program usage name

m_out_type

Tunable

No

Evaluatable

Yes

# Количество каналов: — setting the value of the activated analogue outputs of the module
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32

Details
The contacts are connected according to the diagram in the article Purpose of GP-AD-24 pins.
Values

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32

Default value

32

Program usage name

m_dac_amout

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — calculation step in seconds for sending samples to the DAC from the real-time application

Details
Default value

-1

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes