Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Jesus is a friend who knows all your faults and still loves you anyway.
But God demonstrates his own love for us in this: While we were still sinners, Christ died for us.
Romans 5:8
Agenda
IEC 61131 Standard Programming Models Instruction List Structured Text Ladder Diagram Function Block Diagram Sequential Function Charts
Programming Models
IL (Instruction List) ST (Structured Text) LD (Ladder Diagram) FBD (Function Block Diagram) SFC (Sequential Function Charts)
Instruction List
Textual PLC Programming Language Effectively Like Assembly Programming Best Suited for Small Uncomplicated Programs Instructions Consist of: - Operator - Modifier - Operand
Example: AND NOT 00200
Structured Text
Textual PLC programming language Effectively like BASIC programming Easiest to troubleshoot and understand Useful for implementing calculation-intensive functions and other difficult functions Instructions consist of constructs Example: Analog_Out := Error * Gain;
Structured Text
* Sample Structured Text Code * VAR temp: INT; error: BOOL; END_VAR temp := %IW4; IF temp > 3200 THEN error := TRUE; %QW := 200; ELSE %QW := temp / 16; END_IF; (comments) (variables)
(addresses)
Ladder Diagram
Primary programming language Resembles original relay logic documentation Addressing and memory is different for every manufacturer Ladder logic scanning (rung order vs. network column) Not purely parallel processor like relay logic
Ladder Diagram