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

The MI-EL-45 RtSend block is used to initiate the sending of messages from endpoint 1 to endpoint 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

Deciphering the error status of the bus controller blocks

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

ERAO_ERROR

Error in the address of the OU in the OS. Mask 0x1.

MEO_ERROR

Manchester-2 code error. Mask 0x2.

TO_ERROR

Timeout on receive. Mask 0x4.

EBC_ERROR

Self-check error on transmission or composite error on reception. Mask 0x8.

RTFL_ERROR

OS bit "OU fault". Mask 0x10.

DNBA

OS bit "Interface control accepted". Mask 0x20.

SSFL_ERROR

"Subsystem fault" OS bit. Mask 0x40.

BUSY

OS bit "Subsystem busy". Mask 0x80.

RT_ERROR

Receive timeout. Mask 0x100.

HW_ERROR

Local hardware error. Mask 0x200.