
Pro II: Extension and Interface Modules
Pro II-CAN-2 Rev. E
ADwin
162
ADwin-Pro II
Hardware, manual Dec. 2018
The include file
ADwinPro_All.inc
contains instructions for the following
functions:
Programming in
TiCoBasic
The module can be programmed with
TiCoBasic
instructions. The instructions
are described in
TiCoBasic
online help.
The include file
CAN_TiCo.inc
contains instructions for the functions:
Programming TiCo
access
To access the
TiCo
processor from the ADwin CPU the following
ADbasic
instructions are defined in the include file
ADwinPro_All.inc
. The instruc-
tions are described in
ADbasic
online help and in the
TiCoBasic
manual.
Function
Instructions
Initialize CAN controller, set Baud rate
P2_INIT_CAN
P2_Set_CAN_Baudrate
Transfer message objects
P2_En_Receive
P2_Read_Msg
P2_En_Transmit
P2_Transmit
Set and read registers
P2_Set_CAN_Reg
P2_Get_CAN_Reg
Use LED
P2_Check_LED
P2_Set_LED
P2_CAN_Set_LED
Use interrupt and event inputs
P2_En_Interrupt
P2_Event_Enable
P2_Event_Config
P2_Event_Read
Function
Instructions
Initialize CAN controller, set Baud rate
INIT_CAN
Set_CAN_Baudrate
Transfer message objects
En_Receive
,
Read_Msg
Read_Msg_Con
En_Transmit
,
Transmit
Transmit_Status
Set and read registers
Set_CAN_Reg
,
Get_CAN_Reg
Use LED
Check_LED
,
Set_LED
CAN_Set_LED
Use interrupt
En_Interrupt
Function
Instructions
Data exchange with the
TiCo
processor via global variables
P2_TDrv_Init
P2_GetData_Long
,
P2_Get_Par
,
P2_Get_Par_Block
P2_SetData_Long
,
P2_Set_Par
,
P2_Set_Par_Block
P2_Get_TiCo_RingBuffer
,
P2_Set_TiCo_RingBuffer
P2_RingBuffer_Empty
P2_RingBuffer_Full
Control
TiCo
processor
P2_TiCo_Reset
,
P2_TiCo_Start
,
P2_TiCo_Stop
P2_Get_TiCo_Bootloader_
Status
P2_Get_TiCo_Status
,
P2_Workload