Engee documentation

MI-EL-45 RtSend

Sending messages from terminal device 1 to terminal device 2.

blockType: CFunction

Path in the library:

/RITM/RITMeX MI-EL-45/MI-EL-45 RtSend

Description

To work with the block, install/update the support package RITM blocks.

Block MI-EL-45 RtSend It is used to initiate sending messages from terminal device 1 to terminal device 2.

Ports

Input

# LS1 address — address of the terminal device from which the message will be sent
scalar

Details
Data types

Float64.

Complex numbers support

No

# subaddress OU1 — subaddress of the terminal device from which the message will be sent
scalar

Details
Data types

Float64.

Complex numbers support

No

# number of SDs — number of data words to be transmitted
scalar

Details
Data types

Float64.

Complex numbers support

No

# OU2 address — address of the terminal device to which the message will be sent
scalar

Details

Address 31 is a broadcast address.

Data types

Float64.

Complex numbers support

No

# subaddress OU2 — the subaddress of the terminal device to which the message will be sent
scalar

Details
Data types

Float64.

Complex numbers support

No

Output

# mistake — channel exchange error flag
scalar

Details

In case the bus controller has registered a communication error, a non-zero value will be set.

Data types

Float64.

Complex numbers support

No

Parameters

Параметры:

# Номер канала: — the channel number of the bus controller initiating the transaction
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Details

If there is more than one module installed in the machine, the channel numbering is applied end-to-end.

Values

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

Default value

1

Program usage name

m_chNum

Tunable

No

Evaluatable

Yes

# Ждать завершения транкзации — waiting for the bus controller to complete the exchange on the line

Details

Enabling the option may cause overflow of the calculation step. If this option is disabled, the model developer must independently monitor possible transaction conflicts in the line and, if necessary, increase the block calculation step.

Default value

true (switched on)

Program usage name

m_waitFlag

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — calculation step in seconds

Details
Default value

-1

Program usage name

m_smplT

Tunable

No

Evaluatable

Yes

Decoding the error status in the bus controller blocks

The output Error has the data type UInt32. Depending on the situation detected on the bus, the following bits are set in it:

ERAO_ERROR

Op-amp address error in the OS. The mask is 0x1.

MEO_ERROR

Error code "Manchester-2". The mask is 0x2.

TO_ERROR

Timeout on reception. The mask is 0x4.

EBC_ERROR

Self-monitoring error during transmission or composite error during reception. The mask is 0x8.

RTFL_ERROR

OS bit "Op amp malfunction". The mask is 0x10.

DNBA

OS bit "Accepted interface management". The mask is 0x20.

SSFL_ERROR

OS bit "Subsystem malfunction". The mask is 0x40.

BUSY

The OS bit "Subsystem is busy". The mask is 0x80.

RT_ERROR

Timeout on reception. The mask is 0x100.

HW_ERROR

A local hardware error. The mask is 0x200.