Latest Post
Make program latching PLC
Written By Mr Lam on Wednesday, August 24, 2011 | 8:28 AM
Connecting sensors and execution devices Programmable Logic Controllers ( PLC )
Written By Mr Lam on Monday, August 22, 2011 | 9:20 AM
Connecting external devices to a PLC controller regardless whether they are input or output is a special subject matter for industry. If it stands alone, PLC controller itself is nothing. In order to function it needs sensors to obtain information from environment, and it also needs execution devices so it could turn the programmed change into a reality. Similar concept is seen in how human being functions. Having a brain is simply not enough. Humans achieve full activity only with processing of information from a sensor (eyes, ears, touch, smell) and by taking action through hands, legs or some tools. Unlike human being who receives his sensors automatically, when dealing with controllers, sensors have to be subsequently connected to a PLC. How to connect input and output parts is the topic of this chapter.
Input lines
PLC controller output lines usually can be:
-transistors in PNP connection
-transistors in NPN connection
-relays
The following two pictures display a realistic way how a PLCmanages external devices. It ought to be noted that a main difference between these two pictures is a position of "output load device". By "output load device" we mean some relay, signalization light or similar.
How something is connected with a PLC output depends on the element being connected. In short, it depends on whether this element of output load device is activated by a positive supply pole or a negative supply pole.
author: Nebojsa Matic
resource : plc-pograming.blogspot.com
PLC Leader Diagram
PLC Leader Diagram
Introduction Programmable controllers are generally programmed in ladder diagram (or "relay diagram") which is nothing but a symbolic representation of electric circuits. Symbols were selected that actually looked similar to schematic symbols of electric devices, and this has made it much easier for electricians to switch to programming PLC controllers. Electrician who has never seen a PLC can understand a ladder diagram. Ladder diagram There are several languages designed for user communication with a PLC, among which ladder diagram is the most popular. Ladder diagram consists of one vertical line found on the left hand side, and lines which branch off to the right. Line on the left is called a "bus bar", and lines that branch off to the right are instruction lines. Conditions which lead to instructions positioned at the right edge of a diagram are stored along instruction lines. Logical combination of these conditions determines when and in what way instruction on the right will execute. Basic elements of a relay diagram can be seen in the following picture. Most instructions require at least one operand, and often more than one. Operand can be some memory location, one memory location bit, or some numeric value -number.In a case when we wish to proclaim a constant as an operand, designation # is used beneath the numeric writing (for a compiler to know it is a constant and not an address.) Based on the picture above, one should note that a ladder diagram consists of two basic parts: left section also called conditional, and a right section which has instructions. When a condition is fulfilled, instruction is executed, and that's all!
Picture above represents a example of a ladder diagram where relay is activated in PLC controller when signal appears at input line 0. Vertical line pairs are called conditions. Each condition in a ladder diagram has a value ON or OFF, depending on a bit status assigned to it. In this case, this bit is also physically present as an input line (screw terminal) to a PLC controller. If a key is attached to a corresponding screw terminal, you can change bit status from a logic one status to a logic zero status, and vice versa. Status of logic one is usually designated as "ON", and status of logic zero as "OFF".
Normally open contacts would represent relay contacts that would perform a connection upon receipt of a signal. Unlike open contacts, with normally closed contacts signal will interrupt a contact, or turn a relay off. Previous picture shows what this looks like in practice. First two relays are defined as normally open , and the other two as normally closed. All relays react to a signal! First relay (10) has a signal and closes its contacts. Second relay (11) does not have a signal and remains opened. Third relay (12) has a signal and opens its contacts considering it is defined as a closed contact. Fourth relay (13) does not have a signal and remains closed because it is so defined.
Concepts "normally open" and "normally closed" can also refer to inputs of a PLC controller. Let's use a key as an example of an input to a PLC controller. Input where a key is connected can be defined as an input with open or closed contacts. If it is defined as an input with normally open contact, pushing a key will set off an instruction found after the condition. In this case it will be an activation of a relay 0.
If input is defined as an input with normally closed contact, pushing the key will interrupt instruction found after the condition. In this case, this will cause deactivation of relay 0 (relay is active until the key is pressed). You can see in picture below how keys are connected, and view the relay diagrams in both cases.
Concepts "normally open" and "normally closed" can also refer to inputs of a PLC controller. Let's use a key as an example of an input to a PLC controller. Input where a key is connected can be defined as an input with open or closed contacts. If it is defined as an input with normally open contact, pushing a key will set off an instruction found after the condition. In this case it will be an activation of a relay 0.
If input is defined as an input with normally closed contact, pushing the key will interrupt instruction found after the condition. In this case, this will cause deactivation of relay 0 (relay is active until the key is pressed). You can see in picture below how keys are connected, and view the relay diagrams in both cases.
Normally open/closed conditions differ in a ladder diagram by a diagonal line across a symbol. What determines an execution condition for instruction is a bit status marked beneath each condition on instruction line. Normally open condition is ON if its operand bit has ON status, or its status is OFF if that is the status of its operand bit. Normally closed condition is ON when its operand bit is OFF, or it has OFF status when the status of its operand bit is ON.
When programming with a ladder diagram, logical combination of ON and OFF conditions set before the instruction determines the eventual condition under which the instruction will be, or will not be executed. This condition, which can have only ON or OFF values is called instruction execution condition. Operand assigned to any instruction in a relay diagram can be any bit. This means that conditions in a relay diagram can be determined by a status of I/O bits, operational bits, timers/counters, etc.
When programming with a ladder diagram, logical combination of ON and OFF conditions set before the instruction determines the eventual condition under which the instruction will be, or will not be executed. This condition, which can have only ON or OFF values is called instruction execution condition. Operand assigned to any instruction in a relay diagram can be any bit. This means that conditions in a relay diagram can be determined by a status of I/O bits, operational bits, timers/counters, etc.
Resource : program-plc.blogspot.com
Concept of Program Logic Controller
Written By Mr Lam on Thursday, August 4, 2011 | 1:19 AM
A PLC consits of a Center Processing Unit (CPU) containing an application program and Input and out put interface modules, with is directly connectedto the field I/O devices. The program controls the PLC so that when an input signal from an input device turns ON, the appropriate response is made. The response normally involves turning ON an out put signal to some sort of output devices.
Center Processing Unit
The central Processing Unit (CPU) is a microprocessor that co-ordinates the activities of the PLC system. It executes the program, processes I/O signal and communicatea with external devices.
Memory
The are various types of mamory unit. It is the area that hold the operating system and user memory. The operating system is actually a system software that co-ofdinates the PLC. Ladder program, timer and counter Values are stored in the user memory, Depending on user’s need various types of memory are available for choice.
- Read-only Memory (ROM)
ROM is non – volatile memory that can be programmed only once. It is there fore unsuitable. It is least popular as compared with others memory type.
- Random Access Memory (RAM)
RAM is commonly used memory type for storing the user program and data. The data in the volatile RAM would normally be lost if the power source is removed. Hoever, this problem is solved by backing up the RAM with a battery.
- Erasable Programmable Read Only Memory (EPROM)
EPROM holds data permanently just like ROM. It does not require battery backup. However, its content can be eased by exposing it to ultraviolet light. A prom writer is required to reprogram the memory.
- Electrically Erasable Programmable Read Only Memory (EEPROM)
EEPROM combines the access flexibility of RAM and the non-volatility of EPROM in one. Its contents can be eased and reprogrammed electrically, however, to a limit number of times.
Scan time
The process of reading the inputs, executing the program and updating the outputs is known as scan. The scan time is normally a continous and sequential process of reading the status of inputs, evaluating the control logic and updating outputs. Scan time specification indicates how fast the controller can react to the field inputs and correctly solve the control logic.
Factors fluencing Scan Time
The time required to make a single scan ( scan time) varies from 0,1ms to tens of ms depending on its CPU processing speed and the length of the user program. The user of remote I/O subsystems increase the scan time as a result of having to transmit the I/O updates to remote subsystem. Monitoring of the control program also adds overhead time to the san because the controller’s CPU has to send the status of coils and contacts to the CRT or other monitoring device.
Subscribe to:
Posts (Atom)