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 Reference Pulse Generation Module

Block

Mask

Description

This controller block (OpCtrl) accesses an Opal-RT OP6222 board, also known as Reference Pulse Generation Module or RPG. This module allows generating up to 13 digital output pulses synchronized with an internally simulated engine rotation. It also features 24 event detection digital input channels and one configurable knock analog output.

The OpCtrl block represents a physical RPG board located in a simulator. It handles rail configuration as well as overcurrent managements. All other features of the RPG board are managed by functionality blocks. Each functionality block refers to an OpCtrl block using the Controller Name parameter.

The OpFcn Engine Sync Pattern Gen and the OpFcn Multi-Event Capt blocks respectively manage the synchronized digital outputs and inputs of the module. The OpFcn Knock Gen handles the configuration and generation.of the knock output.

In addition to these RPG specific functionality blocks, the generic OpCtrlRPGModule block returns general information on the board including CableId, Firmware revision as well as error status such as Over Current and Over Voltage.

Parameters

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

This controller supports the following functionality blocks:

  • OpFcn Engine Sync Pattern Gen
  • OpFcn Multi Event Capt
  • OpFcn Knock Gen
  • OpFcn Status Register

The first set of parameters allows configuring the railing options of the RP and CAM channel.

Available options are listed bellow, though the availability changes from channel to channel:

0/ECU5V

Use a 0V / 5V power internal to the test drive setup. It is independent of the railing configurations in the Base module.

0/IGN1

Use the 0V / IGN1 rail. Power must be provided on the BATT connector and IGN1 must be activated in the Base module railing configurations.

+/- 12V

Use a -12V / 12V power internal to the test drive setup. It is independent of the railing configurations in the Base module.

0/Open Drain (IGN-1K)Use a 0V / IGN1 with 1kOhms pull-up resistor. Power must be provided on the BATT connector and IGN1 must be activated in the Base module railing configurations. In this configuration, only the 0V is driven by the RPG.
0/Open Drain (IGN-10K)Use a 0V / 5V with 10 kOhms pull-up resistor. It is independent of the railing configurations in the Base module. In this configuration, only the 0V is driven by the RPG.
0/Open Drain (RPVB-1K)Use a 0V / RPVB with 1kOhms pull-up resistor. A power voltage must be provided on the RPBV pin associated with the selected channel. In this configuration, only the 0V is driven by the RPG.
Open Source/ECU 5VUse an open source / 5V. It is independent of the railing configurations in the Base module. In this configuration, only the 5V is driven by the RPG.
Open Source / IGN 1Use a 0V / IGN1. Power must be provided on the BATT connector and IGN1 must be activated in the Base module railing configurations. In this configuration, only the IGN1 voltage is driven by the RPG.
Open Source / 12VUse an open source / 12V. It is independent of the railing configurations in the Base module. In this configuration, only the 12V is driven by the RPG.


The association between the RPBV pins and the RP/CAM channels is as follows:

Connector pinAssociated channel 
RPBV1RP1
RPBV2RP2
RPBV3RP3
RPBV4RP4 to RP8
RPBV5CAM1
RPBV6CAM2
RPBV7CAM3
RPBV8CAM4


RP1-8Output RangeVoltage range of the RP1 to RP8 synchronized output channels.
CAM1-4Output RangeVoltage range of the CAM1 to CAM4 synchronized output channels.
INJRailThis parameter is not implemented and has no effect.
ESTRailThis parameter is not implemented and has no effect.
FilterCutoff Frequency (Hz)Lowpass cutoff frequency of the filtered knock output line (KNOCK_HIGH_RES).
KnockTermination Impedance (Ohms)Termination impedance of the non-filtered knock output line (KNOCK_OUT).
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

Ack 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 and the Error Over Current outputs of this block. This input is a 15 signals wide vector, See Error Over Current output description below for a signal index.

Outputs

Error Over Current: This output is used to report overcurrent error on the RPG module output channels. A value of 1 indicates an overcurrent. This output is a 15 signals wide vector where the status of each output channel is reported individually. The relation between signals and channel number is listed in the following table. Once an overcurrent is detected, the related output channel is disabled and the error condition is maintained until an acknowledge is performed on the Ack Over Current block input.

ChannelSignal index
RP11
RP22
RP33
RP44
RP55
RP66
RP77
RP88
CAM19
CAM210
CAM311
CAM412
TDC13
Reset14
HighRes15

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-56connector sorted by name and pin numbers.



BEWARE: The following tables are valid for RPG boards preceding revision 2.1. For revision 2.1 boards, the only difference is that the RESET pin has been replaced with INJ_BIAS_VOLT.



Signal list sorted by name:

Direct FeedthroughNo
Discrete sample timeNo
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