
ADwin-Pro II
Hardware, manual Dec. 2018
179
Pro II: Extension and Interface Modules
Pro II-LIN-2 Rev. E
ADwin
The message box of a LIN master node operates different from a slave node:
–
Master node, send
: The LIN master sends both the header (see
P2_LIN_Msg_Transmit
) and then the data packet of the message
box.
–
Master node, receive
: The LIN master sends the header (see
P2_LIN_Msg_Transmit
) on the LIN Bus and waits for the response of
the appropriate slave node. The received data packet is stored into the
message box.
–
Slave node, send
: The LIN slave waits until the master sends the
header with the identifier, which fits to the identifier of the message box.
Only then the slave node will its data packet.
–
Slave node, receive
: The slave node waits until the master sends the
header with the identifier, which fits to the identifier of the message box.
Then the slave receives the data packet and stores it into the message
box.
Module Revisions
The differences between the revisions are described below:
Programming
The module is comfortably programmed with
ADbasic
instructions. The
instructions are described in
ADbasic
online help and in the Pro II Software
manual.
The include file
ADwinPro_All.inc
contains instructions for the following
functions:
Revision
Output
date
Previous changes
E1
First version
Area
Instructions
Initialize and reset LIN interfaces
P2_LIN_Init
P2_LIN_Init_Write
P2_LIN_Init_Apply
P2_LIN_Reset
Query LIN interface version
P2_LIN_Get_Version
Read or send data
Send LIN header
P2_LIN_Read_Dat
P2_LIN_Ch_Read_Cnt
P2_LIN_Msg_Read_Status
P2_LIN_Msg_Write
P2_LIN_Msg_Transmit
Set module LED
P2_Check_LED
P2_Set_LED
P2_LIN_Set_LED