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 BC Receive block

Block

Mask

Description

This block allows the user to retrieve data received by a Bus Controller (BC) of an SBS MIL-STD-1553 board. The board selection is controlled by the OpAsync_1553_Ctrl block that shares the same Controller ID as this block.

When this block is placed in the model, during the initialization of the MIL-STD-1553 driver in the asynchronous process started by the OpAsync_1553_Ctrl block, the board will be automatically configured to simulate a Bus Controller on the specified bus (A orB).

If this block is used in a model that also uses OpAsync_1553_RT_Sendor Receive blocks, the user must make sure that the selected board has the capability to simulate both MIL-STD-1553 BC and RT features simultaneously.

This block can also be used for receiving mode codes that require a response from a remote terminal.

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

Parameters

Controller IDThis parameter is used to identify the OpAsync_1553_Ctrl block to which this Receive block is attached. This ID is a literal integer value in the range [0, 255]. An OpAsync_1553_Ctrl block with the same ID as the one specified must exist in the model.
Receive IDThis parameter is used to identify the Receive blocks attached to one specific controller. The asynchronous application uses this information to refer to a particular Receive block.
Sub-device numberSome MIL-1553 board can support more than one MIL-STD-1553 devices. This parameter is used to associate the current Receive block with one of those devices. This parameter can be grayed out or not depending on the specific board selected in the associated OpAsync_1553_Ctrl block.
Bus control operationThis parameter is used to specify the type of operation/command associated with this block. Once an operation is selected the board will be automatically configured at initialization with the required parameters for this command.
Source Remote TerminalThis parameter is used to indicate to which source Remote Terminal the currently selected command refers. For some operations, this parameter is not relevant and will be grayed out. This information will be retrieved by the MIL-STD-1553 driver during initialization in order to allocate the appropriate structures on the card. This value is a literal integer value in the range [0, 30].
Source Sub-AddressThis parameter is used to indicate to which source Sub-Address of a specific remote Terminal, the currently selected command refers. This information will automatically be retrieved by the MIL-STD-1553 driver during initialization in order to allocate the appropriate structures on the card. This value is a literal integer value in the range [0, 31].
Destination Remote TerminalThis parameter is used to indicate to which destinationRemote Terminal the currently selected command refers. For some operations, this parameter is not relevant and will be grayed out. This information will automatically be retrieved by the MIL-STD-1553 driver during initialization in order to allocate the appropriate structures on the card. This value is a literal integer value in the range [0, 30].
Destination Sub-AddressThis parameter is used to indicate to which destination Sub-Address of a specific destination Remote Terminal, the currently selected command refers. This information will automatically be retrieved by the MIL-STD-1553 driver during initialization in order to allocate the appropriate structures on the card. This value is a literal integer value in the range [0, 31].
Bus numberThis parameter is used to indicate on which bus (bus A or bus B) the message is awaited.
Waiting option

This parameter indicates if the block either:

  • Sends the transmission request and halts execution only if another transmission is requested (Send TX command high) while the response of the previous command has not yet been received. This option may cause overruns.
  • Sends the transmission request and immediately stops execution until the data arrives. This option may cause overruns.
  • Never waits
Mode CommandMode code to be sent if the Bus ControllerOperation is set to MODE.
Send Tx CommandIndicates if the Send Tx Command is an active high/low value with 0.5 thresholds or value in a hertz specifying cyclic repetition of the command.
Use word count inputProduce an additional block input that is used to specify the word count for each transaction. When this parameter is not used, the size of the Data output is used to determine the word count.

Inputs

This block has 2 standard inputs and 1 optional input:

TimeoutCurrently unused. Can be set to 0.
Send TX CommandThis input is used to launch the transmission of commands by the BC. This input behaves differently depending on the Send TX Command parameter. If Send TX Command is set to Active High and the input signal is high (>0.5), the block sends a transmission request to the designated RT/SA. If Send Tx Command is set to Periodic (Hz), the input must specify a value in Hertz that defines the rate at which the transmission requests are to be performed. The Waiting Mode option determines if the data is to be expected during the current step or a subsequent step.
Requested word count(optional) Used only if the Use word count input parameter is checked. Specifies the word count of the transaction to be performed.

Outputs

This block has 4 outputs.

Error: This output reports one of the following values:

ValueDescription
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.
-7Invalid word count. The value requested at the Word Count input is outside of the valid range (1 to 32) or higher than the width of the Data output.
-11A reception error occurred. This usually means that a remote terminal did not reply to the reception request from the bus controller or failed to deliver a status word response before the timeout specified in the OpAync_1553_Ctrl block. This may indicate a missing, disabled or defective remote terminal or a bus failure.
-20The received packet contains more data words than the width of the Data output. In this case, the exceeding data words are discarded but Word Count still reports the actual message length.

Status: This output reports one of the following values:

ValueDescription
0No new packets have been received.
1The asynchronous process is processing the reception.
2A new packet has been received and the Data and Word Count outputs have been updated. If the remote terminal failed to reply, this output is still set to 2 but the Error output flags the error

Data: this output returns the data received. The number of signals must be equal to the number of data words per message plus2. The last 2 signals at the end of the data line are used to contain the status response words associated with the operation's chain link.


All operations, except RTRT, will produce only one status word contained in the second to last output. RTRT operations produce a second word contained in the last signal. The content of the status words is described in the following table:

BitsDescription
0Terminal flag bit
1Bus control accept
2Subsystem flag
3Busy
4Broadcast command received
5, 6 and 7Reserved
8Service request
9Instrumentation
10Message error
11 to 15RT address

Word Count: Actual word count of the received response.

Characteristics and Limitations

This block has no special characteristics.

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 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter