MI-EL-45 RtSend
Sending messages from terminal device 1 to terminal device 2.
blockType: CFunction
|
Path in the library:
|
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 |
|
| Complex numbers support |
No |
#
subaddress OU1
—
subaddress of the terminal device from which the message will be sent
scalar
Details
| Data types |
|
| Complex numbers support |
No |
#
number of SDs
—
number of data words to be transmitted
scalar
Details
| Data types |
|
| 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 |
|
| Complex numbers support |
No |
#
subaddress OU2
—
the subaddress of the terminal device to which the message will be sent
scalar
Details
| Data types |
|
| 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 |
|
| Complex numbers support |
No |
Parameters
Main group
#
Номер канала: —
the channel number of the bus controller initiating the transaction
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
Details
If more than one module is installed in the machine, end-to-end channel numbering is applied.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Ждать завершения транкзации — waiting for the bus controller to complete the exchange on the line
Details
Enabling this option may cause the calculation step to overflow. 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 |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Шаг расчёта, с: — the calculation step that initiates an attempt to transmit a message over the MI-EL-45 channel
Details
Defines the sampling period of the block (in seconds) with which a command is generated to send a message from terminal device 1 to terminal device 2. If the step is too small, transactions may overlap and the channel may overload, especially when waiting for the exchange to complete.
| Default value |
|
| Program usage name |
|
| 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. |
