Lecture 1 PLC Refresher
Lecture 1 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
⚫ 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
In online mode
⚫ Select the rung number
and click this icon. Or
⚫ Double click the rung
number
Online edit toolbar
⚫ Organize Project
⚫ Task
⚫ Program
⚫ Routine
⚫ http://literature.rockwellautomat
ion.com/idc/groups/literature/do
cuments/pm/1756‐pm004_‐en‐
p.pdf
Program and Routines
MZhang 35
Program Control Instructions
http://literature.rockwellautomation.com/idc/groups/literature/docu ments/rm/1756-rm003_-en-p.pdf
Logic Functions (1)
0 0 0
0 1 0
1 0 0 Current tag value: A(1), B(1), Y(1)
1 1 1
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.
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.
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.
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.
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.