Skip to main content

8.2 Variable Definition

info

The following contents are all differences between Baosky IDE and XIN3Plat-Control.

8.2.1 Global variables

Baosky IDE has unifiedunified standardized the program GVS, PU, UDT must define its own namespace

XIN3Plat-ControlBaosky IDE
GVL, the global variable namespace for defining variables
GVL editor attributes exist, attribute deletion specific examples refer to the namespace
GVS, just a group name of the global variable table, the namespace of GVS is the same as that of PU Name it separately when defining
Notes on accessing variables:
1. If the global variable is consistent with the PU namespace, you can omit the namespace name of the variable and access it directly
2.If the global variable is not consistent with the PU namespace, you need to access the variable with the namespace name

8.2.2 Basic data types

Basic data typesKeywordsRemarks
STRINGSTRINGThe default is 80 characters, the maximum length of XIN3Plat-Control is 255 characters, and the maximum length of Baosky IDE is 254 characters.
DurationTIMEBoth are 32 bits, and the precision is milliseconds; XIN3Plat-Control only supports positive numbers, and Baosky IDE supports positive and negative numbers.
DateDATEBoth are 32 bits, XIN3Plat-Control storage units have a minimum unit of seconds and Baosky IDE storage has a minimum unit of days.
LTIMEBoth are 64 bits, with nanosecond precision. XIN3Plat-Control only supports positive numbers, and Baosky IDE supports positive and negative numbers.

8.2.3 Custom data types

UDTXIN3Plat-ControlBaosky IDE
StructureNo limit on nesting depthT3 has a maximum nesting depth of 6 levels
T4 has a maximum nesting depth of 8 levels