0% found this document useful (0 votes)
9 views28 pages

Lecture 1 PLC Refresher

The document provides a refresher on PLC (Programmable Logic Controller) concepts, focusing on Ethernet connections, RSLinx software, and online editing of logic. It covers various instructions such as timers, counters, and logic functions, along with their applications in PLC programming. Key operational modes and safety precautions for online editing are also highlighted.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views28 pages

Lecture 1 PLC Refresher

The document provides a refresher on PLC (Programmable Logic Controller) concepts, focusing on Ethernet connections, RSLinx software, and online editing of logic. It covers various instructions such as timers, counters, and logic functions, along with their applications in PLC programming. Key operational modes and safety precautions for online editing are also highlighted.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

PLC Refresher

Lecture 1

CNTL-3016 23F
Ethernet Connection
⚫ Network: Hub, switch, router ….
⚫ PLC end: Communication Module
⚫ PC end: Communication card, IP address, Subnet mask
⚫ Communication Driver: A software configuration that
allows a computer to access the communication card
⚫ Panelview also has an IP address. Be sure you select the
right device for the right download.

8
RSLinx Software
⚫ Handles communication between Logix5000
controllers and your software programs, such as
Studio 5000 software.
⚫ Configure communication devices, provides
diagnostics
RSWho window from RSLinx

1. Your computer

2. Communication
network in class
3. Station PLC address
4. Chassis
5. PLC Controller
6. Ethernet module
7. Input module
8. Chassis slot number
9. Station Panelview

10. PLC Controller type 11. Current program in PLC


Controller Key Switch

⚫ REM position
⚫ Change mode from RSLogix5000
⚫ Allow online editing
⚫ RUN position
⚫ Execute program, update output
⚫ Prevent online editing, mode-change
⚫ PROG position
⚫ Allow program entry and editing
⚫ Prevent program run, mode-change

22
Edit Logic While Online

⚫ Online edits let you change your logic while your


machine or process continues to run.
⚫ Use extreme caution when you edit logic online.
• Mistakes can injure personnel and damage
equipment.

⚫ Before you edit online:


⚫ assess how machinery will respond
to the changes.
⚫ notify all personnel of the changes.
Start Online editing

In online mode
⚫ Select the rung number
and click this icon. Or
⚫ Double click the rung
number
Online edit toolbar

⚫ Buttons guide you through all the steps


⚫ Two levels available
⚫ Use tooltips to identify the buttons
⚫ Finalize edits option allow one step finish
⚫ New Studio 5000 Logix shows rung
errors as you create the rung now.
PLC User Memory

⚫ Organize Project
⚫ Task
⚫ Program
⚫ Routine

⚫ I/O and memory tags

⚫ http://literature.rockwellautomat
ion.com/idc/groups/literature/do
cuments/pm/1756‐pm004_‐en‐
p.pdf
Program and Routines

⚫ Program: A group of related routines and data. Each program


contains:
⚫ Program-scoped tags (Can only be accessed within the program)
⚫ Routines. One “Main routine” for each Program, marked with “1”

MZhang 35
Program Control Instructions

The JSR instruction jumps execution to a different routine

The SBR and RET


instructions are optional.
(for passing parameters
purpose)
XIC (eXamine If Closed) or, Examine On
XIO (eXamine If Open) or, Examine
Off
OTE (OuTput Energize)

http://literature.rockwellautomation.com/idc/groups/literature/docu ments/rm/1756-rm003_-en-p.pdf
Logic Functions (1)

Logic AND Truth Table


Input A Input B Output Y PLC ladder logic:

0 0 0
0 1 0
1 0 0 Current tag value: A(1), B(1), Y(1)
1 1 1

⚫ A truth table is a mathematical table used in logic design


⚫ It enumerates all the possible input combinations
⚫ It also shows the outputs according to the logic function
Logic Functions (2)

Logic OR Truth Table


Input A Input B Output Y
0 0 0
0 1 1
1 0 1
Current tag value: A(0), B(1), Y(1)
1 1 1

Logic NOT Truth Table


Input A Output Y
0 1
1 0 Current tag value: A(0), Y(1)
Seal-in technique (1)

⚫ In first rung, 3 conditions must become true at same


time, and all the time to energize output.
⚫ In second rung, condition_1 can become false after
seal-in (use the OUTPUT to bypass CONDITION_1)
45
Seal-in technique (2)

⚫ What if we need more or all conditions to be seal-in?


⚫ Is there a problem with this?
Latch/Unlatch Instructions

Instruction Name Description

OTL OTL sets the bit to 1 when the


OuTput Latch rung becomes true and retains its
state when the rung loses
continuity or a power cycle occurs.

OTU OTU resets the bit to 0 when the


OuTput Unlatch rung becomes true and retains its
state when the rung loses
continuity.
One Shot instruction (1)
Triggers an event to occur one time. After the false-to- true rung
transition, the ONS instruction remains true for one program scan.
The output then turns OFF and remains OFF until the logic
preceding the ONS instruction is false
One Shot instruction (2)

⚫ Use the one shot instruction when an event must


start based on the change of state of the rung from
false–to–true, not on the resulting status.
⚫ Applications include starting events triggered by a
pushbutton switch. For example, counting how many
times a pushbutton is pressed.

1. BOOL Type
2. Unique tag name
Timer Instructions
• When creating a timer tag be sure to select the Timer type.

• If you click on the + sign by the tag name it will open and show you
the tags that you have available for that timer.
• Each timer tag created will have the following tags automatically
created.
Timer Instructions
• There are three types of timer instructions.
TON (Timer on delay) – will start timing if the
conditions preceding it are TRUE. When
conditions are TRUE the timer will set the
(EN) ENABLED bit high.

The timer base is always in milliseconds. You set the PRESET value to
the desired amount of timing required. (Example for 2 seconds PRE
would be set to 2000.)

The timer will continue to time until it reaches the PRESET value and
then it will set the (DN) DONE bit high.

If the conditions ahead of the timer go FALSE then the timer will reset
the accumulated ACCUM amount to zero, the TT, DN and EN bits will
also all be set low.
Timer Instructions
• The second type of timer instruction.

TOF (Timer OFF delay) – will start timing


once the conditions preceding it are FALSE.
When conditions are FALSE the timer will set
the (EN) ENABLED bit low.

The timer will continue to time until it reaches the PRESET value and
then it will set the (DN) DONE bit low. The ACCUM value will stay until
the conditions ahead of the timer go TRUE again.

If the conditions ahead of the timer go TRUE then the timer will reset
the accumulated ACCUM amount to zero, the DN and EN bits will be
set high and the TT bit will be set low.
Timer Instructions
• The third type of timer instruction.

RTO (Retentive Timer) – will time if the


conditions preceding it are TRUE. When
conditions are TRUE the timer will set the EN
(ENABLED) bit high.

The timer will continue to time until it reaches the PRESET value and
then it will set the (DN) DONE bit high.
If the conditions ahead of the timer go FALSE or if the processor
changes mode, then the timer will hold the accumulated (ACCUM)
amount. To reset the ACCUM value in an RTO a (RES) RESET instruction
with the same address as the RTO must be used.
Counter Instructions
• When creating a counter tag be sure to select the Counter type.

• If you click on the + sign by the tag name it will open and show you
the tags that you have available for that counter.
• Each counter tag created will have the following tags automatically
created.
Counter Instructions
• There are two types of counter instructions.

CTU (Count UP) – will increase the


accumulated value one count each time the
rung conditions ahead of it transition from
FALSE to TRUE. The accumulated value is
retained when the power is cycled .

When the counter is counting the (CU) Count UP bit is set high.
The counter will continue to count until it reaches the PRESET value
and then it will set the (DN) DONE bit high.
A (RES) RESET instruction must be used to set the accumulated value
back to zero.
Counter Instructions
• There are two types of counter instructions.

CTD (Count DOWN) – will increase the


accumulated value one count each time the
rung conditions ahead of it transition from
FALSE to TRUE. The accumulated value is
retained when the power is cycled .

When the counter is counting the (CD) Count Down bit is set high.
The (DN) DONE bit will be set high if the counter reaches the preset
value.
A (RES) RESET instruction must be used to set the accumulated value
back to zero.

You might also like