Reverse Bit, Swap Byte,Word order ¶ ReverseBYTEsInDWORD (Function) ReverseBYTEsInWORD (Function) ReverseBitsInBYTE (Function) ReverseBitsInDWORD (Function) ReverseBitsInWORD (Function) ReverseWORDsInDWORD (Function)
ReverseBYTEsInDWORD (FUN) ¶ FUNCTION ReverseBYTEsInDWORD : DWORD Function returns the DWORD “dwInput” with a reversed byte-order. Example: dwInput = 16#01020304 -> MEM.ReverseWORDsInDWORD ( dwInput ) = 16#04030201 InOut: Scope Name Type Comment Return ReverseBYTEsInDWORD DWORD function returns a DWORD with reversed byte-order of “dwInput” Input dwInput DWORD DWORD to reverse
ReverseBYTEsInWORD (FUN) ¶ FUNCTION ReverseBYTEsInWORD : WORD Function returns the WORD “wInput” with a reversed byte-order (Low-Byte<->High-Byte). Example: wInput = 16#0102 -> MEM.ReverseBYTEsInWORD ( wInput ) = 16#0201 InOut: Scope Name Type Comment Return ReverseBYTEsInWORD WORD Input wInput WORD WORD to reverse
ReverseBitsInBYTE (FUN) ¶ FUNCTION ReverseBitsInBYTE : BYTE Function returns the BYTE “byInput” with a reversed bit-order. Example: byInput = 16#01 = 2#00000001 -> MEM.ReverseBitsInBYTE ( byInput ) = 16#80 = 2#10000000 InOut: Scope Name Type Comment Return ReverseBitsInBYTE BYTE function returns a BYTE with reversed bit-order of “byInput” Input byInput BYTE BYTE to reverse
ReverseBitsInDWORD (FUN) ¶ FUNCTION ReverseBitsInDWORD : DWORD Function returns the DWORD “dwInput” with a reversed bit-order. Example: dwInput = 16#01020304 = 2#00000001 00000010 00000011 00000100 -> MEM.ReverseBitsInDWORD ( dwInput ) = 16#20C04080 = 2#00100000 11000000 01000000 10000000 InOut: Scope Name Type Comment Return ReverseBitsInDWORD DWORD function returns a DWORD with reveresed bit-order of “dwInput” Input dwInput DWORD DWORD to reverse
ReverseBitsInWORD (FUN) ¶ FUNCTION ReverseBitsInWORD : WORD Function returns the WORD “wInput” with a reversed bit-order. Example: wInput = 16#0102 = 2#00000001 00000010 -> MEM.ReverseBitsInWORD ( wInput ) = 16#4080 = 2#01000000 10000000 InOut: Scope Name Type Comment Return ReverseBitsInWORD WORD function returns a WORD with reversed bit-order of “wInput” Input wInput WORD WORD to reverse
ReverseWORDsInDWORD (FUN) ¶ FUNCTION ReverseWORDsInDWORD : DWORD Function returns the DWORD “dwInput” with a reversed word-order (Low-Word<->High-Word). Example: dwInput = 16#01020304 -> MEM.ReverseWORDsInDWORD ( dwInput ) = 16#03040102 InOut: Scope Name Type Comment Return ReverseWORDsInDWORD DWORD function returns a DWORD with reversed word-order of “dwInput” Input dwInput DWORD DWORD to reverse
GetSupplierVersion (FUN) ¶ FUNCTION GetSupplierVersion : WORD Function returns the supplier version of this library. High byte contains the release version. Low byte contains the version of implementation. InOut: Scope Name Type Comment Return GetSupplierVersion WORD function returns the supplier version of this library in form of a WORD Input xDummy BOOL dummy bool, right now having no effect on the version
VersionConstants (GVL) ¶ InOut: Scope Name Type Initial Comment Constant gc_byVersion BYTE 1 Version of specification. gc_Version_1 BYTE 0 Constant for creating compiler faults if a wrong version of this library is used.
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 15.12.2017, 11:37:02 companyName string 3S-Smart Software Solutions GmbH libraryFile CAA_Memory.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP12 contentFile CAA_Memory.clean.json version version 2.0.0.0 ProjectInformation OnlineHelp bool True Released True LastModificationDateTime date 15.12.2017, 11:36:55 LibraryCategories library-category-list Intern|CAA|Utilities Author string CAA Technical Workgroup Company CAA Technical Workgroup DefaultNamespace MEM Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder CAA Memory Project CAA_Memory Title CAA Memory Version string Version version 3.5.12.0