Engee documentation

MI-EL-45 RtGetTran

Getting information about the event that occurred with the terminal device.

blockType: CFunction

Path in the library:

/RITM/RITMeX MI-EL-45/MI-EL-45 RtGetTran

Description

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

Block MI-EL-45 RtGetTran It is used to get information about an event that occurred with the terminal device. The module has a built-in FIFO buffer for 512 events that can be received in the model. If there are no events not received, then all outputs of the block will return zero values.

Ports

Output

# EI subaddress — the subaddress of the terminal device that participated in the transaction
scalar

Details
Data types

Float64.

Complex numbers support

No

# EI direction — data transmission direction
scalar

Details

Reading from the terminal device is 1, writing to the terminal device is 2.

Data types

Float64.

Complex numbers support

No

# number of SDs — number of data words read or written
scalar

Details
Data types

Float64.

Complex numbers support

No

# mistake — transaction error flag
scalar

Details

If the terminal device has registered an error, a non-zero value will be set.

Data types

Float64.

Complex numbers support

No

# data — information words written to the terminal device during the last write operation
scalar

Details
Data types

Float64.

Complex numbers support

No

Parameters

Main group

# Номер канала: — MKIO channel number
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

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

Default value

1

Program usage name

m_chNum

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — the calculation step with which the block polls the FIFO event buffer of the terminal device

Details

Defines the sampling period (in seconds) with which the unit checks the module’s built-in FIFO buffer and, if there are events not received, outputs information about the next event to the outputs. A smaller calculation step ensures more frequent reading of events, but increases the load on the model.

Default value

-1

Program usage name

m_smplT

Tunable

No

Evaluatable

Yes