Chapter 3
- What is the difference between a compiler and an interpreter?
A compiler will translate the code base all at one time and find errors before the program can run. An interpreter will translate a program line-by-line.
- What is IEC 61131-3?
A standard that governs the programming languages for compliant PLCs.
- What is a machine instruction?
Typically defined as an instruction that a family of CPUs use to carry out tasks.
- What is a programming paradigm?
A way in which code is architected and implemented. Examples are object-oriented, procedural, and so on.
- Does IEC 61131-3 support OOP?
Yes.
- What is OOP?
Object-Oriented Programming.
- Is IEC 61131-3-compliant code always portable between devices?
No.
- Write an algorithm for withdrawing $20 from an ATM.
- Enter credit card
- Enter pin number
- Press withdraw button
- Input $20
- Take money from ATM
- Put money in wallet
- Walk off
- What is a language translator?
A program that translates human-readable code into machine readable...