N S K E L E C T R O N I C S


Go to content

Main menu:


PIC BASED PLC LADDER LOGIC

INDUSTRIAL AUTOMATION & PLC > PIC PLC BOARDS



For More Updates Visit our New Website www.nskelectronics.in

Ladder Logic for PIC

  • digital inputs and outputs
  • timers (TON, TOF, RTO)
  • counters (CTU, CTD, `circular counters' for use like a sequencer)
  • analog inputs, analog (PWM) outputs
  • integer variables and arithmetic instructions
  • easy-to-use serial communications, to a PC, LCD, or other device
  • shift registers, look-up tables
  • EEPROM variables, whose values are not forgotten when you lose power
  • simulator, to test your program before you generate PIC/AVR code



Introduction


PLCs are often programmed in ladder logic. This is because PLCs originally replaced relay control systems, and forty years later, we still haven't quite let go. A PLC, like any microprocessor, executes a list of instructions in sequence. Ladder logic tools abstract this; you can program the PLC by wiring up relay contacts and coils on-screen, and the PLC runtime will simulate the circuit that you've drawn. Some of the relay contacts can be tied to input signals from the real world; some of the coils can be tied to outputs. That way you can make your simulated circuit interact with other devices, and actually control things. That is the point.

Actually it's more general than that, because you can incorporate timers and counters and arithmetic operations that you couldn't (easily) perform with just relays. The circuit concept is still useful though, partly just because it's intuitive, but also because it abstracts the concurrency issues. It looks like this:


|| Xa Xb Yout ||
1 ||-------] [------+-------] [------+-------( )-------||
|| | | ||
|| | Xc | ||
|| +-------]/[------+ ||


This is a simple piece of combinational logic. There are three input terms, Xa, Xb, and Xc. There is one output term, Yout. The expression is Yout := Xa and (Xb or (not Xc)). This makes sense if you think of Xa and Xb as normally open relay contacts, Xc as normally closed relay contacts, and Yout as a relay coil. Of course it gets more complicated than that:




For More details visit this website Freeware Software

Home Page | NSK PRODUCTS | INDUSTRIAL AUTOMATION & PLC | MINI PROJECTS >>> | 8051 | PIC | AVR | Arduino | ARM 32 Bit | RENESAS | MSP 430 | ARM CORTEX M3 | VLSI - CPLD KITS | UNIVERSAL PROGRAMMERS | Audio&Voice Recognition | GSM & GPRS - GPS | RFID - MIFARE | Wired Communication | Wireless Communication | SENSORS | INTERFACE BRDS | Power Supplies | MOTOR DRIVES | MOTORS | ROBOTICS | PCB - Prototyping | BUY COMPONENTS/TOOLS | ELECTRONIC COMPONENTS | CONTACT US | How To Place Order? | NSK SUPPORT | Site Map


Sub-Menu:

Search

Back to content | Back to main menu