NC0051: VAR_GLOBAL
Configuration of a prefix for a variable declaration between the keywords VAR_GLOBAL and END_VAR.
Sample declaration:
For the following declaration of a global variable, the prefix configured for NC0051 is used for the formation of the overall prefix, compliance with which is checked during execution of the static analysis.
VAR_GLOBAL
gbErrorAcknowledge : BOOL;
END_VARPlease note: The description of NC0051: VAR_GLOBAL applies to the following scopes of variable declarations.
- NC0070: VAR_GLOBAL CONSTANT
- NC0071: VAR_GLOBAL RETAIN
- NC0072: VAR_GLOBAL PERSISTENT
- NC0073: VAR_GLOBAL RETAIN PERSISTENT
- VAR
- NC0053: Program variables
- NC0054: Function block variables
- NC0055: Function/method variables
- NC0056: VAR_INPUT
- NC0057: VAR_OUTPUT
- NC0058: VAR_IN_OUT
- NC0059: VAR_STAT
- NC0060: VAR_INST
- NC0061: VAR_TEMP
- NC0062: VAR CONSTANT
- NC0063: VAR PERSISTENT
- NC0064: VAR RETAIN