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.

PCAN_LIN Support Block

Block

Mask

Description

This block essentially was created to monitor the LIN bus via CAN bus, using the assembly CanAc2-PCI/PCAN-LIN adapter; this block should be capable of detecting all of the LIN IDs that are configured as LIN-Request to trigger the appropriate control signals to the specific Slave node that should respond the inquired data (to complete the LIN Request Frame).

Parameters

Controller IDController ID refers to the OpCanAc2 Ctl block where the Can-Ac2 port configuration is provided. This field is automatically updated with correct controller ID during model generation.
CAN ID for Slave ActivationThis parameter is directly related to a parameter (same name) of PCAN-LIN Configuration tool. Both values should match in order to have this block functional. This parameter should be entered in decimal format. For further details please refer to Parameters Definitions of PCAN-LIN configuration tool.Note1
CAN Error IDThis parameter is directly related to a parameter (same name) of PCAN-LIN Configuration tool. Both values should match in order to have this block functional. This parameter should be entered in decimal format. For further detail please refer to Parameters Definitions of PCAN-LIN configuration tool. Note1



Note: These files are accessible through help file of example model_1 of PEAK Systems product.



Inputs

IDs Cfg: This input receives the LIN network ID configuration. This configuration is provided directly by the LIN Scheduler block, and it comes in the format of a constant array of 64 entries, where each entry represents each LIN Id configuration.

Communication TypeId Cfg Entry Value
Master Send Req/Slave Resp Data1
Master Send Data/ Slave Receive Data-1
LIN Id not used0

Enable Input: This input allows to control the execution of the block.

Enable ValueBlock Behavior
1Active (Executing)
0Inactive (Disabled)


Outputs

This block provides two control signals and one monitor signal:

Recvd LIN IDThis output reports every LIN Id detected on the LIN network and works very closely with LIN Msg Trigger output.
LIN Msg TriggerThis output generates a rising impulse signal with a duration of one calculation step to stimulate the corresponding Slave node (the one configured with the Recvd LIN ID) to respond to the requested data.
InfoRecvdThis output reports every Id detected on the LIN network. This output is of the type OpCanAc2 Recv block which comprises the following information: Error, Status, Number of packets, Data, Timestamps, and DLC. For further information refer to OpCanAc2 Recv block documentation.

Characteristics and Limitations

Direct FeedthroughN/A
Discrete sample timeN/A
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
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter