Contacts in LD

According to →IEC-standard: A contact is an element which imparts a state to the horizontal link on its right side which is equal to the Boolean AND of the state of the horizontal link at its left side with an appropriate function of an associated Boolean input, output, or memory variable. A contact does not modify the value of the associated Boolean →variable .

See under "Link elements (lines) and their states in LD" for more information about the state of links.

logi.CAD 3 provides the following types of contacts (depending on the →POU type):

Name

Symbol

Meaning

Normally open contact

images/download/thumbnails/460423783/Contact-version-1-modificationdate-1615378974367-api-v2.png

The state of the left link is copied to the right link, if the state of the associated Boolean variable (= Var1 in the left illustration) is ON. Otherwise, the state of the right link is OFF.

Normally closed contact

images/download/thumbnails/460423791/ContactNegated-version-1-modificationdate-1615379032906-api-v2.png

The state of the left link is copied to the right link, if the state of the associated Boolean variable (= Var1 in the left illustration) is OFF. Otherwise, the state of the right link is OFF.

Positive transition sensing contact

images/download/thumbnails/460423797/ContactP-version-1-modificationdate-1615379074693-api-v2.png

The state of the right link is ON from one evaluation of this element to the next, when a transition of the associated variable (= Var1 in the left illustration) from OFF to ON is sensed at the same time that the state of the left link is ON. The state of the right link is OFF at all other times.

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg This contact is not available within a →function.

Negative transition sensing contact

images/download/thumbnails/460423804/ContactN-version-1-modificationdate-1615379128292-api-v2.png

The state of the right link is ON from one evaluation of this element to the next, when a transition of the associated variable (= Var1 in the left illustration) from ON to OFF is sensed at the same time that the state of the left link is ON. The state of the right link is OFF at all other times.

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg This contact is not available within a →function.

Representation

Symbolic representation:

images/download/thumbnails/460423810/Contact2-version-1-modificationdate-1615379170701-api-v2.png

Each contact provides 3 input fields above the contact symbol:

  • Description (= [Description] in the upper illustration): Here you are able to enter a description for the contact. If you do not enter any text, this field is hidden. Only when you position the mouse pointer over the contact, the field becomes visible so that you are able to enter a text.

  • Tag (= [Tag] in the upper illustration): If you do not enter any text, this field is hidden. Only when you position the mouse pointer over the contact, the field becomes visible so that you are able to enter a text.

  • Associated variable (= Var1 in the upper illustration): Here you are able to associate a variable to the contact. By default, the ENO output is entered as the associated variable.

Example for a rung with 2 contacts and one coil:

images/download/attachments/460425147/Rung2_EN-version-1-modificationdate-1617192531405-api-v2.png