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

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

Removed second limit check in PID loop

parent 48f22073
Branches main
No related tags found
No related merge requests found
......@@ -265,16 +265,13 @@ EVENT:
' Check that output is within safe limits
if (set_output[i] < pid_min[pidn]) then set_output[i] = pid_min[pidn]
if (set_output[i] > pid_max[pidn]) then set_output[i] = pid_max[pidn]
' Check that output is within safe limits [-10,+10]V
if (set_output[i] < -N) then set_output[i] = - N
if (set_output[i] > 65535) then set_output[i] = 65535
endif
NEXT i
'========================= SET NEW AOUT VALUES =========================
'Write values to AOUT Cards
P2_Write_DAC8(AOUT1,set_output,1) ''sende neue stellwerte an die Analog out Karten
P2_Write_DAC8(AOUT1,set_output,1)
P2_Write_DAC8(AOUT2,set_output,9)
'Set all voltages synchronously
......@@ -298,7 +295,7 @@ EVENT:
'=========================== CHECK END OF RUN ==========================
IF (processIdx >= par_2) THEN
IF (processIdx >= par_2) THEN
END 'end loop when last last timing event completed
ENDIF
......
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