You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1015 B
Plaintext

<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
<POU Name="DEAD_ZONE" Id="{ac384c32-d9db-416f-989e-95f86da03382}" SpecialFunc="None">
<Declaration><![CDATA[FUNCTION DEAD_ZONE : REAL
VAR_INPUT
X : REAL;
L : REAL;
END_VAR
VAR
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[(*
version 1.2 11. mar. 2009
programmer hugo
tested by oscat
dead_zone2 is a linear transfer function which follows a linear function except for x is close to 0.
Y = X if abs(x) > L otherwise its 0.
*)
(* @END_DECLARATION := '0' *)
IF ABS(x) > L THEN
dead_zone := X;
ELSE
DEAD_ZONE := 0.0;
END_IF;
(* revision history
hm 12. feb. 2007 rev 1.0
original version
hm 14. jun. 2008 rev 1.1
improved performance
hm 11. mar. 2009 rev 1.2
real constants updated to new systax using dot
*)]]></ST>
</Implementation>
<LineIds Name="DEAD_ZONE">
<LineId Id="10" Count="24" />
<LineId Id="7" Count="0" />
</LineIds>
</POU>
</TcPlcObject>