Beruflich Dokumente
Kultur Dokumente
Architecture PLC
CPU
The internal structure of the CPU depends on the
microprocessor concerned.
An arithmetic and logic unit (ALU) which is responsible for
data manipulation and carrying out arithmetic operations of
addition and subtraction and logic operations of AND, OR,
NOT and EXCLUSIVE-OR.
Memory, termed registers, located within the microprocessor
and used to store information involved in program execution.
A control unit which is used to control the timing of
operations
The buses
The buses are the paths used for
communication within the PLC
The system has four buses
The data bus
The address bus
The control bus
The system bus
Data bus
Data bus carries the data in the CPU
It has 8 bit internal data bus which handle 8
bit number
Example: 11001011
Address Bus
The address bus is used to carry the addresses of memory
locations. So that each word can be located in the memory,
every memory location is given a unique address.
Control Bus
The control bus carries the signals used by the CPU for
control, e.g. to inform memory devices whether they are to
receive data from an input or output data and to carry timing
signals used to synchronise actions.
System bus
The system bus is used for communications
between the input/output ports and the
input/output unit
Memory
Possibly, as a bolt-on extra module, erasable and programmable readonly-memory (EPROM) for ROMs that can be programmed and then the
program made permanent.
Memory
To prevent the loss of programs when the power supply is
switched off, a battery is used in the PLC to maintain the RAM
contents for a period of time.
After a program has been developed in RAM it may be loaded
into an EPROM memory chip, often a bolt-on module to the
PLC, and so made permanent.
In addition there are temporary buffer stores for the
input/output channels
Memory
The storage capacity of a memory unit is determined
by the number of binary words that it can store.
Thus, if a memory size is 256 words then it can store
256 8 = 2048 bits if 8-bit words are used.
256 16 = 4096 bits if 16-bit words are used.
Memory sizes are often specified in terms of the
number of storage locations available with 1K
representing the number 210, i.e. 1024.
Manufacturers supply memory chips with the storage
locations grouped in groups of 1, 4 and 8 bits. A 4K 1
memory has 4 1 1024 bit locations.
A 4K 8 memory has 4 8 1024 bit locations.