The text of a manual · part 10 of 39
Series 90-30/20/Micro PLC CPU Instruction Set Reference Manual: Chapter 4 - Relay Functions
Pages 82 to 89 of 337, from Series 90-30/20/Micro PLC CPU Instruction Set Reference Manual
The original document is the PDF (4.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the GE Fanuc IC692CPU211D / IC692MDR541C, Fanuc IC692CPU211D / IC692MDR541C, GE IC692CPU211D / IC692MDR541C and GE Fanuc IC693CPU311X
Page 82
Chapter
Relay Functions
4 This chapter explains the use of contacts, coils, and links in ladder logic rungs. Function
Page
Coils and negated coils.
4-2
Normally open and normal closed contacts.
4-1
Retentive and negated retentive coils.
4-4
Positive and negative transition coils.
4-5
SET and RESET coils.
4-6
Retentive SET and RESET coils.
4-7
Horizontal and vertical links.
4-7
Continuation coils and contacts.
4-8
Using Contacts A contact is used to monitor the state of a reference. Whether the contact passes power flow depends on the state or status of the reference being monitored and on the contact type. A reference is ON if its state is 1; it is OFF if its state is 0. Table 4-1. Types of Contacts
GFK-0467M
Type of Contact
Display
Normally Open, | | - Normally Closed, |/| - Continuation Contact
<+> - - - Contact Passes Power to Right When reference is ON. When reference is OFF. If the preceding continuation coil is set ON.
4-1
Page 83
4
Using Coils Coils are used to control discrete references such as %Q and %M memory types. Conditional logic must be used to control the flow of power to a coil. Coils cause action directly; they do not pass power flow to the right. If additional logic in the program should be executed as a result of the coil condition, an internal reference (contact) should be used for that coil or a continuation coil/contact combination may be used. Coils are always located at the rightmost position of a line of logic. A rung may contain up to eight coils. The type of coil used will depend on the type of program action desired. The states of retentive coils are saved when power is cycled or when the PLC goes from STOP to RUN mode. The states of non-retentive coils are set to zero when power is cycled or the PLC goes from STOP to RUN mode. Table 4-2. Types of Coils Type of Coil
Display
Power to Coil
Normally, () - ON
Sets reference ON.
OFF
Sets reference OFF.
ON
Sets reference OFF.
OFF
Sets reference ON.
Open Negated Retentive Negated, (/) - - (M) - - (/M) - Retentive
ON
Sets reference ON, retentive.
OFF
Sets reference OFF, retentive.
ON
Sets reference OFF, retentive.
OFF
Sets reference ON, retentive.
Positive Transition, (↑) - OFF→ON
If reference is OFF, sets it ON for one sweep.
Negative Transition, (↓) - ON←OFF
If reference is OFF, sets it ON for one sweep.
SET, (S) - ON
Sets reference ON until reset OFF by, (R) - .
OFF
Does not change the coil state.
RESET, (R) - ON
Sets reference OFF until set ON by, (S) - .
OFF
Does not change the coil state. Sets reference ON until reset OFF by, (RM) - , retentive.
Retentive SET, (SM) - ON OFF
Does not change the coil state.
Retentive, (RM) - ON
Sets reference OFF until set ON by, (SM) - , retentive.
OFF
Does not change the coil state.
ON
Sets next continuation contact ON.
OFF
Sets next continuation contact OFF.
RESET Continuation Coil
4-2
Result, - <+>
Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual – May 2002
GFK-0467M
Page 84
4
Normally Open Contact, | | - A normally open contact acts as a switch that passes power flow if the associated reference is ON (at logic 1).
Normally Closed Contact, |/| - A normally closed contact acts as a switch that passes power flow if the associated reference is OFF (at logic 0).
Example The following example shows a rung with 10 elements having nicknames (see Chapter 2 for information on nicknames) from E1 to E10. Coil E10 is ON when reference E1, E2, E5, E6, and E9 are ON and references E3, E4, E7, and E8 are OFF.
| | E1 E2 E3 E4 E5 E6 E7 E8 E9 E10 | - - | | - - - - - | | - - - - - |/| - - - - - |/| - - - - - | | - - - - - | | - - - - - |/| - - - - - |/| - - - - - | | - - - - - ( ) - |
Coil, ( ) - A coil sets a discrete reference ON while it receives power flow. It is non-retentive; therefore, it cannot be used with system status references (%SA, %SB, %SC) or global Genius references (%G).
Example In the following example, coil E3 is ON when reference E1 is ON and reference E2 is OFF.
| | E1 E2 E3 | - - | | - - - - - |/| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( ) - |
GFK-0467M
Chapter 4 Relay Functions
4-3
Page 85
4
Negated Coil, (/) - A negated coil sets a discrete reference ON when it does not receive power flow. It is not retentive; therefore, it cannot be used with system status references (%SA, %SB, %SC), or global Genius references (%G).
Example In the following example, coil E3 is ON when reference E1 is OFF. | | E1 E2 | - - | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (/) - | | E2 E3 | - - | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( ) - |
Retentive Coil, (M) - Like a normally open coil, the retentive coil sets a discrete reference ON while it receives power flow. The state of the retentive coil is retained across power failure. Therefore, it cannot be used with references from strictly non-retentive memory (%T).
Negated Retentive Coil, (/M) - The negated retentive coil sets a discrete reference ON when it does not receive power flow. The state of the negated retentive coil is retained across power failure. Therefore, it cannot be used with references from strictly non-retentive memory (%T).
Positive Transition Coil, (↑) - If the reference associated with a positive transition coil is OFF, when the coil receives power flow it is set to ON. Any contacts associated with that coil will change state for one PLC scan (sweep). (If the rung containing the coil is skipped on subsequent sweeps, it will remain ON.) This coil can be used as a one-shot. Each reference should only be used as a transition coil once in the application program, so as to preserve the one-shot nature of the coil. Transitional coils can be used with references from either retentive or non-retentive memory (%Q, %M, %T, %G, %SA, %SB, or %SC).
4-4
Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual – May 2002
GFK-0467M
Page 86
4
Negative Transition Coil, (↓) - If the reference associated with this coil is OFF, when the coil stops receiving power flow, the reference is set to ON and any contacts associated with that coil will change state for one sweep. A reference used with a transition coil should only be used as a coil once in the application program, so as to preserve the one-shot nature of the coil. Transitional coils can be used with references from either retentive or non-retentive memory (%Q, %M, %T, %G, %SA, %SB, or %SC).
Example In the following example, when reference E1 goes from OFF to ON, coils E2 and E3 receive power flow, turning E2 ON for one logic sweep. When E1 goes from ON to OFF, power flow is removed from E2 and E3, turning coil E3 ON for one sweep.
| | E1 E2 | - - | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (↑) - | | E1 E3 | - - | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (↓) - |
SET Coil, (S), SET and RESET are non-retentive coils that can be used to keep (“latch”) the state of a reference either ON or OFF. When a SET coil receives power flow, its reference stays ON (whether or not the coil itself continues to receive power flow) until the reference is reset by another coil.
RESET Coil, (R) - The RESET coil sets a discrete reference OFF if the coil receives power flow. The reference remains OFF until the reference is reset by another coil. The last-solved SET coil or RESET coil of a pair takes precedence.
GFK-0467M
Chapter 4 Relay Functions
4-5
Page 87
4
Example In the following example, the coil represented by E1(S) is turned ON if E2 turns ON. Even if E2 turns OFF, coil E1 stays ON until coil E1(R ) is energized by E3. NOTE: If both E2 and E3 were ON at the same time, coil E1 would be OFF. This is because rungs are scanned from top to bottom, so the status of the reset coil in the second rung is the last one to be written to the output table. If the order of the rungs was reversed, the set coil would be the last one scanned, so E1 would be ON if E2 and E3 were both ON at the same time.
| | E2 E1 | - - | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (S) - | | | | | E3 E1 | - - | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (R) - | | | |
Note When the level of coil checking is SINGLE, you can use a specific %M or %Q reference with only one Coil, but you can use it with one SET Coil and one RESET Coil simultaneously. When the level of coil checking is WARN MULTIPLE or MULTIPLE, then each reference can be used with multiple Coils, SET Coils, and RESET Coils. With multiple usage, a reference could be turned ON by either a SET Coil or a normal Coil and could be turned OFF by a RESET Coil or by a normal Coil.
Retentive SET Coil, (SM) - Retentive SET and RESET coils are similar to SET and RESET coils, but they are retained across power failure or when the PLC transitions from STOP to RUN mode. A retentive SET coil sets a discrete reference ON if the coil receives power flow. The reference remains ON until reset by a retentive RESET coil. Retentive SET coils write an undefined result to the transition bit for the given reference. (Refer to the information on “Transitions and Overrides” in chapter 2, “System Operation.”)
Retentive RESET Coil, (RM) - This coil sets a discrete reference OFF if it receives power flow. The reference remains OFF until set by a retentive SET coil. The state of this coil is retained across power failure or when the PLC transitions from STOP to RUN mode.
4-6
Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual – May 2002
GFK-0467M
Page 88
4 Retentive RESET coils write an undefined result to the transition bit for the given reference. (Refer to the information on “Transitions and Overrides” in chapter 2, “System Operation.”)
Links Horizontal and vertical links, which appear as straight lines on-screen, are used to connect elements of a line of ladder logic between functions. Their purpose is to complete the flow of logic (“power”) from left to right in a line of logic.
Note You can not use a horizontal link to tie a function or coil to the left power rail. You can, however, use %S7, the AWL_ON (always on) system bit with a normally open contact tied to the power rail to call a function every sweep.
Example Several links are used in the following example: •
Horizontal links connect contact E2 to contact E5, and contact E5 to coil E1.
•
Vertical links connect contact E8 across contact E6, contact E9 across contact E7, and the right side of contacts E7/E9 to the junction of contacts E2 and E5. Horizontal Links
E2
E3
E5 E6
E7
E8
E9
E1
Vertical Links
GFK-0467M
Chapter 4 Relay Functions
4-7
Page 89
4
Continuation Coils ( - - - <+>) and Contacts (<+> - - - ) Continuation coils ( - - - - - <+>) and continuation contacts (<+> - - - ) are used to continue relay ladder rung logic beyond the limit of ten columns. The state of the last executed continuation coil is the flow state that will be used on the next executed continuation contact. There needs to be a continuation coil before the logic executes a continuation contact. The state of the continuation contact is cleared when the PLC transitions from Stop to Run, and there will be no flow unless the transition coil has been set since going to Run mode. There can be only one continuation coil and contact per rung; the continuation contact must be in column 1, and the continuation coil must be in column 10. An example continuation coil and contact are shown below:
4-8
Series 90™-30/20/Micro PLC CPU Instruction Set Reference Manual – May 2002
GFK-0467M