You are on page 1of 27

Configuration Guide

CG39-26 Rev: 1 January 1997

APACS 4-mation Ladder Logic Version 4.20 and Higher

CG39-26

CONTENTS

TABLE OF CONTENTS
SECTION TITLE PAGE

1.0 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 1.1 DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 1.2 RELATED LITERATURE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 2.0 LADDER LOGIC ELEMENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 3.0 POWER RAILS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 4.0 LINK ELEMENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 4.1 HORIZONTAL LINK ELEMENT (H SHUNT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 4.2 VERTICAL LINK ELEMENT (V SHUNT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 5.0 CONTACTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 NORMALLY OPEN CONTACT (NOC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 NORMALLY CLOSED CONTACT (NCC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3 POSITIVE TRANSITION-SENSING CONTACT (PTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.4 NEGATIVE TRANSITION-SENSING CONTACT (NTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.0 COILS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 COIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 SET (LATCH) COIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3 RESET (UNLATCH) COIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.4 RETENTIVE (MEMORY) COIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5 SET RETENTIVE (MEMORY) COIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6 RESET RETENTIVE (MEMORY) COIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.7 POSITIVE TRANSITION-SENSING COIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8 NEGATIVE TRANSITION-SENSING COIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.9 NEGATED COIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 5-1 5-1 5-2 5-3 6-1 6-1 6-1 6-2 6-3 6-3 6-4 6-4 6-5 6-6

January 1997

CONTENTS

CG39-26

LIST OF FIGURES
FIGURE 2-1 3-1 4-1 4-2 5-1 5-2 6-1 6-2 6-3 TITLE PAGE

Example Ladder Logic Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 Ladder Logic Power Rails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 Logic Flow with Vertical Shunts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 Vertical Shunt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 NOC and NCC Contact Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 PTC and NTC Contact Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 Set Coil Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 Positive Transition Sensing Coil Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5 Negative Transition Sensing Coil Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6

LIST OF TABLES
TABLE 5-1 5-2 5-3 5-4 6-1 6-2 6-3 6-4 6-5 6-6 6-7 6-8 6-9 TITLE PAGE 5-1 5-1 5-2 5-3 6-1 6-1 6-2 6-3 6-3 6-4 6-4 6-5 6-6

State of the Normally Open Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Normally Closed Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Positive Transition-Sensing Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Negative Transition-Sensing Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Set Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Reset Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Retentive Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Set Retentive Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Reset Retentive Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Positive Transition-Sensing Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Negative Transition-Sensing Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . State of the Negated Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Moore Products Co. assumes no liability for errors or omissions in this document or for the application and use of information included in this document. The information herein is subject to change without notice. The Moore logo, APACS, the APACS logo ,QUADLOG and 4-mation are trademarks of Moore Products Co. All other trademarks are the property of the respective owners. 1997 Moore Products Co. All rights reserved.

ii

January 1997

CG39-26

INTRODUCTION

1.0 INTRODUCTION
This Guide provides reference information for the Ladder Logic (LL) language of the 4-mation configuration software. It is intended to be used in conjunction with the configuration procedures located in Using the 4-mation Configuration Software (document number CG39-20). This Guide is arranged into the following sections: C C C C C C Section 1, Introduction Section 2, Ladder Logic Elements Section 3, Power Rails Section 4, Link Elements Section 5, Contacts Section 6, Coils

1.1 DESCRIPTION The Ladder Logic (LL) language is one of the four configuration languages of 4-mation. LL simulates hardwired relay logic . Therefore, it lends itself to the configuration of interlock and interface circuits, etc.

1.2 RELATED LITERATURE Document categories can be identified by the prefix (e.g. CGxx-xx) of the document number as listed here: CG = Configuration Guide SD = Service Data SG = Software Guide UM = User's Manual

The following 4-mation and other APACS literature is available from Moore Products Co. Generally, all needed documentation is supplied with your system. Refer to it as needed or as directed in text.

UM39-6 4-mation Installation and Operation This is a binder which contains the following documents: SG39-12 CG39-20 CG39-21 Getting Started with 4-mation Using the 4-mation Configuration Software 4-mation Software Messages and Diagnostic Codes

January 1997

1-1

INTRODUCTION

CG39-26

UM39-7 4-mation Function Block Language This is a binder which contains the following documents: CG39-22 CGQL-3 CG39EVENT-1 CG39FDI-2 CG39FDI-3 APACS Standard Function Blocks QUADLOG Standard Function Blocks Sequence of Event Function Blocks Modbus Master Function Blocks for the APACS ACM Modbus Slave Function Blocks for the APACS ACM

UM39-8 4-mation Ladder Logic, SFC & ST Languages This is a binder which contains the following documents: CG39-26 CG39-27 CG39-28 Ladder Logic (this document) Sequential Function Chart Structured Text

UM39-9 4-mation, Configuring APACS Hardware This is a binder which contains the following documents: CG39-24 CGQL-4 CG39-25 APACS I/O Module Configuration QUADLOG I/O Module Configuration LIM Configuration

UM39-10 4-mation Application Libraries This is a binder which contains the following document: CG39-23 APACS Basic Application Library

1-2

January 1997

CG39-26

LADDER LOGIC ELEMENTS

2.0 LADDER LOGIC ELEMENTS


Each element in a ladder logic network should be given a reference. A reference is a variable of Boolean data type that is associated with the element. For example, START is the Boolean variable associated with the normally open contact element shown below. Refer to Using the 4-mation Configuration Software (document number CG39-20) for information on how to enter the reference.

LEFT LINK

START

RIGHT LINK

The state of a reference may be different from the state of the ladder logic element. This difference will be explained in the description of each element. All ladder logic elements assume a reference state of FALSE when not assigned a reference. The Ladder Logic language is configured on a 32 x 32 grid of cells called a sheet. In this language, configuration elements are connected together to perform a specific task. The group of connected elements is called a Ladder Logic Network. An example a network is shown in Figure 2-1. The elements permitted in this type of network include: C C C C C C C Ladder Logic Elements (e.g. contacts, coils and shunts) Standard Function Blocks (SFB) Derived Function Blocks (DFB) User Defined Function Blocks (UFDB) Structured Text (ST) statements (However, no selection or iteration statements are permitted) Comments Variables

January 1997

2-1

LADDER LOGIC ELEMENTS

CG39-26

Standard Function Block Variable

Local Variable Passed Variable as a reference as a reference

Coil

Contact

Shunt

Derived Function Block


00001055

FIGURE 2-1 Example Ladder Logic Network The following sections in this Guide explain each of the ladder logic elements. The ladder logic elements are as follows: C C Power Rails Link Elements Horizontal Link Element (H Shunt) Vertical Link Element (V Shunt) Contacts Normally Open Contact (NOC) Normally Closed Contact (NCC) Positive Transition-Sensing Contact (PTC) Negative Transition-Sensing Contact (NTC)

2-2

January 1997

CG39-26

LADDER LOGIC ELEMENTS

Coils Coil Set (Latch) Coil Reset (Unlatch) Coil Retentive (Memory) Coil Set Retentive (Memory) Coil Reset Retentive (Memory) Coil Positive Transition-Sensing Coil Negative Transition-Sensing Coil Negated Coil

As appropriate, refer to documents APACS Standard Function Blocks (document number CG39-22) or QUADLOG Standard Function Blocks (document number CGQL-3) for a description of the standard function blocks that can be used in ladder logic diagrams. #

January 1997

2-3

LADDER LOGIC ELEMENTS

CG39-26

2-4

January 1997

CG39-26

POWER RAILS

3.0 POWER RAILS


A ladder diagram contains a vertical line on the left side called the left power rail. A ladder diagram also contains a vertical line on the right side called the right power rail. The state of the left power rail is considered to be TRUE. No state is defined for the right power rail. The left power rail on a sheet can be extended by connecting horizontal and vertical shunts (explained below) to the right power rail. See Figure 3-1. Connection of elements to the right power rail can be explicit or implied. For example, the right power rail is implied in Figure 3-1. The position of the right rail defaults to column AF. The rail can be moved closer to the left rail by from the Main Menu Bar by selecting Options, Resize Sheet.

FIGURE 3-1 Ladder Logic Power Rails


#

January 1997

3-1

POWER RAILS

CG39-26

3-2

January 1997

CG39-26

LINK ELEMENTS

4.0 LINK ELEMENTS


Link Elements may be either horizontal (Horizontal Shunt) or vertical (Vertical Shunt). Link Elements have an associated state that can be TRUE or FALSE and are used to make connections between contacts, coils, etc.

4.1 HORIZONTAL LINK ELEMENT (H SHUNT) A Horizontal Link Element is displayed as a horizontal line that occupies one cell.

H SHUNT A Horizontal Link Element transfers the state of the element in the cell on its left side to the element in the cell on its right side. This ladder element is not the same as the horizontal wiring element of the Function Block language. The Function Block wiring element can transfer analog and Boolean data and does not indicate state on-line, where as the ladder logic horizontal shunt only transfers Boolean data and does indicate state on-line.

4.2 VERTICAL LINK ELEMENT (V SHUNT) A Vertical Link Element is displayed as a vertical line that can connect the elements in two consecutive cells in the same column.

V SHUNT The state of the Vertical Link Element is the inclusive OR of the states of the elements on its left side and those connected to it via V Shunts above and below. For example, the state of the Vertical Link Element will be FALSE if the states of all the attached elements to its left are FALSE. The state will be TRUE if the state of any of the attached elements to its left are TRUE. The transfer of state can flow up or down, but only in the direction which enables the rung logic to continue its flow from left to right. For example, Figure 4-1 shows vertical shunts flowing upwards which allows the flow of the rung logic to go from left to right

January 1997

4-1

LINK ELEMENTS

CG39-26

FIGURE 4-1 Logic Flow with Vertical Shunts

Unlike the Horizontal Shunt, the Vertical Shunt does not always occupy a cell exclusively. If a Vertical Shunt was placed in a cell first, then another object cannot be placed in that cell. However, if another element (contact, horizontal shunt, etc.) existed in a cell, a vertical shunt can be placed there also. Refer the example in Figure 4-2.

FIGURE 4-2 Vertical Shunt

4-2

January 1997

CG39-26

LINK ELEMENTS

Removing a Vertical Link Element requires a special method. Do not use the [Delete] key as this will delete all cell contents, not just the Vertical Link Element. To remove only a Vertical Link Element and preserve the other contents of the cell: 1. On the ladder logic sheet, place the cursor on the cell where the Vertical Link Element is located. 2. Press the Vertical Link Element key [F4] or Select the Vertical Link Element icon with the left mouse button.

January 1997

4-3

LINK ELEMENTS

CG39-26

4-4

January 1997

CG39-26

CONTACTS

5.0 CONTACTS
A contact is an element that copies a state to the element on its right side that is equal to the AND of the state of the element on its left side with the given reference. For memory usage and ACM execution time information on all standard configuration elements, see Appendix A in Using the 4-mation Configuration Software (document number CG39-20).

5.1 NORMALLY OPEN CONTACT (NOC) The symbol of a NOC is shown below. The state of the left link is copied to the right link if the state of the associated reference is TRUE. Otherwise, the state of the right link is FALSE. Refer to Table 5-1.

TABLE 5-1 State of the Normally Open Contact STATE OF THE LEFT LINK CONDUCTING NOT CONDUCTING or SATISFIED X Where X indicates any state. STATE OF REFERENCE TRUE TRUE FALSE STATE OF ELEMENT CONDUCTING SATISFIED NOT CONDUCTING

5.2 NORMALLY CLOSED CONTACT (NCC) The symbol of a NCC is shown below. The state of the left link is copied to the right link if the state of the associated reference is FALSE. Otherwise, the state of the right link is FALSE. Refer to Table 5-2.

January 1997

5-1

CONTACTS

CG39-26

TABLE 5-2 State of the Normally Closed Contact STATE OF THE LEFT LINK CONDUCTING NOT CONDUCTING or SATISFIED X Where X indicates any state. Figure 5-1 contains an example using a Normally Open Contact and a Normally Closed Contact. In the example the following conditions exist: When SWITCH is TRUE and B is TRUE, LIGHT2 is TRUE and CONDUCTING When SWITCH is TRUE and B is FALSE , LIGHT1 is TRUE and CONDUCTING STATE OF REFERENCE FALSE FALSE TRUE STATE OF ELEMENT CONDUCTING SATISFIED NOT CONDUCTING

FIGURE 5-1 NOC and NCC Contact Example

5.3 POSITIVE TRANSITION-SENSING CONTACT (PTC) The symbol of a PTC is shown below. The state of the right link is TRUE for one controller scan when a FALSE to TRUE transition of the associated reference is sensed at the same time that the state of the left link is TRUE. The state of the right link is FALSE at all other times. Refer to Table 5-3.

5-2

January 1997

CG39-26

CONTACTS

TABLE 5-3 State of the Positive Transition-Sensing Contact STATE OF THE LEFT LINK CONDUCTING STATE OF REFERENCE FALSE to TRUE Change FALSE to TRUE Change FALSE STATE OF ELEMENT CONDUCTING for one scan then NOT CONDUCTING SATISFIED NOT CONDUCTING

NOT CONDUCTING or SATISFIED X Where X indicates any state.

NOTE Since the PTC conducts for a single scan of the controller and the controller execution speed is greater than the screen update rate, the transitions of the PTC may not be visible while observing a configuration on-line.

5.4 NEGATIVE TRANSITION-SENSING CONTACT (NTC) The symbol of an NTC is shown below. The state of the right link is TRUE for one controller scan when a transition of the associated reference from TRUE to FALSE is sensed at the same time that the state of the left link is TRUE. The state of the right link is FALSE at all other times. Refer to Table 5-4.

N
TABLE 5-4 State of the Negative Transition-Sensing Contact STATE OF THE LEFT LINK CONDUCTING STATE OF REFERENCE TRUE to FALSE Change TRUE to FALSE Change TRUE STATE OF ELEMENT CONDUCTING for one scan then NOT CONDUCTING SATISFIED NOT CONDUCTING

NOT CONDUCTING or SATISFIED X Where X indicates any state.

January 1997

5-3

CONTACTS

CG39-26

NOTE Since the NTC conducts for a single scan of the controller and the controller execution speed is greater than the screen update rate, the transitions of the NTC may not be visible while observing a configuration on-line.

Figure 5-2 shows an example of using a Positive Transition-Sensing Contact and a Negative TransitionSensing Contact. In the example the following conditions exist: C C If POS experiences a FALSE to TRUE change when SWITCH is TRUE, then LIGHT1 will CONDUCT for one scan. If NEG experiences a TRUE to FALSE change when SWITCH is TRUE, then LIGHT2 will CONDUCT for one scan.

FIGURE 5-2 PTC and NTC Contact Example #

5-4

January 1997

CG39-26

COILS

6.0 COILS
A coil copies the state of the link on its left to the link on its right without modification. The coil also stores the state of the left link into an associated Boolean variable (e.g. reference to a Boolean input, output or other Boolean variable). For memory usage and ACM execution time information on all standard configuration elements, see Appendix A in Using the 4-mation Configuration Software (document number CG39-20).

6.1 COIL The symbol of a coil is shown below. The state of the left link is copied to the associated reference and to the right link. Refer to Table 6-1.

TABLE 6-1 State of the Coil STATE OF THE LEFT LINK CONDUCTING NOT CONDUCTING or SATISFIED STATE OF REFERENCE TRUE FALSE STATE OF ELEMENT CONDUCTING NOT CONDUCTING

6.2 SET (LATCH) COIL The symbol of a Set Coil is shown below. The associated reference is in the TRUE state when the left link is in the TRUE state. The reference, but not the coil, remains set to TRUE until reset by another coil. Refer to Table 6-2.

(S )
TABLE 6-2 State of the Set Coil STATE OF THE LEFT LINK CONDUCTING NOT CONDUCTING or SATISFIED STATE OF REFERENCE TRUE Last State STATE OF ELEMENT CONDUCTING NOT CONDUCTING

The on-line display of the (S) part of the element is based upon the state of the reference. For example, if the reference is in the TRUE state, then the (S) portion of the element will be displayed in the CONDUCTING state color (i.e. the coil is set). The example in Figure 6-1 demonstrates the functionality of

January 1997

6-1

COILS

CG39-26

the Set Coil. When LATCH_ON is TRUE, the LATCH1 set coil, the LIGHT1 coil, the LATCH1 contact, and the LIGHT2 coil are CONDUCTING. If LATCH_ON then turns FALSE, the LATCH1 set coil and the LIGHT1 coil are NOT CONDUCTING, but since the LATCH1 reference remains TRUE, the LATCH1 contact and the LIGHT2 coil remain CONDUCTING. To reset the LATCH1 reference in this example, the reference LATCH_OFF must become TRUE.

FIGURE 6-1 Set Coil Example

6.3 RESET (UNLATCH) COIL The symbol of a Reset Coil is shown below. The associated reference is in the FALSE state when the left link is in the TRUE state. The reference, but not the coil, remains reset to FALSE until set by another coil. Refer to Table 6-3.

TABLE 6-3 State of the Reset Coil STATE OF THE LEFT LINK CONDUCTING NOT CONDUCTING or SATISFIED STATE OF REFERENCE FALSE Last State STATE OF ELEMENT CONDUCTING NOT CONDUCTING

The on-line display of the (R) part of the element is based upon the state of the reference. For example, if the reference is in the FALSE state then the (R) portion of the element is displayed in the CONDUCTING state color (i.e. the coil is reset).

6-2

January 1997

CG39-26

COILS

6.4 RETENTIVE (MEMORY) COIL The symbol of a Retentive Coil is shown below. The state of the left link is copied to the associated reference variable and to the right link. The retentive feature, which saves the current value through a warm restart, is automatically activated when a reference is assigned to this coil (the RETAIN check box found on the Variable Declaration dialog box is automatically selected). Refer to Table 6-4.

(M )
TABLE 6-4 State of the Retentive Coil STATE OF THE LEFT LINK CONDUCTING NOT CONDUCTING or SATISFIED STATE OF REFERENCE TRUE FALSE STATE OF ELEMENT CONDUCTING NOT CONDUCTING

6.5 SET RETENTIVE (MEMORY) COIL The symbol of a Set Retentive Coil is shown below. The associated reference is set to TRUE when the left link is in the TRUE state. The reference remains TRUE until reset by another coil (R or RM). The retentive feature, which saves the current value through a warm restart, is automatically activated when a reference is assigned to this coil (the RETAIN check box found on the Variable Declaration dialog box is automatically selected). Refer to Table 6-5.

TABLE 6-5 State of the Set Retentive Coil STATE OF THE LEFT LINK CONDUCTING NOT CONDUCTING or SATISFIED STATE OF REFERENCE TRUE Last State STATE OF ELEMENT CONDUCTING NOT CONDUCTING

January 1997

6-3

COILS

CG39-26

6.6 RESET RETENTIVE (MEMORY) COIL The symbol of a Reset Retentive Coil is shown above. The associated reference is reset to FALSE when the left link is in the TRUE state. The reference remains reset to FALSE until set by another coil (S or SM). The retentive feature, which saves the current value through a warm restart, is automatically activated when a reference is assigned to this coil (the RETAIN check box found on the Variable Declaration dialog box is automatically selected). Refer to Table 6-6.

TABLE 6-6 State of the Reset Retentive Coil STATE OF THE LEFT LINK CONDUCTING NOT CONDUCTING or SATISFIED STATE OF REFERENCE FALSE Last State STATE OF ELEMENT CONDUCTING NOT CONDUCTING

6.7 POSITIVE TRANSITION-SENSING COIL The symbol of a Positive Transition-Sensing Coil is shown below. The state of the associated reference is TRUE for one controller scan when a FALSE to TRUE transition of the left link is sensed. The state of the left link is always copied to the right link. Refer to Table 6-7.

TABLE 6-7 State of the Positive Transition-Sensing Coil STATE OF THE LEFT LINK FALSE to TRUE change NOT CONDUCTING or SATISFIED CONDUCTING, no change STATE OF REFERENCE TRUE for one scan FALSE FALSE STATE OF ELEMENT CONDUCTING NOT CONDUCTING CONDUCTING

The example in Figure 6-2 demonstrates the functionality of the Positive Transition-Sensing Coil.

6-4

January 1997

CG39-26

COILS

When SWITCH changes from FALSE to TRUE, coil A, coil LIGHT1, contact A and coil LIGHT2 are all CONDUCTING. The very next scan, SWITCH remains CONDUCTING and coil A and coil LIGHT1 remain CONDUCTING. However, contact A and coil LIGHT2 are NOT CONDUCTING because the reference of a Positive Transition-Sensing Coil is TRUE for one scan only. If SWITCH becomes FALSE, then the A and LIGHT1 coils are NOT CONDUCTING.

FIGURE 6-2 Positive Transition Sensing Coil Example

6.8 NEGATIVE TRANSITION-SENSING COIL The symbol of a Negative Transition-Sensing Coil is shown below. The state of the associated reference is TRUE for one controller scan when a TRUE to FALSE transition of the left link is sensed. The state of the left link is always copied to the right link. Refer to Table 6-8.

TABLE 6-8 State of the Negative Transition-Sensing Coil STATE OF THE LEFT LINK TRUE to FALSE change NOT CONDUCTING or SATISFIED CONDUCTING, no change STATE OF REFERENCE TRUE for one scan FALSE FALSE STATE OF ELEMENT CONDUCTING NOT CONDUCTING CONDUCTING

The example in Figure 6-3 demonstrates the functionality of the Negative Transition-Sensing Coil.

January 1997

6-5

COILS

CG39-26

When the reference variable SWITCH is TRUE, contact SWITCH, coil B, and coil LIGHT1 are CONDUCTING because the state of the left link is always copied to the right link. Contact B and LIGHT2 are NOT CONDUCTING because the reference of a Negative Transition-Sensing Coil is not TRUE unless a negative transition is sensed. When the reference SWITCH transitions from TRUE to FALSE, the B coil, LIGHT1 coil , and SWITCH contact are NOT CONDUCTING, while the B contact and LIGHT2 coil are CONDUCTING. The very next scan, the SWITCH contact, B coil and LIGHT1 coil remain NOT CONDUCTING while the B contact and LIGHT2 coil change to NOT CONDUCTING because the reference of a Negative Transition-Sensing Coil is TRUE for one scan only.

FIGURE 6-3 Negative Transition Sensing Coil Example

6.9 NEGATED COIL The symbol of a Negated Coil is shown below. The inverse of the left link is copied to the associated reference variable. The state of the left link is always copied to the right link. Refer to Table 6-9.

TABLE 6-9 State of the Negated Coil STATE OF THE LEFT LINK CONDUCTING NOT CONDUCTING or SATISFIED STATE OF REFERENCE FALSE TRUE STATE OF ELEMENT CONDUCTING NOT CONDUCTING

6-6

January 1997

You might also like