omron — Pow

Appendix: Built-in Scripting Language Notes You also can use the Bit field to read/write values from specific bits in an integer tag. For example, enter Second->b0 to access the LSB (Least Significant Bit of the Second tag), and Second->b31 to access the MSB (Most Significant Bit of the Second tag). Examples Mod Mod is a built-in scripting function that gets the remainder from a division operation. Syntax Mod( numNumerator , numDenominator ) numNumerator Integer or Real tag containing the Numerator of the function. numDenominator Integer or Real tag containing the Denominator of the function.

Returned value Returns the remainder (as a real number) after dividing numNumerator by numDenominator . Tip: Use the Div function to get the whole number dividend of the operation. Examples Pow Pow is a built-in scripting function that gets the result of raising a numeric value to a specified exponent. Syntax Pow( numBase , numExponent ) numBase Integer or Real tag containing the Base of the function. numExponent Integer or real tag containing the Exponent of the function. Page 450 InduSoft Web Studio Tag Name Expression Tag GetBit( "numSource", 4 ) // If the tag numSource holds a value of 15, then this function returns 0.

Tag GetBit( "numSource", 1 ) // If the tag numSource holds a value of 19, then this function returns 1. Function Group Execution Windows Embedded Thin Client Mod Arithmetic Synchronous Supported Supported Supported Group Execution Windows PC Windows CE Thin Client Arithmetic Synchronous Supported Supported Supported Tag Name Expression Tag Mod( 50, 4 ) // Returned value = 2 Tag Mod( 16, 4 ) // Returned value = 0 Tag Mod( 100, 8.2 ) // Returned value = 1.600 Function Group Execution Windows Embedded Thin Client Pow Arithmetic Synchronous Supported Supported Supported