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.

43 lines
882 B
Plaintext

<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
<POU Name="CTRL_PWM" Id="{644dae17-72d0-419b-9b8b-edba9206d973}" SpecialFunc="None">
<Declaration><![CDATA[FUNCTION_BLOCK CTRL_PWM
VAR_INPUT
CI, MAN_IN : REAL;
MANUAL : BOOL;
F : REAL;
END_VAR
VAR_OUTPUT
Q : BOOL;
END_VAR
VAR
PW : PWM_DC;
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[(*
version 1.1 21. oct. 2008
programmer hugo
tested by oscat
*)
(* @END_DECLARATION := '0' *)
PW(F := F, DC := SEL(MANUAL,CI,MAN_IN));
Q := PW.Q;
(* revision history
hm 3. jun. 2008 rev 1.0
original version
hm 21. oct. 2008 rev 1.1
optimized code
*)]]></ST>
</Implementation>
<LineIds Name="CTRL_PWM">
<LineId Id="17" Count="3" />
<LineId Id="23" Count="12" />
<LineId Id="9" Count="0" />
</LineIds>
</POU>
</TcPlcObject>