Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 10 of 27

ControlLogix Digital I/O Modules User Manual: ControlLogix Digital I/O Modules User Manual, pages 91 to 100

Pages 91 to 100 of 258, from ControlLogix Digital I/O Modules User Manual

The original document is the PDF (7.2 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 Allen-Bradley 1756-OB16E

Page 91

Fast Module Features

Chapter 5

Pulse Width Modulation Pulse Width Modulation (PWM) provides precise, onboard control of an output’s pulse train with no program variability. To configure a PWM signal, you define two real-time values for the pulse train in the module’s output tags: • Cycle time - The duration of a pulse cycle in seconds from 1 ms…1 hour. • On time - The pulse width, or length of time that a pulse is active within a cycle from 200 µs…1 hour. You can define the On time in seconds or as 0…100 percent of the cycle time. You may want to use a steady-state On time, such as for gluing applications, or a dynamic On time that is defined by program logic. If the cycle time or On time is outside the valid range for an output, the corresponding bit in the Fault input tag is set and the module responds as described. Condition

Result

PWMCycleTime < minimum of 1ms

PWMCycleTime = 1 ms

PWMCycleTime > maximum of 1 hour

PWMCycleTime = 1 hour

PWMCycleTime ≤ PWMOnTime

Output is always On

PWMOnTime < minimum of 200 μs

Output is always Off

PWMOnTime > maximum of 1 hour

PWMOnTime = 1 hour

If the cycle time or On time value changes while the output is generating a PWM signal, the changes are not applied until the next cycle of the PWM output. For instance, if the cycle time is erroneously set to an hour, a new cycle time does not go into effect until the last cycle of the hour is complete. To trigger the PWM output to restart immediately with a new cycle time or On time, turn the output Off and then back On. EXAMPLE

If PWMOnTime is 0.1 second and PWMCycleTime is 1.0 second and the PWMCycleTime is changed to 0.5 second just after the output turns On, the output stays on for 0.1 second and then turns Off for 0.9 seconds to complete the cycle before the new 0.5 second cycle begins.

IMPORTANT

Before PWM functions, you must enable PWM during configuration and define the PWM cycle time and On time in the PWMCycleTime and PWMOnTime output tags. If PWM is enabled (PWMEnable = 1) and the output is instructed to turn On (Data = 1), the output generates a PWM signal.

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

91

Page 92

Chapter 5

Fast Module Features

Figure 13 compares two applications in which the output is instructed to turn On for 4.5 seconds: • In the application without PWM, a single pulse is generated. The pulse remains active for the same length of time the Data output tag is On (4.5 seconds). • In the application with PWM, a series of pulses are generated. Each pulse is active for a configured On time of .5 seconds or 50% of the 1 second cycle time. The Data output tag is On for 4.5 seconds. Figure 13 - PWM Application without PWM

Application with PWM

Output Logic

Output logic is On for 4.5 seconds.

Output Logic

Output logic is On for 4.5 seconds.

Output State

Output is active for 4.5 seconds.

Output State

Each pulse is active for 0.5 seconds (On time)

1 Second Cycle Time

By default, PWM is configured to continue the output pulse train until the output logic turns Off. When the output logic turns Off, the output pulse train immediately stops. EXAMPLE

In Figure 14, the output logic is On for 4.25 seconds and then turns Off in the middle of the last pulse. Even though the PWM On time is configured for 0.5 seconds, the last pulse is only active for 0.25 seconds because it is truncated when the output logic turns Off.

Figure 14 - PWM with Truncated Pulse Output Logic

Output logic is On for 4.25 seconds.

Output State

The last pulse is truncated when the output logic turns Off.

92

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

Page 93

Fast Module Features

IMPORTANT

Chapter 5

The Program and Fault mode states configured for the module override the PWM output state unless the point is configured to hold the last state while in Program or Fault mode. If a point is configured to hold the last state and the output is currently On, the output continues to use PWM until the PWM cycle limit is reached, the module transitions out of Program or Fault mode, or a final fault state goes into effect. For more information, see the following: • Configurable Point-level Output States on page 51 • Programmable Fault State Delays on page 89 • Cycle Limit and Execute All Cycles on page 93

You can modify the default PWM configuration for each of a module’s 16 outputs for further control of an output’s pulse train, as described in PWM Configuration on page 97. Configuration options include the following: • Cycle Limit and Execute All Cycles • Minimum On Time, Extend Cycle, and Stagger Output on page 94

Cycle Limit and Execute All Cycles You can limit the number of pulse cycles that occur while an output is On. This feature is useful when you want to apply a level of output control when a process is stopped. For example, in a gluing application, you may want to apply 4 drops of glue to a product when the product is within a fixed window on a conveyor belt. By configuring a cycle limit of 4, you can make sure that only 4 drops of glue are applied even if the conveyor belt stops with the product in the window. Controlling the process with the Cycle Limit feature eliminates the need to write complex logic to detect a stopped conveyor belt. Figure 15 shows a PWM pulse train configured with a cycle limit of 2. The PWMCycleLimitDone input tag indicates when the PWM cycle limit has been reached. The corresponding bit is reset upon the next rising edge of the output which restarts PWM. Figure 15 - PWM Cycle Limit Output Logic

Output State

Only 2 cycles are executed even though the output logic remains On.

The cycle limit restarts when the output begins pulsing on the next rising edge of output logic.

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

93

Page 94

Chapter 5

Fast Module Features

If the output logic turns Off before the cycle limit is reached, you can configure the pulse cycles to continue until the cycle limit is reached by enabling the Execute All Cycles option. Figure 16 shows a cycle limit of 2 with the Execute All Cycles option enabled. Figure 16 - PWM Cycle Limit with Execute All Cycles Option

Output Logic

Output State

Both cycles are executed even though the output logic turned Off before the cycle limit was reached.

Minimum On Time, Extend Cycle, and Stagger Output The Minimum On Time, Extend Cycle, and Stagger Output configuration options are useful in time-proportional control applications, such as temperature control. In these applications, PID calculations compare the actual temperature to the desired setpoint and vary the PWM On time to a heating element in real time to regulate temperature as it approaches the setpoint, as shown in Figure 17. Figure 17 - PWM for Time Proportioned Control

Heated Vessel Variable PWM On Time from PID Calculation

Temperature Feedback to Analog Input

94

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

Page 95

Fast Module Features

Chapter 5

In this type of application, the Minimum On Time, Extend Cycle, and Stagger Output configuration options provide these benefits: • Minimum On Time and Extend Cycle - Ensures that output devices that require a minimum time to turn On or that cannot react to a short pulse cycle can react with any given PWM On time calculation rather than not turning On. To ensure the output device turns On when the calculated On time is less than the minimum On time, you must enable the Extend Cycle option. When Extend Cycle is enabled, the cycle time is extended proportionately up to 10 times the calculated On time while taking into account the minimum On time. EXAMPLE

A solenoid requires at least 40 ms to turn On. During configuration, you enable the output for PWM, specify a minimum On time of 40 ms, and enable the Extend Cycle option. If the calculated On time in the PWMOnTime output tag drops below the 40 ms minimum On time, the module automatically extends the On time to 40 ms and proportionally extends the cycle time in the PWMCycleTime output tag. If the On time drops below 4 ms, the output turns Off because the cycle cannot extend beyond 10 times the 40 ms On time.

If Extend Cycle is not enabled and the calculated On time is less than the minimum On time, the output of the module does not energize. • Stagger Output - Mitigates the power surge from outputs that drive high power loads by preventing the outputs from turning On simultaneously. Enabling the Stagger Output option for multiple output points addresses surges by staggering the leading edge of those outputs (Figure 18). When the Stagger Output feature is not enabled, output points turn On immediately at the start of the cycle (Figure 19). The stagger time for an output is calculated when the output turns On. If the On time and cycle times are changed by large amounts while the output is On, the stagger times may begin to overlap. If the cumulative On time of staggered outputs is less than the cycle, each new On transition is staggered to begin 50 µs after the prior staggered output turns Off.

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

95

Page 96

Chapter 5

Fast Module Features

Figure 18 - Outputs with Staggering

Output 1

Output 2

Output 3

Figure 19 - Outputs without Staggering

Output 1

Output 2

Output 3

96

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

Page 97

Fast Module Features

Chapter 5

PWM Configuration Follow these steps to configure PWM. 1. Use program logic or the Logix Designer tag editor to define the Cycle time and On time for an output point via the PWMCycleTime and PWMOnTime output tags. For more information about module tags, refer to Appendix B. 2. On the Module Properties dialog box, click the Pulse Width Modulation roll-up category for a high-level view.

3. Click the PointXX category to view a specific point’s configuration.

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

97

Page 98

Chapter 5

Fast Module Features

4. To modify that point’s configuration, or to set its initial configuration, complete the fields in the PWM area as described in this table. Field

Description

1756-OB16IEF Tag Name

1756-OB16IEFS Tag Name

Enable Pulse Width Modulation (PWM)

Check the checkbox to enable PWM. If this checkbox is cleared, all other PWM fields are unavailable, and the PWM On time and cycle time for the point are ignored. By default, PWM is disabled.

C:Pt[x].PWMEnable

C:PWM.Enable

PWM On Time (view only)

Displays the length of time that a pulse is active, as defined in the PWMOnTime output tag. By default, this value is defined in seconds with a range of 0.0002…3600.0. However, you can define the value as 0…100% of the cycle time by clicking On Time in Percent. IMPORTANT: Before PWM functions, you must enable PWM during configuration and define the PWM cycle time and On time in the PWMCycleTime and PWMOnTime output tags. If PWM is enabled (C:PWMEnable = 1) and the output is instructed to turn On (O:Data = 1), the output generates a PWM signal.

O:Pt[x].PWMOnTime

O:PWM.OnTime

PWM Cycle Time (view only)

Displays the duration of each pulse cycle, as defined in the PWMCycleTime output tag. This value is always displayed in seconds with a range of 0.001 …3600.0 seconds. IMPORTANT: Before PWM functions, you must enable PWM during configuration and define the PWM cycle time and On time in the PWMCycleTime and PWMOnTime output tags. If PWM is enabled (C:PWMEnable = 1) and the output is instructed to turn On (O:Data = 1), the output generates a PWM signal.

O:Pt[x].PWM CycleTime

O:PWM.CycleTime

Minimum On Time

Type the minimum length of time required for the output to turn On. This value must be defined in seconds. For example, if a heating coil requires a minimum of 2 seconds to heat up, and you enter a value of 2.000 in this field, the shortest pulse allowed is never less than 2.000 seconds. The default value of zero disables the feature.

C:Pt[x].PWMMinimumOnTime

C:PWM.MinimumOnTime

Extend Cycle to Accommodate Minimum On Time

Check or clear this checkbox to determine the output behavior when the On time is less than the minimum On time: • Check the checkbox to increase the duration of the pulse cycle to maintain the On time to Cycle time ratio while taking into account the minimum On time. Note: Extending the cycle time is typically useful only when the On time is a result of a calculation. • Clear the checkbox if you do not want to increase the duration of the pulse cycle. In this case, the output does not turn On if the On time is less than the minimum On time. By default, the checkbox is cleared, and cycles do not extend.

C:Pt[x].PWMExtendCycle

C:PWM.ExtendCycle

Stagger Output to Adjust Cycle Phase to Minimize Simultaneous Outputs

Check the checkbox to minimize the load on the power system by staggering output transitions. See Figure 18 on page 96. By default, this checkbox is cleared and staggering is disabled. When staggering is disabled for an output point, the output always turns On at the beginning of a pulse cycle.

C:Pt[x].PWMStaggerOutput

C:PWM.StaggerOutput

On Time in Seconds or On Time in Percent

To define PWM On time in seconds, click On Time in Seconds. To define PWM On time as a percentage of the cycle time, click On Time in Percent. By default, the On time is defined in seconds.

C:Pt[x].PWMOnTimeInPercent

C:PWM.OnTimeInPercent

98

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

Page 99

Fast Module Features

Chapter 5

Field

Description

1756-OB16IEF Tag Name

1756-OB16IEFS Tag Name

Enable Cycle Limit

Check the checkbox to let only a fixed number of pulse cycles occur. See Figure 15 on page 93. By default, the Enable Cycle Limit checkbox is cleared, and pulse cycles continue to occur until the output turns Off.

C:Pt[x].PWMCycleLimitEnable

C:PWM.CycleLimitEnable

Cycle Limit

Enter the maximum number of pulse cycles you want to occur on each output logic transition when Enable Cycle Limit is checked: • If you check the Execute All Cycles checkbox, the specified number of cycles occur even if the Data output tag turns Off before the completion of the specified number of cycles. • If you clear the Execute All Cycles checkbox, the specified number of cycles occur only if the Data output tag remains On for a sufficient amount of time for the specified number of cycles. For example, if you specify a cycle limit of 4, and the output turns Off after 3 cycles, the 4th cycle does not occur. This field is only available when the Enable Cycle Limit checkbox is checked. By default, the cycle limit is 10. Valid values are 1…27.

C:Pt[x].PWMCycleLimit

C:PWM.CycleLimit

Execute All Cycles

Check the checkbox to always execute the number of cycles specified in the Cycle Limit field even if the Data output tag turns Off. For example, if you specify a cycle limit of 2, and the output turns Off after 1 cycle, the second cycle still occurs despite the output turning Off. See Figure 16 on page 94. If the output logic transitions multiple times before the cycle limit is reached, all subsequent transitions are ignored until the cycle limit is reached. Once the cycle limit is reached, a new cycle sequence begins. This field is only available when the Enable Cycle Limit checkbox is checked. By default, the Execute All Cycles checkbox is cleared.

C:Pt[x].PWMExecuteAllCycles

C:PWM.ExecuteAllCycles

5. To copy the current configuration to one or more of the remaining output points, so that multiple outputs share the same PWM behavior, do the following: a. Select the PointXX category to copy. b. Click Copy PWM Configuration. c. On the Copy PWM Configuration dialog box, check the points to which to apply the current configuration and click OK. By default, all points are checked.

6. To save the configuration for each output point that you specified, click OK.

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

99

Page 100

Chapter 5

Fast Module Features

Fault and Status Reporting between Input Modules and Controllers

ControlLogix fast input modules multicast fault and status data to any ownercontroller or listening controller. All input modules maintain a Module Fault word, the highest level of fault reporting. Modules configured to use the Data with Event connection format also maintain an Event Fault word to report on the status of an event connection. Table 23 lists the fault words and associated tags you can examine in program logic to indicate when a fault or event has occurred for a fast input module. Table 23 - Fault Words on Fast Input Modules Word

Input Tag Name

Description

Module Fault

I:Fault

Provides fault summary reporting. Available on all digital input modules.

Event Fault

E:Fault

Provides fault summary reporting. Available on all digital input modules that use the Data with Event or Listen Only with Event connection format.

All words are 32-bit, although only the number of bits appropriate for each module’s density are used. For example, the 1756-IB16IF module has a Module Fault word of 32 bits. Table 24 - Bits Set in Module Fault Word Condition

Bits Set

Communication fault

All 32 bits are set to 1, regardless of the module’s density.

This illustration offers an overview of the fault reporting process on ControlLogix fast digital input modules. Bit 31

Bit 0

Module Fault Word All Modules A communication fault sets all 32 bits in the Module Fault word.

100

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017