Professional Documents
Culture Documents
Api I C3 2 Il PDF
Api I C3 2 Il PDF
Industrial Automation
(Automação de Processos Industriais)
Syllabus:
Chap. 2 – Introduction to PLCs [2 weeks]
...
...
Chap. 4 - GRAFCET (Sequential Function Chart) [1 week]
Page 2
IST / DEEC / API Chap. 3 - PLC Programming languages
Page 3
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Antique PLC
Page 4
IST / DEEC / API Chap. 3 - PLC Programming languages
Page 5
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Reference
– Unity Pro
Help
Page 6
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
%I1.0 %Q2.0 I1.0
Basic Instructions P t
Q2.0
Load t
Page 8
IST / DEEC / API Chap. 3 - PLC Programming languages
t
Store
STN The inverse result of the logic function activates the coil.
Page 9
IST / DEEC / API Chap. 3 - PLC Programming languages
t
AND
AND of the operand with the result of the previous
AND logical operation.
P
AND of the rising edge with the result of the previous
ANDR logical operation.
Page 10
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Basic Instructions
OR
OR of the operand with the result of the previous
OR logical operation.
Page 11
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Example:
Page 12
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Basic Instructions
XOR
...
LD %I1.1
XOR %M1
ST %Q2.3
LD %M2
XOR %I1.2
ST %Q2.2
...
Page 13
IST / DEEC / API Chap. 3 - PLC Programming languages
The instantaneous contacts change state as soon as the timer coil is powered.
The delayed contacts change state at the end of the time delay.
Page 14
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Example:
Page 15
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Temporized Relays
or Timers (PL7)
Page 17
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Temporized Relays
or Timers (Unity)
Page
Page
18 18
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Counters
Some applications...
Page 19
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Counters in PL7
Example:
Page 20
IST / DEEC / API Chap. 3 - PLC Programming languages
Ladder diagram
Ladder diagram
Page 22
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Numerical Processing
Page 23
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Numerical Processing
Arithmetic Functions
Page 24
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Numerical Processing
Example:
Arithmetic functions
PL7:
Page 25
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Numerical Processing
Example:
Arithmetic functions
PL7:
Page 26
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Numerical Processing
Logic Functions
Page 27
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Numerical Processing
Example:
Page 28
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Numerical Processing
Page 29
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Subroutines
CAL
PL7
Unity Pro
Page 30
IST / DEEC / API
Page 31
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
JUMP instructions:
Page 32
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Example:
Attention to:
Page 33
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Halt
Events masking
Page 34
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
• Monostable
• Registers of 256 words (LIFO ou FIFO)
• DRUMs
• Comparators
• Shift-registers
...
• Functions to manipulate floats
• Functions to convert bases and types
Page 35
IST / DEEC / API Chap. 3 - PLC Programming languages
Instruction list
Numerical Tables
PL7:
Page 36
IST / DEEC / API Chap. 3 – Old PLCs
DOLOG80
PLC AEG A020 Plus:
Inputs:
• 20 binary with opto-couplers
• 4 analogs (8 bits, 0-10V)
Outputs:
• 16 binary with relays of 2A
• 1 analogs (8 bits, 0-10V)
Processador:
• 8031
• 2 Kbytes de RAM
• 2 Kbytes EEPROM => 896 instructions
• Average cycle time: 6.5 ms
Page 37
IST / DEEC / API Chap. 3 – Old PLCs
Page 38
IST / DEEC / API Chap. 3 – Old PLCs
DOLOG80 (cont.)
Example: