Appendix: Built-in Scripting Language GetBit GetBit is a built-in scripting function that gets the value of a single bit in a numeric value. Syntax GetBit( tagName , numBitNumber ) tagName The name of an Integer tag from which the bit value will be gotten. 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, GetBit( "Second", 1 ) . numBitNumber A numeric tag or value specifying the position (0…31) of the bit to get. Returned value Returns the value ( 0 or 1 ) of the specified bit.
InduSoft Web Studio Page 449 Tag Name Expression Tag Format( "%5.3g", 12.34 ) // Returned value = " 12.3" Tag Name Expression Tag Format( "%0.1G", 12.34 ) // Returned value = "1E+001" Tag Format( "%0.2G", 12.34 ) // Returned value = "12" Tag Format( "%0.3G", 12.34 ) // Returned value = "12.3" Tag Format( "%05.3G", 12.34 ) // Returned value = "012.3" Tag Format( "%5.3G", 12.34 ) // Returned value = "12.3" Tag Name Expression Tag Format( "%s", 12.34 ) // Returned value = "12" Tag Format( "%04s", 12.34 ) // Returned value = "0012" Tag Format( "%4s", 12.34 ) // Returned value = "12" Tag Name Expression Tag Format( "%c", 97 ) // Returned value = "a" Tag Format( "%4c", 97 ) // Returned value = "a" Tag Format( "%04c", 97 ) // Returned value = "000a" Tag Name Expression Tag Format( "%h", 30 ) // Returned value = "00:00:30" Tag Format( "%h", 60 ) // Returned value = "00:01:00" Tag Format( "%h", 90 ) // Returned value = "00:01:30" Tag Format( "%h", 3600 ) // Returned value = "01:00:00" Tag Name Expression Tag Format( "##.#", 26.56789 ) // Returned value = "26.6" Tag Format( "#.##", 26.56789 ) // Returned value = "26.57" Tag Format( "##.##", 26.56789 ) // Returned value = "26.57" Function Group Execution Windows Embedded Thin Client GetBit Arithmetic Synchronous Supported Supported Supported