Produkte


dd

Beispielskripts: Kategorien

Produkte » Produkte

Beispiel-Scripts

Kategorie: Math

Convert_PrintfANSI_C
 
Use this command if you like to change its data format. It is possible to convert 3 bytes ASCII to a binary word value or vice versa. All known conversion types are usable either for source and for destination, so data conversion is possible from every data representation to another.
Download  Convert_PrintfANSI_C.dss
example_ASCII_IP
 
This script demonstrates the conversion of a buffer containing an IP-address as an ASCII-String into an Long variable. This long variable could be used whereever an IP-address is necessary.
Download  example_ASCII_IP.dss
example_CalcChecksum
 
This command calculates a checksum with the given method for a number of bytes in the device's memory. The variable source is a buffer containing the data the checksum should be calculated for. Destination is a word variable which holds the checksum after the routine finishes with return code OK. The number of characters is a variable which holds the number of bytes the checksum should be calculated for. Checksum method defines which method should be used for calculation.
Download  example_CalcChecksum.dss
example_Calculate
 
This command is used for assigning the result of a mathematical or logical operation of exactly two operators to a given variable.
Download  example_Calculate.dss
example_Convert
 
Use this command if you like to change its data format. It is possible to convert 3 bytes ASCII to a binary word value or vice versa. All known conversion types are usable either for source and for destination, so data conversion is possible from every data representation to another.
Download  example_Convert.dss
example_float_math
 
This command is used for calculating floating values.
Download  example_float_math.dss
example_math_conv_ASCII_Dyn
 
Use this command if you like to change its data format. It is possible to convert 3 bytes ASCII to a binary word value or vice versa. All known conversion types are usable either for source and for destination, so data conversion is possible from every data representation to another.
Download  example_math_conv_ASCII_Dyn.dss
example_math_conv_float_real
 
Use this command if you like to change its data format. It is possible to convert 3 bytes ASCII to a binary word value or vice versa. All known conversion types are usable either for source and for destination, so data conversion is possible from every data representation to another.
Download  example_math_conv_float_real.dss
example_Printf_ANSI_C
 
Convert a long or float value into a "printf" string from the standard ANSI_C compiler
Download  example_Printf_ANSI_C.dss
SignedIntToFloat
 
Convert a signed word value into float.
Download  SignedIntToFloat.dss

 

« Zurück