Professional Documents
Culture Documents
LAB 3
1. Objective
2. Achievement
The student understands the digital I/O communication method between the PLC and
peripherical devices. Configures the PLC in order to operate according to the system needs.
3. Theorical Background
PLC
PLCs are robust and can survive harsh conditions including severe heat, cold, dust, and
extreme moisture. Their programming language is easily understood, so they can be
programmed without much difficulty. PLCs are modular so they can be plugged into various
setups.
A central processing unit (CPU) serves as the brain of the PLC. It is a -16 or -32 bit
microprocessor consisting of a memory chip and integrated circuits for control logic,
monitoring, and communicating. The CPU directs the PLC to execute control instructions,
communicate with other devices, carry out logic and arithmetic operations, and perform
internal diagnostics. The CPU runs memory routines, constantly checking the PLC (PLC
controller is redundant) to avoid programming errors and ensure the memory is undamaged.
PLCs work with inputs, outputs, a power supply, and external programming devices.
Technology and Industrial Automation Lab
PLCs read signals from different sensors and input devices. These input devices can be
keyboards, switches, or sensors. Inputs can be either in digital or analog form. Robots and
visual systems are intelligent devices that can send signals to PLC input modules. Output
devices such as motors and solenoid valves complete the automated system.
Five programming languages are used in PLCs. They are defined by the international standard
IEC 61131.
Ladder logic is one of the most commonly used PLC languages. In it, symbols represent
opening and closing relays, counters, timers, shift registers, and mathematical operations.
The symbols are arranged into the desired program routine. Rules in ladder logic are termed
Technology and Industrial Automation Lab
rungs. Each rung has a single output, but a single input can be found in more than one
rung.
LADDER EXAMPLE
Structured Text (ST) is a high-level language that uses sentence commands. In ST,
programmers can use if/then/else, SQRT, or repeat/until statements to create programs.
ST EXAMPLE
Instruction list (IL) is a low-level language with functions and variables defined by a simple
list. Program control is done by jump instructions and sub-routines with optional parameters
Technology and Industrial Automation Lab
IL EXAMPLE
SFC EXAMPLE
4. Procedure
Technology and Industrial Automation Lab
3. Assign a name to the Project. The path where the projects are saved is
C:\Program Files (x86)\Siemens\Step7\s7proj.
4. From menu labels (or right click with the mouse): Insertar/Equipo/SIMATIC
300
Technology and Industrial Automation Lab
5. Open the left side tree and select HARDWARE with double click.
6. Right click on insertar, simatic 300, bastidor, perfil soporte, to start the
hardware configuration of the PLC.
7. The first window shows the virtual rack where the PLC modules should be
inserted. The first slot is for the 24VDC power supply. The CPU should be
inserted in the second slot. On la right side tree, select the CPU model and
Technology and Industrial Automation Lab
version, and drag it to the second slot. (314C-2 PN/DP, nmero de serie 6ES7
314-6EH04-0AB0, V3.3;)
Estation IP
Processing 10.1.1.6
Handling processing 10.1.1.8
Distribution 10.1.1.2
Testing 10.1.1.4
Sorting 10.1.1.18
Handling sorting 10.1.1.16
Technology and Industrial Automation Lab
12. Test the hardware configuration downloading it to the PLC. Select the
root on the right side tree and press download button.
13. Test the communication by adding a variable table. Right click, insert,
variable table.
15. Save the variable table (diskette icon) and monitor the variables state
online (glasses icon).
5. Evaluation