omron — Round

Appendix: Built-in Scripting Language Returned value Returns the result of raising the base to the exponent. Examples ResetBit Resets a single bit in an Integer tag to 0. Syntax ResetBit( tagName , numBitNumber ) tagName The name of an Integer tag where the bit value will be reset. Note: To directly specify the name of a tag, rather than take the value of the tag, you must enclose the tag name in double-quotes. For example, ResetBit( "Second", 1 ) . numBitNumber A numeric tag or value specifying the position (0…31) of the bit to reset. Returned value Notes You 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 Round Rounds numValue to the nearest integer.

Syntax Round( numValue ) InduSoft Web Studio Page 451 Tag Name Expression Tag Pow( 2, 3 ) // Returned value = 8 Tag Pow( 10, 4 ) // Returned value = 10000 Function Group Execution Windows Embedded Thin Client ResetBit Arithmetic Synchronous Supported Supported Supported 0 No error 1 Invalid parameter 2 Tag does not exist Tag Name Expression Tag ResetBit( "numSource", 4 ) // If the tag numSource held a value of 16, then the function returns 0 and numSource holds a new value of 0. Tag ResetBit( "numSource", 1 ) // If the tag numSource held the value 19, then the function returns 0 and numSource holds a new value of 17.

Function Group Execution Windows Embedded Thin Client Round Arithmetic Synchronous Supported Supported Supported