equal
deleted
inserted
replaced
52 { |
52 { |
53 __tick++; |
53 __tick++; |
54 |
54 |
55 %(retrieve_calls)s |
55 %(retrieve_calls)s |
56 |
56 |
57 if(Debugging) __retrieve_debug(); |
57 /*__retrieve_debug();*/ |
58 |
58 |
59 config_run__(__tick); |
59 config_run__(__tick); |
60 |
60 |
61 if(Debugging) __publish_debug(); |
61 __publish_debug(); |
62 else if(WasDebugging) AbortDebug(); |
|
63 WasDebugging = Debugging; |
|
64 |
62 |
65 %(publish_calls)s |
63 %(publish_calls)s |
66 |
64 |
67 } |
65 } |
68 |
66 |
171 /* DO ALIGNEMENT */ |
169 /* DO ALIGNEMENT */ |
172 PLC_SetTimer(Tcorr - elapsed, PeriodicTcorr); |
170 PLC_SetTimer(Tcorr - elapsed, PeriodicTcorr); |
173 } |
171 } |
174 } |
172 } |
175 } |
173 } |
176 |
|
177 extern int WaitDebugData(); |
|
178 void suspendDebug() |
|
179 { |
|
180 /* Prevent PLC to enter debug code */ |
|
181 Debugging = 0; |
|
182 /* wait next tick end to be sure*/ |
|
183 WaitDebugData(); |
|
184 } |
|
185 |
|
186 void resumeDebug() |
|
187 { |
|
188 /* Let PLC enter debug code */ |
|
189 Debugging = 1; |
|
190 } |
|