Engee documentation

BA-IS-XX I2C-Write

Writing to I2C with usage of the RITMeX BA-IS-XX I/O module.

blockType: CFunction

Path in the library:

/RITM/RITMeX BA-IS-XX/BA-IS-XX I2C/BA-IS-XX I2C-Write

Description

The BA-IS-XX I2C-Write block is used to write to I2C with usage of the RITMeX BA-IS-XX I/O module.

Ports

Input

# TX — data to be written to I2C
vector

Details

Array depending on the value of the Number of words parameter.

Data types

Float64.

Complex numbers support

No

Parameters

Параметры

# Номер модуля: — unique module identification
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Details

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

Module numbers are signed on the RITM housing.

Values

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

Default value

1

Program usage name

m_module_idx

Tunable

No

Evaluatable

Yes

# Номер канала: — I2C channel number
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Details
Values

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

Default value

1

Program usage name

m_channel

Tunable

No

Evaluatable

Yes

# Режим: — I2C operation mode
Master | Slave

Details
Values

Master | Slave

Default value

Master

Program usage name

m_work_mode

Tunable

No

Evaluatable

Yes

# Адрес: — I2C Slave device address on the bus

Details
Default value

0

Program usage name

m_address

Tunable

No

Evaluatable

Yes

# Количество слов: — number of words to send and receive via I2C
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
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

1

Program usage name

m_num_words

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — calculation step in seconds with which I2C data is exchanged

Details
Default value

-1

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes