omron — Swap32

Appendix: Built-in Scripting Language Syntax Sqrt( numValue ) numValue Integer or Real tag to be square rooted. Returned value Returns the square root of the value in the numValue tag. Note: If numValue has a negative value, then this function returns the value 0 and sets the quality of the returned tag to BAD . Examples Swap16 Swaps the two lower bytes of a tag. Syntax Swap16( numValue ) numValue Integer tag that holds the numeric value of the bytes to be swapped. Returned value Returns the numeric value after swapping the bytes. Examples Swap32 Swaps two words in a tag. Syntax Swap32( numValue ) numValue Integer tag that holds the numeric value of the words to be swapped.

Returned value Returns the numeric value after swapping the words. InduSoft Web Studio Page 453 Tag Name Expression Tag SQRT( 25 ) // Returns the value 5 Tag SQRT( 67 ) // Returns the value 8.185353 Function Group Execution Windows Embedded Thin Client Swap16 Arithmetic Synchronous Supported Supported Supported Tag Name Expression Tag Swap16( 16 ) // 16 = 0000000000010000 in binary. Returned value = 4096 = 0001000000000000 in binary. Tag Swap16( 43760 ) // 43760 = 1010010111110000 in binary. Returned value = 61610 = 1111000010100101 in binary. Function Group Execution Windows Embedded Thin Client Swap32 Arithmetic Synchronous Supported Supported Supported