29.3.2.1 Registering Symbol Variables

  1. From the [Common Settings (R)] menu, select [Symbol Variable (V)], or click . The [Edit Symbol Variables] window appears.

  2. Double-click a cell in the [Name] column to enter a name. (For example, Switch1)

    • Symbol variable names have some restrictions.

      • The maximum number of characters is 32.

      • You cannot use the following symbols.
        + - * / = % & | \ : . , # ? @ [ ] < > "

      • You cannot use TAB or DEL.

      • You cannot use a name starting with a single-byte number.

      • You cannot use a single-byte space.

      • You cannot leave the name blank.

      • Double-byte characters and single-byte characters are different.

      • Upper case characters and lower case characters are different.

  3. Click a cell in the [Type] column to select a type. (For example, bit address)
    If you selected [Bit Address] or [Word Address], you can specify the address. Proceed to step 4.
    If you selected [Bit Variable], [Integer Variable], [Float Variable], or [Real Variable], you can specify the array. To specify the array, go to step 5. If not setting the array, proceed to step 6.
    If you selected [Timer Variable], [Counter Variable], [Time Variable], or [Date Variable], proceed to step 6.
    If you selected [PID Variable], the [Retentive] check box must always be selected. Proceed to step 7.

  4. Specify the address on the [Address] column, then go to step 8.

  5. To specify the array, click a cell in the [Array] column, then select the check box to display the cell in the [Count] column. In the [Count] column, enter the array size (for example, 5). Proceed to step 6.

  6. For the retentive setting, click a cell in the [Retentive] column and select the check box.
    For the volatile setting, clear the check box in the [Retentive] cell.

  7. To input a comment, click the cell in the [Comment] column and enter the comment.