Docsity

Data Table Sections-Digital Logic Design And Programming-Lecture Slides, Slides of Digital Logic Design and Programming

Toggle sidebar
bg1
Data Table Sections
(Storage Area)
The purpose of the storage area section of the data table is to
store changeable data, whether it is one bit or a word (16 bits).
The storage area consists of two parts: an internal bit storage
area and a register/word storage area.
The internal bit storage area contains storage bits that are
referred to as either internal outputs, internal coils, internal
(control) relays, or internals.
These internals provide an output, for interlocking purposes, of
ladder sequences in the control program.
Internal outputs do not directly control output devices because
they are stored in addresses that do not map the output table
and, hence, any output devices.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Data Table Sections-Digital Logic Design And Programming-Lecture Slides and more Slides Digital Logic Design and Programming in PDF only on Docsity!

Data Table Sections(Storage Area)^ ^ The purpose of the storage area section of the data table is tostore changeable data, whether it is one bit or a word (16 bits).^ ^ The storage area consists of two parts: an internal bit storagearea and a register/word storage area.^ ^ The^ internal^ bit^ storage

area^ contains^ storage

bits^ that^ are referred^ to^ as^ either^ internal

outputs,^ internal^ coils, internal (control) relays, or internals.  These internals provide an output, for interlocking purposes, ofladder sequences in the control program.  Internal outputs do not directly control output devices becausethey are stored in addresses that do not map the output tableand, hence, any output devices.

User Program Section^ ^ Reserved for the storage of the control logic.^ ^ All of the PLC instructions that control the machine or process are stored in thisarea.^ ^ The processor’s executive software language, which represents each of the PLCinstructions, stores its instructions in the user program memory.^ ^ When a PLC executes its program, the processor interprets the information inthe user program memory and controls the referenced bits in the data table thatcorrespond to real or internal I/O.^ ^ The^ processor’s^ execution

of^ the^ executive^ program

accomplishes^ this interpretation of the user program.  The maximum amount of user program memory available is normally a functionof the controller’s size (i.e., I/O capacity).  In medium and large controllers, the user program area is made flexible byaltering the size of the data table so that it meets the minimum data storagerequirements.  In small controllers, however, the user program area is normally fixed.  The amount of user program memory required is directly proportional to thenumber of instructions used in the control program.

Discrete I/O^ ^ AC Voltage I/O^ ^ DC Voltage I/O^ ^ numerical input and output^ ^ special-purpose modules, for example,high-speed timers, and stepping motorcontrollers

Analog I/O^ Analog inputs:^ ^ Flow sensors^ ^ Humidity sensors^ ^ Potentiometers^ ^ Pressure sensors^ ^ Temperature sensorsAnalog outputs:^ ^ Analog meters^ ^ Analog valves and actuators^ ^ DC and AC motor drives

Programming Devices^ ^ Most PLCs are programmed using very similarinstructions^ ^ The only difference may be the mechanicsassociated with entering the program into thePLC, which may vary from manufacturer tomanufacturer.^ ^ This^ includes^

both^ the^ type^ of

instruction

used^ by^ each^

particular^ PLC^

and^ the

methodology^ for

entering^ the^

instruction

using a programming device.

Programming Devices^ ^ Two basic typesMiniprogrammersPersonal computers

Miniprogrammer and a smallPLC

Miniprogrammers^ ^ Miniprogrammers can be intelligent or nonintelligent^ ^ Nonintelligent handheld programmers can be used to enter andedit the PLC program with limited on-line monitoring and editingcapabilities.^ ^ Capabilities are limited by memory and display size.^ ^ Intelligent^ miniprogrammers

are^ microprocessor-based

and provide many features offered by personal computers duringoff-line programming  These intelligent devices can perform system diagnostic routines(memory, communication, display, etc.)  They can also serve as an operator interface device that candisplay^ English^ messages

about^ the^ controlled

machine^ or process.

Personal Computers^ ^ In addition to personal computer used to program aPLC, it may be connected to the PLC’s local areanetwork to gather and store, on a hard disk, processinformation^ that^

could^ be^ vital^ for^

future^ product enhancements.  PC^ can^ also^ communicate

with^ a^ programmable controller through the RS-232 serial port  Serving either as the data handler and supervisor ofthe PLC control or as the bridge between the PLCnetwork and a larger computer system

PC connected to PLC’s localarea network

PLC Internal Features^ ^ Timers^ ^ Counters^ ^ A/D Converters etc.Manufacturer of PLC programs softwareto accommodate these special featuresinto the read only memory

Timers And Counters^ ^ PLC^ timers^

and^ counters^

are^ internal

instructions that provide the same functionsas hardware timers and counters.  They activate or deactivate a device after atime^ interval^ has

expired^ or^ a^

count^ has

reached a preset value.  Timer and counter instructions are generallyconsidered internal outputs.  Like relay-type instructions, timer and counterinstructions^ are^

fundamental^ to^

the^ ladder

diagram instruction set.

Timers And Counters^ ^ Timers^ are^ used

in^ applications^ to

add^ a^ specific amount of delay to an output in the program.  Applications^ of^ PLC

timers^ are^ innumerable,

since they have^ completely replaced hardware

timers^ in automated control systems.  Example, timers may be used to introduce a 0.01second delay in a control program. The program mayrequire such a delay because the PLC turns ON itsoutputs very quickly as compared to the hardwiredrelay system it is replacing.  This small delay will slow down the response of othercomponents so that proper operation occurs.

Timers And Counters^ ^ Counter instructions are used to count events, such as partspassing on a conveyor, the number of times a solenoid is turnedON, etc.^ ^ Counters, along with timers, must have two values, a presetvalue and an accumulated value.^ ^ These values are stored in register or word locations in the datatable.^ ^ The^ preset^ value^ is

the^ target^ number^ of

ticks^ or^ counting numbers that must be achieved before the timer or counterturns its output ON.  The accumulated value is the current number of ticks (timer) orcounts (counter) that have elapsed during the timer or counteroperation.