Assigning an existing variable to a contact or coil

When you are declaring variables within the LD-editor, the first variable is automatically assigned to the contact or coil for which you declare the →variables. This is how to assign another variable to a contact or coil:

  1. Position the mouse pointer onto the contact or coil for which you want to assign the variable.
    By default, the ENO output is entered as the associated variable for a new contact or coil.

  2. Double-click the field with the variable.

  3. Delete the existing text, e.g. ENO.
    Result: An input field is opened. Below it, a content assist list with all available variables is displayed.
    images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg The icon in front of the name for the variable informs about the type for the variable (see "Instance-related and PLC-related information and actions within Instances view" for the meaning of the icons). The data type BOOL of the variable is displayed behind the name for the variable.
    If you want to close the input field without changing the associated variable, click the primary mouse button outside the input field or press the ESC-key.

  4. Use the content assist like as follows:

    1. Enter one or more letters. This displays a list with all elements fitting your input.
      Example: Enter Var . The list provides all variables containing the text Var .

    2. Click an element in the list or select it (by using the mouse or the cursor movement keys) and press the Enter-key .