16ć14 – Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 225

Advertising
background image

EAF

Process Control Instructions

Chapter 16

16-14

Figure 16.4 shows you how to enter and display an STI to execute a
controlled PID function. The program that follows is programmed
specifically for 1771-IE, -IF, -OF, -IX and -IY modules. For the
1771-IFE, -IL and -IR modules, add the module initialization rungs in the
main program (see Figure 16.5).

The processor executes 16 PID loops with an update time of 100 ms. Eight
loops are executed each alternate scan (50 ms STI): the first 8 on scan 1,
the second 8 on scan 2, the first 8 on scan 3, the second 8 on scan 4. Since
the PID instruction needs a leading edge transition to execute
(false-to-true), you must use the alternate scan method even if you use less
than 8 loops.

The Immediate Output Update (IOT) instructions are required. Place them
after each block transfer instruction. The IOT instructions cause the block
transfer to be requested and completed immediately, instead of at the next
program scan. The address of the IOT is the same as the address of the
block transfer enable bit.

Observe there is no data buffering on the Block Transfer Read (BTR)
instruction. The BTR done bit cannot be made to report predictably in the
STI. Therefore, it can’t be used to buffer data.

If you want to program less than 16 loops, eliminate a PID EAF rung.
However, once you have eliminated four EAF rungs, you must eliminate
the associated Block Transfer Write (BTW) and IOT instructions.

Place an unconditionally false File-to-File instruction in the main program
to display the configuration of the PID loops.

Entry and Display of a

Selectable Timed Interrupt

(STI) Controlled PID Function

Advertising