ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Introduction To PLC
Programming
INTRO TO PLC PROGRAMMING
• PLC programming languages is based on the IEC 61131-3
• Ladder diagram (LD), graphical
• Function block diagram (FBD), graphical
• Structured text (ST), textual
• Instruction list (IL), textual
• Sequential function chart (SFC), graphical
INTRO TO PLC PROGRAMMING
• Basic Ladder Logic diagrams components
• Rails
• Are the vertical lines that represent power and ground
• Power flow left to right
• Rungs
• Are the horizontal Lines that connects the rails
• Contacts
• Boolean logic
• Used to represent logic state the of an input or coil
• Normally open contact or normally closed contact symbol
• Coil
• Boolean logic
• Used to control logic state the of an output or contact
• Logic Expression
• A combination of contacts and coils to formulate a desired control operation.
• Address Notation
• Address Based
• Variable Based
INTRO TO PLC PROGRAMMING
• Basic Ladder Elements
• Rung
• Open Contact
• Close Contact
• Coil
• Set
• Reset
INTRO TO PLC PROGRAMMING
• PLC Scan
INTRO TO PLC PROGRAMMING
• Program
INTRO TO PLC PROGRAMMING
• Basic Data Types
• Boolean (1 bit)
• WORD (16 bits), DWORD (32 bits)
• does not represent a number only an array of bits
• Most PLC allows you to access these bits using the Dot Operator or [].
• INT (16 bits) – represent a signed number 0 – 65535
• UINT (16 bits) – represent a unsigned number - 0 to 65535
• DINT (32 bits) – represent a signed number (-2147483648) – (2147483648)
• UDINT (32 bits) - represent a unsigned number
• REAL (32 bits) – single precision floating point number (IEEE-754 )
• LREAL (64 bits) –double precision floating point number (IEEE-754 )
• Time (64 bits) – define a time variable (HH:MM:SS:MS:US:NS)
• String ( 8 bits * Char) – defines an array of chars
INTRO TO PLC PROGRAMMING
• Array
• Collection of data elements of the same data type
• Structure
• Allows of a set of variables to be grouped together
• Unions
• Data structure that usually contains different data types
• All components have the same offset
• Occupy the same memory space
• Enumeration
• An ordered list of all items in a collection
INTRO TO PLC PROGRAMMING
• Write a basic Ladder diagram

More Related Content

Introduction To PLC programming therypptx

  • 2. INTRO TO PLC PROGRAMMING • PLC programming languages is based on the IEC 61131-3 • Ladder diagram (LD), graphical • Function block diagram (FBD), graphical • Structured text (ST), textual • Instruction list (IL), textual • Sequential function chart (SFC), graphical
  • 3. INTRO TO PLC PROGRAMMING • Basic Ladder Logic diagrams components • Rails • Are the vertical lines that represent power and ground • Power flow left to right • Rungs • Are the horizontal Lines that connects the rails • Contacts • Boolean logic • Used to represent logic state the of an input or coil • Normally open contact or normally closed contact symbol • Coil • Boolean logic • Used to control logic state the of an output or contact • Logic Expression • A combination of contacts and coils to formulate a desired control operation. • Address Notation • Address Based • Variable Based
  • 4. INTRO TO PLC PROGRAMMING • Basic Ladder Elements • Rung • Open Contact • Close Contact • Coil • Set • Reset
  • 5. INTRO TO PLC PROGRAMMING • PLC Scan
  • 6. INTRO TO PLC PROGRAMMING • Program
  • 7. INTRO TO PLC PROGRAMMING • Basic Data Types • Boolean (1 bit) • WORD (16 bits), DWORD (32 bits) • does not represent a number only an array of bits • Most PLC allows you to access these bits using the Dot Operator or []. • INT (16 bits) – represent a signed number 0 – 65535 • UINT (16 bits) – represent a unsigned number - 0 to 65535 • DINT (32 bits) – represent a signed number (-2147483648) – (2147483648) • UDINT (32 bits) - represent a unsigned number • REAL (32 bits) – single precision floating point number (IEEE-754 ) • LREAL (64 bits) –double precision floating point number (IEEE-754 ) • Time (64 bits) – define a time variable (HH:MM:SS:MS:US:NS) • String ( 8 bits * Char) – defines an array of chars
  • 8. INTRO TO PLC PROGRAMMING • Array • Collection of data elements of the same data type • Structure • Allows of a set of variables to be grouped together • Unions • Data structure that usually contains different data types • All components have the same offset • Occupy the same memory space • Enumeration • An ordered list of all items in a collection
  • 9. INTRO TO PLC PROGRAMMING • Write a basic Ladder diagram