HEX/ASCII Functions ¶ BYTE_TO_HEXinASCII (Function) HEXinASCII_TO_BYTE (Function) WORD_AS_STRING (Function)
WORD_TO_GRAY (FUN) ¶ FUNCTION WORD_TO_GRAY : WORD Converts one WORD of binary code into one WORD of GRAY code InOut: Scope Name Type Comment Return WORD_TO_GRAY WORD Value in GRAY code for the input W Input W WORD Value in binary code
BYTE_TO_HEXinASCII (FUN) ¶ FUNCTION BYTE_TO_HEXinASCII : WORD Converts one byte of binary code into one word in HEX code representing its ASCII value The higher bits in the input are represented by the higher byte in the output. Use HEXinASCII_TO_BYTE function for the reverse conversion. InOut: Scope Name Type Comment Return BYTE_TO_HEXinASCII WORD ASCII value as WORD of the input B Input B BYTE Value in binary code
HEXinASCII_TO_BYTE (FUN) ¶ FUNCTION HEXinASCII_TO_BYTE : BYTE Converts one word in HEX code representing its ASCII value into one byte of binary code The higher byte in the input represents the higher bits in the output. Use BYTE_TO_HEXinASCII function for the reverse conversion. InOut: Scope Name Type Comment Return HEXinASCII_TO_BYTE BYTE Value in binary code of the input W Input W WORD Value in HEX code
WORD_AS_STRING (FUN) ¶ FUNCTION WORD_AS_STRING : STRING(2) Converts one word into its ASCII string representation Example: Input : '16#48_46' Byte order : FALSE -> String : 'FH' InOut: Scope Name Type Comment Return WORD_AS_STRING STRING(2) A STRING(2) representing the HEX code of the input W Input W WORD Input value ORDER BOOL TRUE : Swaps high and low byte
Library Information ¶ GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function)
GetLibVersion (FUN) ¶ FUNCTION GetLibVersion : VERSION This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersion VERSION
GetLibVersionNumber (FUN) ¶ FUNCTION GetLibVersionNumber : DWORD This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersionNumber DWORD
IsLibReleased (FUN) ¶ FUNCTION IsLibReleased : BOOL This function has been automatically generated from the project information. InOut: Scope Name Type Return IsLibReleased BOOL
Mathematical Functions ¶ DERIVATIVE (FunctionBlock) INTEGRAL (FunctionBlock) LIN_TRAFO (FunctionBlock) ROTATION_DIFFERENCE (FunctionBlock) STATISTICS_INT (FunctionBlock) STATISTICS_REAL (FunctionBlock) VARIANCE (FunctionBlock)