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.

OpCtrl Base Module

Block

Mask

Description

This controller block accesses an OP6221 Base Module board installed in a TestDrive chassis.

It allows performing the following tasks:

  • Monitor the harness and cable identifications;
  • Control and monitor the power moding circuitry allowing to open or close the power rails;
  • Monitor serial link activity and signal level;
  • Configure a Trigger output based on an internal timer or engine position for easy synchronization with a logic analyzer, oscilloscope or other external equipment;

For more information on the power moding feature, please refer to the TestDrive Power Moding Guide page.

Parameters

Controller Name: This unique controller name allows binding the block with other functionality blocks.

This controller supports the following functionality block: • OpFcn Status Register

Power Moding Mask: This 8-row by 8-column matrix parameter is used to define the power modes which may be applied to the eight power moding rails. The power mode is selected using the Power Moding Key Switch State block input.

The 8x8 matrix is defined as follows.

Key Switch StatePower ModesPower Moding Rails 
ACCRADIOCRANKIGN3IGN1IGN0MP S1MP S2
0mode10/10/10/10/10/10/10/10/1
1mode20/10/10/10/10/10/10/10/1
2mode30/10/10/10/10/10/10/10/1
3mode40/10/10/10/10/10/10/10/1
4mode50/10/10/10/10/10/10/10/1
5mode60/10/10/10/10/10/10/10/1
6mode70/10/10/10/10/10/10/10/1
7mode80/10/10/10/10/10/10/10/1

When the rail index is set (value is 1), the corresponding power moding rail is enabled. Otherwise, when (value is 0), the corresponding power moding rail is disabled.



Note: the Battery rail (BATT) is controlled by the Battery Control State block input, not the Key Switch State.


Key Switch State Power Modes Power Moding Rails 
ACCRADIOCRANKIGN3IGN1IGN0MP S1MP S2
0ACC11000000
1OFF/LOCKED00000000
2UNLOCK00000100
3RUN11011100
4CRANK00100000
5OFF00000000
6SPARE 100000000
7SPARE 2 00000000

This configuration requires the following matrix for the Power Moding Mask parameter:

[1, 1, 0, 0, 0, 0, 0, 0; 0, 0, 0, 0, 0, 0, 0, 0; 0, 0, 0, 0, 0, 1, 0, 0; 1, 1, 0, 1, 1, 1, 0, 0; 0, 0, 1, 0, 0, 0, 0, 0; 0, 0, 0, 0, 0, 0, 0, 0; 0, 0, 0, 0, 0, 0, 0, 0; 0, 0, 0, 0, 0, 0, 0, 0]

Rail Enable parameters

In addition to the Power Moding Mask, the power rails can also depend on one or many hardware enable pins (Rail Enable) of the Base Module. Assuming a power rail is configured to be dependent on RAIL_EN_INP3 enable pin, the rail is only activated if the current power moding mode requires it to be active and the RAIL_EN_INP3 pin is active.

Rail Enable Mask

This 9-column matrix is used to control the dependency of the power rails to the Rail Enable hardware input pin of the Base Module.

The power moding rails are indexed as follows:

Column Index: 123456789
Rail Name:BATTACCRADIOCRANKIGN3IGN1IGN0MP S1MP S2

When a value of the 9-column matrix parameter is set (1), the corresponding power rail requires RAIL_EN_INP signal to be active for the rail to be enabled.


With the following matrix ([0 1 1 1 1 1 1 1 1]), the BATT rail is not affected by the RAIL_EN_INP while all other rails are disabled when RAIL_EN_INP is not active.

Rail Enable Mask 1-2-3 : These 9-column matrix parameters are used to control the dependencies of the power moding rails to the three additional Rail Enable Inputs. Note that since Rev 2.5 of Base Module boards, there are four Rail Enable Inputs whose signal names on the External Elco-56 connector are: RAIL_EN_INP, RAIL_EN_INP1, RAIL_EN_INP2, RAIL_EN_INP3.

When a value of the 9-column matrix parameter is set (1), the corresponding power rail requires RAIL_EN_INPx signal to be active for the rail to be enabled.



Note: Base Module boards older than Rev 2.5 only have one rail enable pin labeled RAIL_EN_INP. The Rail Enable Mask 1-2-3 parameters have no effect for such board.




Enable Active State: This 4-column matrix parameter is used to define the active polarity of the Rail Enable Inputs. When the value is set (1), the signal is active high (1). Otherwise (0), it is active low.

CANTermination: This 3-column matrix parameter allows enabling (1) or disabling (0) the internal CAN termination resistors for each CAN channels.

CAN termination matrix is indexed as follows:

Column Index: 123
Channel Name:CAN1CAN2LS-CAN

Sample Time (s): This parameter allows specifying the sample time of the block and its corresponding board. With the default value of 0 (continuous), sample time will be inherited from the model.

The following rules must be respected when selecting a sample time:

  • A controller block and its related functionality blocks must share the same sample time.

Inputs

Error Ack Rail Over Current: This inport is used to acknowledge an overcurrent error. On a transition from 0 to 1, the error is cleared. Overcurrent condition is monitored using the Status Register functionally block.

Error Ack Rail Over Voltage: This inport is used to acknowledge an overvoltage error. On a transition from 0 to 1, the error is cleared. Overvoltage condition is monitored using the Status Register functionally block.

Error Ack CRC: The inport is not currently used as CRC errors are automatically cleared.

Power Moding Rail Enable Designator: This 8-column matrix inport is used to enable the eight power moding rails just as the Rail Enable hardware pin mentioned above. A value of one (1) enables the rail while a value of zero (0) disables it.

Power Moding Battery Control State: This inport is used to control the state of the Battery rail. When this input value is set (1) and the Rail Enable if any, are active, the Battery rail is active. Otherwise, the rail is open.



Note: The Base Module uses the Battery input to power the 8 other power moding rails. Therefore, when battery rail is open, all other power rails are forced open.



Power Moding Key Switch State: This inport is used for power moding mode selection as configured using the Power Moding Mask parameter. The input value must be between 0 and 7.

Trigger Mode: This inport is used to specify the trigger mode for the BNC Trigger connector on the from of the Base module. The possible values are as follows:

ModeDescription
2Produce the model synchronization signal.

Trigger Position: This inport is used to specify the angular position (expressed as a high-resolution count, .i.e. 5000 for 500° at 0.1 resolution) at which the TRIGGER output must produce a pulse. Trigger mode must be set to 0.

Trigger Enable: This inport is used to activate the TRIGGER BNC output (1), or to disable it (0).

Outputs

Rail Over Current Error FaultThis output returns 1 when an over-current condition is detected on the board, and 0 otherwise. Acknowledgment of this error is performed with the Error Ack Rail Over Current input.
Rail Over Voltage Error FaultThis output returns 1 when an over-voltage condition is detected on the board, and 0 otherwise. Acknowledgment of this error is performed with the Error Ack Rail Over Voltage input.
CRC Error FaultNot implemented yet.
Harness IdentificationThis output returns the state of the cable identification lines ID-CBL0-4 of the module board. The default value is 31.
Power Moding Battery StateWhen this outport is set (1), the battery rail is active. Otherwise (0), the battery rail is open.
Power Moding Rail StateWhen a value of this 8-column matrix outport is set (1), the corresponding power moding rail (ACC, RADIO, CRANK, IGN3, IGN1, IGN0, MP S1, MP S2) is active.
Power Moding FaultWhen a value of this 9-column matrix outport is set (1), the corresponding rail (BATT, ACC, RADIO, CRANK, IGN3, IGN1, IGN0, MP S1, MP S2) is in fault. Fault values are set when rail should be active but power is currently not provided (e.g. due to open fuse, over voltage, over current or battery not being active).
Power Moding Rail Enable InputThis 4-column matrix outport defines the digital state of the Rail Enable Input lines (RAIL_EN_INP, RAIL_EN_INP1, RAIL_EN_INP2, RAIL_EN_INP3). When set (1), the corresponding input is high. Otherwise, the input is currently low.
Power Moding Rail EnableWhen a value of this 4-column matrix outport is set (1), the corresponding Rail Enable Input line (DIN_RAIL_EN_INP*) is active according to the corresponding rail Enable Active State (polarity) parameter. Note that this outport should not be confused with the "Power Moding Rail Enable Input" outport (which reports the digital state rather than the logical state).
ECU Serial Line Analog StatesThis 5-column matrix is not yet implemented and returns only zeroes.
ECU Serial Line Digital StatesThis 5-column matrix returns the digital state of the serial lines (Primary J1850, K-line, CAN-1, CAN-2, LS-CAN) as captured at the beginning of the calculation step.
ECU Serial Line TransitionsThis 5-column matrix returns the number of transitions (255 max) that occurred on the serial lines (Primary J1850, K-line, CAN-1, CAN-2, LS-CAN) during the previous calculation step.
BATT voltageThis output returns the measured voltage value, in volts, of the BATT input of the Power backplane.

Characteristics and Limitations

Synchronization

The synchronization source of the model will be automatically assigned during the load of the model. Any TestDrive card equipped with an OP5142 board can act as a master or a slave.

Connector Pin Assignments

Below are the lists of signals available on the External Elco-56 connector sorted by pin numbers.

Direct FeedthroughNo
Discrete sample timeYes
XHP supportYes
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