How
View Designer
converts values that are transmitted to numeric tags

View Designer converts values that are being transmitted to numeric tags in the controllers, such as DIN, SINT, or REAL, into a number based on the following rules:
  • If the first character is 0 and the second character is an x, the rest of the data is treated as a hexadecimal number (base 16).
  • If the first character is 0 and the second character is a digit from 0 to 7, the rest of the data is treated as an octal number (base 8).
  • If the value contains a decimal point, the value is treated as a floating point input. Based on the target tag type, the value may be rounded.
  • If the first character is a digit from 1 to 9, the rest of the value is treated as a base 10 number.
  • If value contains the letter e, the characters that follow it are treated as the exponent (base 10) for the number.
  • If the first character is a + or -, it is treated as a sign for the number. The resulting number is based on the rules described above. For example, -020 is treated as a negative octal number.
  • If the value contains any character except digits (0 to 9), ., +, -, or e, it is treated as an error.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal