Professional Documents
Culture Documents
EasyPLC Driver For Siemens Simatic Step 7 Instructions
EasyPLC Driver For Siemens Simatic Step 7 Instructions
5:
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:
Rafael Izquierdo.
www.nirtec.com
Valencia – Spain