Beruflich Dokumente
Kultur Dokumente
1. Outline
TE CHNICAL GU IDE
Conventional systems for industrial machine control have been constructed with hard-wired relays, timers and counters. With this method, however, operators cannot test the control elements until all wiring has been completed. It takes a lot of time to make any changes. The greatest disadvantage of this type of system is that it requires frequent maintenance because of the short service life of each component. Programmable logic controllers were developed to eliminate such problems. Since the control processes of PLCs are software based, control elements can be easily modified. PLCs also perform arithmetic operations and can control high-speed lines, which cannot be performed using a combination of relays, timers and counters. Since semiconductor devices and microcomputer technology have been rapidly advancing in recent years, PLCs now have a much longer service life. Therefore, little maintenance is required.
2. Configuration
Programmable logic controllers are considered to be a large group of relay contacts (N.O., N.C.), timers and counters. These elements are combined with various instructions to make sequential circuits. The sequential circuits are software-based logic, not hard-wired circuits such as electromagnetic relays. Although conventional systems require complicated physical wiring, programmable logic controllers create logic circuits through simple programming.
Programmable logic controller system diagram
External input devices Pushbutton switch Selector switch Limit switch Relay contact Photoelectric sensor Proximity sensor Other sensor
Input processing unit Memory Output processing unit
External output devices Indicator Digital display Solenoid Solenoid valve Electromagnetic clutch Contactor Motor
Control Microcomputer
A program created and entered in the KV is called a User Program. During operation of the PLC, this program is repeatedly executed. Execution of the program consists of three steps: Input operations, Execution of the program, and Output operations.
Input The ON/OFF status of all input terminals are written into the input memory before execution of the program. The ON/OFF status of specified elements (internal utility relays, timers, and counters) are read for arithmetic operations. Results of such operations are written into the output memory.
Output
Output Input
Output Input
Program execution
686
www.keyence.co.uk
Output
The time it takes for one execution cycle to be completed is called the Scan time. Scan time varies depending on the size of the user program and instructions used in the program.
687
TE CHNICAL GU ID E
4. Glossary
Ladder program
A ladder program is based on a sequence diagram (electrical circuit diagram). It uses a programming language that allows easy visualisation of the relationship between input conditions and outputs. For example, the following is a ladder program which turns on output relay 500 when both input relays 000 and 0001 are turned on (AND circuit).
000 001 500
There are two types of interrupt processing: an interrupt by an external input, or by the high-speed counter comparator.
In a ladder program, instruction words are represented by symbols. A relay input is described as and a relay output is described as . PLCs, however, internally process instructions with mnemonics. The ladder program above can be represented by the following mnemonic words. LD AND OUT 000 001 500
Count input Direct clock pulse input Internal clock External input
CTH1 input capture function Control circuit Interrupt function 00501 (Direct clock pulse)
Photoelectric Sensors Safety Light Curtains Proximity Sensors Pressure Sensors PLCs Counters Barcode Readers Vision Systems Static Elimination Systems Displacement Sensors Optical Micrometers
Input processing Normal scan time Interrupt condition is satisfied. 000 001 002 003 Interrupt program execution
www.keyence.co.uk
687
688
TE CHNICAL GU IDE
Time (ms)
Output 5 mA 0V
Photoelectric Sensors Safety Light Curtains Proximity Sensors Pressure Sensors PLCs Counters Barcode Readers Vision Systems Static Elimination Systems Displacement Sensors Optical Micrometers Microscope Enclosure Rating Communication Method Circuit breaker 100 to 240 VAC
24 V DC OUT KV-U2 24 V DC OUT
Output
85-264 V AC IN 50-60 Hz POWER OUTPUT 24VDC 0.8A 24 V DC OUT
5 mA 0V
Twist the cable to prevent undesirable voltage from being produced. Insert an insulating transformer or noise filter to help reduce noise from the power cable. Make all wirings as short as possible. Power cables and signal cables conveying noise must be placed at a safe distance from each of the cables connected to the KV-U2/U3.
Output 0V
688
www.keyence.co.uk
689
TE CHNICAL GU ID E
If the load and output terminals are short-circuited, the output elements and internal board may burn out. We recommend connecting a protective fuse to the output elements. If the contact protection circuit can prevent sparking, this will also reduce the noise caused by external equipment.
OUT Diode COM Diode
Peak reverse voltage three times or higher than load voltage. Average rectifying current: 1 A Relay
COM
Surge absorber
Current consumption Current consumption of the input circuit varies depending on terminals. (Relays 0000 to 0005: 7 mA, other relays; 5 mA) Select a power supply with enough capacity by calculating the current consumption of the basic unit, expansion unit, handheld programmer and input circuit.
Relay
4. Contact protection
When a PLC is connected to a load with a large amount of inrush current (motor, incandescent lamp, etc.), take precautions to protect the output elements. The best solution is to use heavy-duty output relays. When the output terminals are connected to an induction load, connect a diode (when the load has a DC power supply) or a surge absorber (when the load has an AC power supply) in parallel with the load to suppress backward voltage. Use a diode with a peak reverse voltage three times or higher than the load voltage or a surge absorber with approx. 50 resistance, 0.47 F capacitance and 200 V voltage.
Counters Barcode Readers Vision Systems Static Elimination Systems Displacement Sensors Optical Micrometers Microscope Enclosure Rating Communication Method
www.keyence.co.uk
689
690
TE CHNICAL GU IDE
24 VDC OUT Photoelectric Sensors Safety Light Curtains Proximity Sensors Pressure Sensors PLCs Counters Barcode Readers Vision Systems Static Elimination Systems Displacement Sensors Optical Micrometers Microscope Enclosure Rating Communication Method Example: Fibre photoelectric sensor FS2-60P
C 000
001 002
003 004
005 006
007 008
009 010
011 012
24 VDC OUT
C 000
001 002
003 004
005 006
007 008
009 010
011 012
KV-40R
KV-40R
24 VDC OUT
C 000
001 002
003 004
005 006
007 008
009 010
011 012
KV-40R
24 VDC OUT
001 003 005 007 009 011 000 002 004 006 008 010 012
KV-40R
* A PNP open-collector output which requires a separate power supply of 5 VDC/12 VDC cannot be directly connected to the PLC. For 24 VDC power supply, see the DC 3-wire type (PNP).
690
www.keyence.co.uk
691
TE CHNICAL GU ID E
24 VDC OUT
C 000
001 002
003 004
005 006
007 008
009 010
011 012
24 VDC OUT
C 000
001 002
003 004
005 006
007 008
009 010
011 012
KV-40R
KV-40R
24 VDC OUT
C 000
001 002
003 004
005 006
007 008
009 010
011 012
KV-40R
7. General Specifications
Vibration: 10 to 55 Hz, 1.5 mm double amplitude in X, Y, and Z directions, 2 hours respectively. Operating atmosphere: No excessive dust or corrosive gases.
Proximity Sensors Pressure Sensors PLCs Counters Barcode Readers Vision Systems Static Elimination Systems Displacement Sensors Optical Micrometers Microscope Enclosure Rating Communication Method
www.keyence.co.uk
691