11.07.2015 Views

Programmable Controllers: Theory and Implementation

Programmable Controllers: Theory and Implementation

Programmable Controllers: Theory and Implementation

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introduction to PLC Programming <strong>and</strong> <strong>Implementation</strong>—from relay logic to PLC logicrung. If the instantaneous TMR1 contacts are implemented using a PLC timedelaycontact, then PB1 must be pushed for the timer’s required time presetto latch the rung. This instantaneous contact will be implemented by trappingthe timer with an internal output.Tables 8 <strong>and</strong> 9 show the I/O address <strong>and</strong> internal output assignments for theelectromechanical circuit’s real I/O. Table 10 presents the register assignmenttable. Note that internals do not replace control relays CR1 <strong>and</strong> CR2since the output addresses 030 <strong>and</strong> 031 corresponding to solenoids SOL1 <strong>and</strong>SOL2 are available. Therefore, addresses 030 <strong>and</strong> 031 can replace the CR1<strong>and</strong> CR2 contacts, respectively, everywhere they occur in the program. Thenormally open contact LS1 connects limit switch LS1 to the PLC inputinterface; <strong>and</strong> the normally open LS1 reference, programmed with an examine-OFFinstruction, implements the normally closed LS1 in the program.Figure 24 illustrates the PLC program coding solution.ModuleTypeRackI/O AddressGroupTerminalInput0 0 0 PB10 0 1 PS10 0 2 FS10 0 3 TS1Input0 0 4 LS10 0 5 PS20 0 6 —0 0 7 —Output0 3 0 SOL10 3 1 SOL20 3 2 SOL30 3 3 —Table 8. I/O address assignment.DescriptionDeviceInternalTable 9. Internal address assignment.DescriptionTMR11000Used to trap TMR1C R1— Same as SOL1 (030)C R2— Same as SOL2 (031)TMR11001Timer TMR1TMR21002Timer TMR2CR31003Replace CR3RegisterDescription4000Preset timer count for 3 sec4001Accumulated count timer 10014002Preset timer count for 2 sec4003Accumulated count timer 1002Table 10. Register assignment.Industrial Text & Video Company www.industrialtext.com 1-800-752-839828

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!