Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Siemens Simatic Step 7 Driver Instructions for EasyPLC v.

5:

1. Install EasyPLC v5 SimaticS7 Driver Setup program.


2. Launch EasyPLC.
3. Select Hardware -> Add new Hardware

4. In the Add New I/O Device window select the Siemens Drivers Category, open the node and make click on
the SimaticS7_PLCSIM, then press OK button.

5. Make click on the Hardware -> I/O Devices -> SimaticS7_PLCSIM Driver, and make click on the Configure
Button.
6. A new Window appears showing the SimaticS7 Driver configuration Window, here you can select how
many inputs, outputs and Data Blocks will be linked between Step 7 and EasyPLC.
Take note to this important issue: the Step7 inputs will be the EasyPLC outputs and the Step7 outputs
will be the EasyPLC inputs, this is due the S7 inputs are entities to be written by the simulator and the S7
outputs are entities to be read by the simulator. The Data Blocks can be read and/or written by EasyPLC.

In this configuration window you can program how many Inputs bytes, Outputs bytes and Data Blocks
words are going to be used.

In the previous example the inputs bytes E0.0 to E0.7, E1.0 to E1.7 are linked between S7 and EasyPLC.
In total 16 Inputs.
The output bytes O0.0 to O0.7, O1.0 to O1.7, O2.0 to O2.7 are linked between S7 and EasyPLC. In total
24 Outputs.
Take note how the 16 S7 Inputs are Outputs in EasyPLC, and the 24 Outputs are inputs in EasyPLC.
The Data Blocks works different because are read in words mode. In the example we are going to
read/write 3 words of DB1 and 3 words of DB2.

7. You will be able to force outputs (S7 inputs) and see input states (S7 outputs) pressing the Test Button. But
before you must launch Step 7 and Simatic PLCSIM programs:
Press Exit from Test Mode Button to finish the test mode.

Now you will be ready to use Simatic Step 7 I/O in yours EasyPLC programs.
With this simple example code, you are linked 16 Machines Simulator inputs [ReadInput(1, f)] with 16 Step7
inputs [WriteOutput(0,f, boolean value)] and 16 Machines Simulator outputs [WriteOutput(1, f, Boolean
value)] with 16 Step7 outputs [ReadInput(0, f)].
This is a useful example to interface the Step7 I/O with Machines Simulator, in order make two objectives:
• EasyPLC send the Machines Simulator inputs to Step 7.
• EasyPLC send the Step 7 outputs to Machines Simulator.
Remember this important issue:

Step 7 and PLCSIM programs must be running before Virtual PLC CPU is in run mode or the EasyPLC Test
SimaticS7 driver is trying to read the PLCSIM I/O data:

Sequence:

1) Run Simatic Step 7.


2) Load your Step 7 program.
3) Make the modifications in the logic you need.
4) Run PLCSIM.
5) Download the Step 7 program into the PLCSIM
6) Put PLCSIM in run mode.
7) Launch EasyPLC v5.0 to test the Step7-PLCSIM I/O or launch Virtual PLC CPU and set the PLC in
Run Mode to execute your EasyPLC logic program.
8) (optional) Run Machines Simulator.
Now new worlds of possibilities are open to you, you can use Machines Simulator directly with Step7 logic
programs or use Step 7 logic with all the EasyPLC available hardware interfaces…

Rafael Izquierdo.
www.nirtec.com
Valencia – Spain

You might also like