Variable identifiers

Each variable declared in Control FPWIN Pro7 needs an unique identifier. A meaningful identifier helps in program maintenance and saves time finding errors.

NOTE
  • Do not use special characters such as !, ", $, %, brackets, etc.
  • The first character may not be a digit.
  • The last character may not be an underscore. An underscore may not be followed by another underscore.
  • The identifier may not consist of only an address, e.g. 'R0', 'DT0', 'LD0'. The identifier may not consist of only a keyword, e.g. 'ADD', 'ARRAY', 'INT'.
Tip
  • To increment identical identifiers by 1, activate the option Increment the identifier when inserting a new declaration after another under Extras > Options > Program options > Editors > Declaration editors.

    Example

    Enter the first identifier bMotor_on1

    Select to append a new line

    Control FPWIN Pro7 automatically inserts the next identifier bMotor_on2

  • The identifier's prefix can determine the data type during declaration: e.g. bVar1 will set the data type BOOL for the declaration. Activate the option Autocomplete declaration using identifier prefixes under Extras > Options > Program options > Editors > Declaration editors > Prefixes.

    Example

    Enter the identifier iMaximumValue

    Press Tab

    Control FPWIN Pro7 automatically inserts the data type INT according to the prefix table.

Related topics:

Modified on: 2020-10-01Feedback on this pagePanasonic hotline