*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 232b8fa3 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Add check if TiCi process was running

parent 3b78ad91
No related branches found
No related tags found
No related merge requests found
......@@ -106,11 +106,8 @@ init:
P2_DigProg(DIO1, 1111b) 'Channel 0-31 as outputs
P2_DigProg(DIO2, 1111b) 'Channel 32-63 as outputs
P2_tico_reset(000011b)
' Start TiCo Processes
'P2_TiCo_Start_Process(PTR_TICO1,1)
'P2_TiCo_Start_Process(PTR_TICO1,1)
'Initialize pointers to Tico memory
P2_tico_reset(000011b)
P2_TDrv_Init(DIO1, 1, PTR_TICO1) 'Data Transfer to Module DIO1
P2_TDrv_Init(DIO2, 1, PTR_TICO2) 'Data Transfer Module DIO2
......@@ -354,6 +351,9 @@ FINISH:
P2_Set_Led(AOUT1,0)
P2_Set_Led(AOUT2,0)
' Check if TiCo Status was fine
P2_Process_Status(DIO1,1,1)
P2_Process_Status(DIO2,1,1)
'Stop Tico Processes
P2_TiCo_Stop_Process(PTR_TICO1,1)
P2_TiCo_Stop_Process(PTR_TICO2,1)
......
No preview for this file type
......@@ -351,6 +351,9 @@ FINISH:
P2_Set_Led(AOUT1,0)
P2_Set_Led(AOUT2,0)
' Check if TiCo Status was fine
par_10 = P2_Process_Status(DIO1,1,1)
par_20 = P2_Process_Status(DIO2,1,1)
'Stop Tico Processes
P2_TiCo_Stop_Process(PTR_TICO1,1)
P2_TiCo_Stop_Process(PTR_TICO2,1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment