Coils in LD

According to →IEC-standard: A coil copies the state of the link on its left to the link on its right without modification and it stores an appropriate function of the state or transition of the left link into 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 coils (depending on the →POU type)::

Name

Symbol

Meaning

Coil

images/download/thumbnails/460423843/CoilExample-version-1-modificationdate-1615383173641-api-v2.png

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

Negated coil

images/download/thumbnails/460423853/CoilNegatedExample-version-1-modificationdate-1615383238221-api-v2.png

The state of the left link is copied to the right link. The inverse of the state of the left link is copied to the associated Boolean variable (= Var1 in the left illustration). That is, if the state of the left link is OFF, then the state of the associated variable is ON, and vice versa.

Set latch coil

images/download/thumbnails/460423858/CoilSetExample-version-1-modificationdate-1615383266665-api-v2.png

The associated Boolean variable (= Var1 in the left illustration) is set to the ON state when the left link is in the ON state, and remains set until reset by a reset latch coil.

Reset latch coil

images/download/thumbnails/460423863/CoilResetExample-version-1-modificationdate-1615383293563-api-v2.png

The associated Boolean variable (= Var1 in the left illustration) is reset to the OFF state when the left link is in the ON state, and remains reset until set by a set latch coil.

Positive transition sensing coil

images/download/thumbnails/460423868/CoilPExample-version-1-modificationdate-1615383320130-api-v2.png

The state of the associated Boolean variable (= Var1 in the left illustration) is ON from one evaluation of this element to the next when a transition of the left link from OFF to ON is sensed. The state of the left link is always copied to the right link.

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

Negative transition sensing coil

images/download/thumbnails/460423873/CoilNExample-version-1-modificationdate-1615383344449-api-v2.png

The state of the associated Boolean variable (= Var1 in the left illustration) is ON from one evaluation of this element to the next when a transition of the left link from ON to OFF is sensed. The state of the left link is always copied to the right link.

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

Representation

Symbolic representation:

images/download/thumbnails/460423848/CoilExample2-version-1-modificationdate-1615383206458-api-v2.png

Each coil provides 3 input fields above the coil symbol:

  • Description (= [Description] in the upper illustration): Here you are able to enter a description for the coil. If you do not enter any text, this field is hidden. Only when you position the mouse pointer over the coil, 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 coil, 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 coil. 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