Skip to content

Commit

Permalink
Merge pull request #227 from stefanbesler/master
Browse files Browse the repository at this point in the history
fix: wrong parameters in left shift when calculation duration
  • Loading branch information
sagatowski committed Dec 2, 2023
2 parents 4a48bdd + 034831b commit 747acab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TcUnit/TcUnit/POUs/Functions/F_GetCpuCounterAs64bit.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VAR_IN_OUT CONSTANT
END_VAR]]></Declaration>
<Implementation>
<ST><![CDATA[CpuCounter();
F_GetCpuCounterAs64bit := SHL(32, DWORD_TO_LWORD(CpuCounter.cpuCntHiDW)) + DWORD_TO_LWORD(CpuCounter.cpuCntLoDW);]]></ST>
F_GetCpuCounterAs64bit := SHL(DWORD_TO_LWORD(CpuCounter.cpuCntHiDW), 32) + DWORD_TO_LWORD(CpuCounter.cpuCntLoDW);]]></ST>
</Implementation>
</POU>
</TcPlcObject>

0 comments on commit 747acab

Please sign in to comment.