Block
Mask
Description
This block is used when the MIL-1553 is programmed to execute bus list chain commands defined in a file whose name is specified in the mask of the Op1553_AsyncCtrl block.
This block allows the user to select one of the BC command chains of the file via the chain ID identifier, and to control a load of this chain by setting the Ready input of the block is to 1.
As with other MIL-1553 RT-LAB blocks, the information specified in this block are transferred to, or retrieved from, the Asynchronous Process which controls communication with the MIL-1553 board, via the shared memory opened during model initialization. In the case of this block, the ChainID input and Ready flag are used by the Asynchronous Process to handle chain loading, and the Send ID parameter is used to differentiate between several OpAsync_1553_ExecuteBus_List blocks.
An example application is provided in the directory:
<RTLAB_ROOT>\Examples\IO\SBS\MIL-1553\ABI_BusList\simulink and details about applications using bus list chains can be found in the RT-LAB MIL-1553 Manual.
Parameters
Controller ID | This 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. |
---|---|
Send ID | This parameter is used by the Asynchronous Process to identify the OpAsync_1553_Execute_Bus_List blocks attached to the same Op1553_AsyncCtrl block. |
Inputs
This block has 2 inputs. These values are transferred to the Asynchronous Process via the shared memory opened during model initialization.
Ready | This input can be used as a probe signal to confirm the validity of the data input. This parameter is checked once per calculation step, and the bus list chain is loaded ifReady is set to 1. |
---|---|
ChainId | This parameter is used to indicate which chain has to be loaded. This value is a literal integer value in the range [1,Nmax], where Nmas is the number of chains defined in the file. |
Outputs
This block has one output used to report error states:
- Error: This output can take one of the following values:
Value | Description |
---|---|
0 | No errors. |
-1 | An error occurred during initialization and the asynchronous process has terminated. Consult the RT-LAB Display for details. |
-2 | An exception occurred. Please contact the Opal-RT support team should this be reported. Also, consult the RT-LAB Display for possible details. |
-3 | An error occurred while processing the command list. This may also be the result of an exception. |
-8 | Invalid value specified at the Chain Id input. This means that no command chains of the chain definition file match this identifier. |
It should be noted that if, for instance, an error occurs during an RTBC transaction, the error will be reported by the related BC reception block.
Characteristics and Limitations
This block has no special characteristics.
Direct Feedthrough | No |
---|---|
Discrete sample time | No |
XHP support | No |
Work offline | No |