We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a48bdd commit 034831bCopy full SHA for 034831b
TcUnit/TcUnit/POUs/Functions/F_GetCpuCounterAs64bit.TcPOU
@@ -11,7 +11,7 @@ VAR_IN_OUT CONSTANT
11
END_VAR]]></Declaration>
12
<Implementation>
13
<ST><![CDATA[CpuCounter();
14
-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>
15
</Implementation>
16
</POU>
17
</TcPlcObject>
0 commit comments