Previous PageNext Page

Placing Objects & Variables

Placing Objects

A ladder diagram is made of objects tied together by links. To place an object in a project, select the object from the tool bar or the tool bar’s drop down menu. Position the pointer where the object is to be inserted and left-click. This “places” the object. Repeat this step for other objects as required.

The last placed object stays selected until a different object is chosen and can be placed multiple times without the need of re-selecting the object.

Now we will place 2 objects, 1 contact and 1 coil.

  1. Select the direct contact tool.
  2. Place the mouse pointer on rung 1 in the first column from the left power rail.
  3. Left-click to place the contact. The Contact Properties Dialog will appear.
  4. Click the Drop down box and select GPI0.
  5. Click OK to finish the contact placement.
  6. Select the direct coil tool.
  7. Place the mouse pointer on rung 1 in the last column next to the right power rail.
  8. Left-click to place the coil. The Coil Properties Dialog box will appear.
  9. Click the Drop down box and select GPO0.
  10. Click OK to finish the coil placement.

Your ladder diagram should look like this.

 

Moving Objects

Objects and functions may be moved around the ladder diagram workspace provided they are moved within their placement rules (ie: coils must only be placed near the right power rail).

To move an object, left-click on the object. Still holding the left mouse button, drag the object to the desired location and release the left mouse button. The object has been moved to the new position.

 

Inserting Variables

  1. Some functions require variables be placed for them to provide setpoints or numerical values required for operation.
  2. To insert a variable, select the INST VARS button on the tool bar.
  3. Using the mouse click in the position to insert the variable. The Variables dialog box will open.
  4. Choose the correct type of variable to insert (Boolean / Integer / Real / Timer / String).
  5. If the variable does not exist, click the ADD button and then complete the Add Variable dialog box. Click OK
  6. Click on the variable name and click OK. The variable is now inserted.
  7. If you just created a variable, delete it by selecting the variable and pressing delete on your keyboard.

Note: When placing variables for functions, generally the output and input types must match (if an integer is selected as P1, then the other inputs and the outputs are locked to an integer type except for specific instances). When variables are inserted near functions, only the first variable placed may allow the selection of the type of variable (integer / real / boolean). Any addtional placements of variables to the same function will be limited to the first variable type (the other type "tabs" are not available).

  Previous PageNext Page