Skip to main content

2.2 Constant Variable

warning
  • Baosky IDE supports GLOBAL CONSTANT in GVS
  • Baosky IDE supports LOCAL CONSTANT in PRG, FB, and FC
  • Constant declaration, supporting basic data types
  • Constant initialization only supports literals

 Constant is data with a fixed value, and its value cannot be changed while the program is running. Constants can be read by various program elements during program execution, but they cannot be overwritten. Different constant values ​​are often assigned corresponding representations, depending on the data type and data format, with types differing from non-type representations