To work with a PLC, you must connect it to you application.
- Open the developement environment Studio in the main menu under ? / Studio.
- In the Explorer, open the DataAccess project.
The DataAccess project contains the class S7Service with the subclass PLC1. This class serves as an example for the use of PLCs in your project.
Enter the data you need to connect to the PLC.
- Select class PLC1.
- Open the Property tab.
- Under Properties, choose the property IPAddress.
- In the Value text box, enter the IP address of the PLC you want to use.
- In the Rack and Slot properties, add the other values for determing the end point according to the same scheme.