Ordering a process of level Siemens S7-300


Dear PLC Technical members,

Welcome to our followers up on PLC Technical blog, today in this article I will introduce the application PLC consists of managing the level of a liquid in a tank vessel. The filling of the tank is done by means of a pump and emptying is controlled by a valve. For this I will use a type Siemens S7-300 and the programming software SIMATIC manager step7 V5.5


ORDERING A PROCESS OF LEVEL SIEMENS S7-300 PLC


I. ORDERING A PROCESS OF LEVEL SIEMENS S7-300 

In this article I would like to show you how to ordering a process of level on the PLC Siemens S7-300.

Before we begin, following is the steps of items you need
  • Purpose of manipulation. 
  • Description of operation. 
  • Hardware configuration. 
  • Program and sub-programs (LIST & CONT) 
  • Simulation of the application under S7-PLCSIM 
  • Loading to the automaton.

1.Purpose of manipulation:

The application consists of managing the level of a liquid in a tank. The filling of the tank is done through a pump and the emptying is managed by a valve. For this, we will utilize a Siemens S7-300 PLC and the SIMATIC Manager programming Step7 V5.5.

2.Description of the functioning:

ORDERING A PROCESS OF LEVEL step7

The different tank levels are measured by sensors arranged in the tank. The mode of walking is as follows:
  • A start cycle button is used to start the filling 
  • When the highest level of the tank is reached, the pump stops and the valve open. When the vessel's low level is reached, the valve closed and the pump starts to reach the highest level.
  • A Stop cycle button is used to interrupt the filling. An action on this button allows to set the system
  • Safe. The pump stops, the valve opens until reaching the low safety level (empty tank). The valve closes and the cycle stops.
Shields must be set up:
  • Loss of the high level of the tank: at the other level called the Level up triggers, the system gets safe. In this case, the pump stops, the valve opens until reaching the level Low safety (empty tank). The valve closes and the cycle stops. Loss of low tank level: another level says Safety is triggered, the system is safe. In this case, the valve closes and cycle stops.
  • A COM1 switch is used to select the Automatic/Manual operation.
  • In manual operation, it is possible to activate the pump and the valve using a COM2 switch.
grafcet process of level

3.Hardware configuration:

We start by creating a Siemens S7-300 station:


creating a S7-300 station


The following hardware configuration Siemens S7-300 is performed:


Power supply  
PS 307 5A
CPU
CPU 315-2 DP
Digital input module
DI16xDC24V
Digital output module
DO16xDC24V/0.5A
Analog input/output module
AI4/AO2

Hardware configuration, CPU 315 2 DP


Hardware configuration CPU 315 2 DP

4.Programme and sub-programmes ( LIST & CONT):

A mnemonic table is defined for the various variables used:


A mnemonic table STEP7

The OB100 block is an organization block that runs only once during from the STOP state to the RUN state, it will be used to initialize the Grafcets governing the system:


OB100 STEP7

The cyclical organization block OB1 which includes the programming of the GRAFCET control taking into account the mentioned constraints before:


Level control program Step 7

Level control program 2 Step 7
Level control program 3 Step 7
Level control program 4 Step 7
Level control program 5 Step 7

5.Simulation of the application in S7-PLCSIM:

The Siemens S7-300 STEP-7 software is equipped with a S7-PLCSIM to simulate a real-time programmable controller while giving the ability to force variables, but only if the mode of operation of the automaton is RUN-P. For this we proceed with the following steps: S7-PLCSIM is launched:


S7-PLCSIM

After the simulator is activated, the station is loaded to the simulated PLC (Hardware configuration, organizational blocks, under programs, functional blocks, functions, data blocks... etc..):


the station is loaded to the simulated PLC

Open the variables table by viewing their states
the variables table step7
We then put PLC in RUN-P mode The difference about RUN and RUN-P are: 
  • RUN= Run the program (when the switch in run mode PLC not permit you to alter online program you can just screen it) 
  • RUN-p=Run + program mode, so with the utilization of the run-up you can adjust the program. In the two modes, the program is executed.
We then put plc in RUN-P mode

We're checking functioning

Test variable table step7

test 2 variable table step7

6.Loading to the PLC CPU 315 2/DP:

The loading is done through the MPI adapter that connects the PC and the automaton:
Loading to the PLC CPU 315 2DP


From here we have finished the subject of the ordering a process of level siemens S7-300, if you like it, please share it with friends until it benefits, and then meet on a new topic on blog PLC Technical. 
Regards, 
PLC Technical

Post a Comment

Post a Comment (0)

Previous Post Next Post