Pro II: Multi-IO Modules
Pro II-MIO-4-ET1 Rev. E
ADwin
40
ADwin-Pro II
Hardware, manual Dec. 2018
Programming in
TiCoBasic
The module can be programmed with
TiCoBasic
instructions. The instructions
are described in
TiCoBasic
online help.
The include file
MIO_TiCo.inc
contains instructions for the functions:
Set and reset output signals
P2_Digout
,
P2_Digout_Long
P2_Digout_Bits
P2_Get_Digout_Long
Use latch register
P2_Dig_Latch
,
P2_Sync_All
P2_Dig_Write_Latch
Optocouple Inputs
Query input signals
P2_Digin_Edge
P2_Digin_Long
Use latch register
P2_Dig_Latch
,
P2_Sync_All
P2_Dig_Read_Latch
Counter Block
Configure counter
P2_Cnt_Enable
,
P2_Cnt_Mode
Use counter
P2_Cnt_Clear
,
P2_Cnt_Get_Status
P2_Cnt_Latch
,
P2_Cnt_Sync_Latch
P2_Cnt_Read
,
P2_Cnt_Read4
P2_Cnt_Read_Latch
P2_Cnt_Read_Latch4
Use PWM counter
P2_Cnt_PW_Enable
,
P2_Cnt_PW_Latch
P2_Cnt_Get_PW
,
P2_Cnt_Get_PW_HL
,
P2_Cnt_Read_Int_Register
SSI Decoder
Use SSI decoder
P2_SSI_Mode
,
P2_SSI_Set_Bits
P2_SSI_Set_Clock
P2_SSI_Set_Delay
,
P2_SSI_Read
P2_SSI_Read2
P2_SSI_Start
,
P2_SSI_Status
EtherCat Interface
Use interface
only possible in
TiCoBasic
General
Use LED
P2_Check_LED
,
P2_Set_LED
Synchronize
P2_Sync_All
,
P2_Sync_Enable
P2_Sync_Stat
Use interrupt and event inputs
P2_Event_Enable
,
P2_Event_Read
P2_Event_Config
Range
Instructions
Range
Instructions
Analog Inputs
Set inputs to single-ended or
differential
SE_Diff
Do a single conversion – com-
plete or step by step
ADC
,
ADC24
Set_Mux
,
Start_Conv
,
Wait_EOC
Read_ADC
,
Read_ADC24
Read value and start new con-
version
Read_ADC_SConv
Read_ADC_SConv24