Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

OpAsync 1553 Recv_ModeCommand




  • This block is used to receive MIL-1553 Remote Terminal Mode Codes.

This block is associated with one MIL-1553 card by the mean of the Controller ID parameter, which associates this block with an OpAsync1553_Ctrl block in the model.

The information about the RT/SA couple specified in this block is transferred to the Asynchronous Application in order to program the card for simulation of this RT/SA in receive mode for a specific Mode Code. The data received by this RT/SA couple is transferred from the Asynchronous Application to the model via the shared memory opened during model initialization and returned at the Data outport of the block.

For more information MIL-1533 RT-LAB applications, check the RT-LAB MIL-1553 Manual.


Controller IDThis parameter is used to retrieve to which Op1553_AsyncCtrl block the present block is associated. This ID is a literal integer value in the range [0, 255]. An Op1553_AsyncCtrl block with the same ControllerID value must exist in the model.
Receive IDThis parameter is used by the Asynchronous Process to differentiate between the OpAsync_1553_RecvModeCommand blocks attached to the same Op1553_AsyncCtrl block.
Sub-device numberSome MIL-1553 boards can support more than one MIL-1553 device. Each individual device is then referred to as one sub-device. This parameter is used to associate the current OpAsync_1553_RecvModeCommand block with one sub-device of the MIL-1553 card selected in the associated Op1553_AsyncCtrl (same ControllerID value). This parameter is grayed out if the card selected in the Op1553_AsyncCtrl block holds only one sub-device.
Remote TerminalIndicates the number of the Remote Terminal simulated by this block. This value is a literal integer value in the range [0, 30].
Mode CommandThis parameter is used to select which ModeCode has to be received.
Sub-addressIndicates the Sub-Address simulated by this block. This value is a literal integer value in the range [0, 31].


Timeout: Currently unused. Set to 0.


This block has 4 outputs used to return values obtained from the MIL-1553 card by the Asynchronous Process.

  • Error: This output reports one of the following values:
0No errors.
-1An error occurred during initialization and the asynchronous process has terminated. Consult the RT-LAB Display for details.
-2An exception occurred. Please contact the Opal-RT support team should this be reported. Also, consult the RT-LAB Display for possible details.
  • Status: This output reports one of the following values:
0No new packets have been received.
1The asynchronous process is processing the reception.
2A new mode command has been received and the Data output has been updated.
  • Data: This output returns the data value of the received ModeCode.
  • Timestamp: This vector of 6 values indicates the timestamp of the message. The values are, in that order: day, hours, minutes, seconds, milliseconds, and microseconds. This output is set only when the 'extended RT' mode is selected in the OpAsync_1553_Ctrl. Otherwise, they are set to 0. Note that if the MIL-1553 card does not have the IRIG option, only the 'microseconds' field is set.

Characteristics and Limitations

The values returned at the Timestamp output are asynchronous to the model. If the device is not IRIG-capable, the timestamps returned are raw time values measured by the MIL-1553 board. Also, configuring the IRIG or device timer of the card is currently not supported.

Direct FeedthroughNo
Discrete sample timeNo
XHP supportNo
Work offlineNo

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | | +1 514-935-2323