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.

37 lines
1.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
<POU Name="fbSamples" Id="{7084c0f8-26c4-42fc-8481-4b12fee9b2fb}" SpecialFunc="None">
<Declaration><![CDATA[FUNCTION_BLOCK fbSamples
VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[// To measure process time
(* PLC libraries to include: Tc2_EtherCAT
https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_plc_intro/2530307467.html&id=
VAR
MeasureStart : T_DCTIME64;
MeasureResult : T_DCTIME64;
END_VAR
PROGRAM:
MeasureStart:=F_GetActualDcTime64(); (*Insert your program code to measure the processing time*)
MeasureResult:=F_GetActualDcTime64()-MeasureStart;
*)]]></ST>
</Implementation>
<LineIds Name="fbSamples">
<LineId Id="22" Count="1" />
<LineId Id="9" Count="0" />
<LineId Id="24" Count="1" />
<LineId Id="15" Count="6" />
<LineId Id="11" Count="0" />
<LineId Id="10" Count="0" />
</LineIds>
</POU>
</TcPlcObject>