Now, the project will be transferred (not simulated) to the PLC (using the “2” icon, next to the previous). Select the PLC and compile its program, as shown below in the icon “1”. In the “Properties” of this network, access the “Internet Protocol version 4 (TCP/IPv4)” and assign an IP address of the same range as the IP address of the PLC in TIA Portal and PLCSIM Advanced (it means that the IP Address differs in the last digit, for example 192.168.0.2) and set the subnet mask to 255.255.255.0. Search for “Siemens PLCSIM Virtual Adapter”. Next, click on “Network and Sharing Center” Create an instanceįirst, you have to know the IP of your PLC in TIA Portal, go to the PLC properties panel and click on “Ethernet addresses” and there you have all the data needed. This section details the steps to be performed in the PLCSIM Advanced simulator. The addresses of I/O list must be equal in the hardware (I/O modules).Then, individual signals can be declared to be used in the program, each one properly mapped according to the connections in the model: Open the tag table and declare the variables 'inputs' and 'outputs' in the corresponding addresses. Thus, in the “device configuration” tab, 2 I/O modules should be added to the PLC, one for the inputs and the other for the outputs as it is shown in the pictures below.
![two network cards simatic manager no online access two network cards simatic manager no online access](https://i.ytimg.com/vi/btuBtG2uTAM/maxresdefault.jpg)
For example in this system, the sensor 2 is in the bit 1 of the inputs module. In the “port” tab is shown the addresses of the inputs and outputs. The PLC built in Simumatik OEP has an I/O module of 1 byte (0-7) for the inputs called “inputs” and an I/O module of 1 byte (0-7) for the outputs called “outputs”. PLC / Properties / Profinet interface / Advanced options / Real time settings / IO communication PLC / Properties / OPC UA / Server / Options / Subscriptions In order to achieve a better response from the changes in the inputs and outputs you can change the following parameters:
#TWO NETWORK CARDS SIMATIC MANAGER NO ONLINE ACCESS LICENSE#
In the structure on the left, scroll down until the end where you will find the “Runtime licenses” tab, click on “OPC UA” and select the type of purchased license as “Medium”. In the “General” tab of the pop-up window, choose “OPC UA” in the structure on the left and enable the option “Activate OPC UA server”. Remember to do this in every I/O module you have in the PLC. Thus, you have to set “none” in 4 different squares. In the structure on the left, you can find the I/O modules added previously, click on I/O addresses for each module and set the process image of inputs and outputs to none in both modules. In the project tree, right click on the PLC, and select “Properties” In the “Protection” tab of the pop-up window, enable the option “Support simulation during block compilation” In the project tree, right click on the title of the project, and select “properties”. Some configuration needs to be done in TIA Portal in order to enable OPCUA features.
![two network cards simatic manager no online access two network cards simatic manager no online access](https://image.slidesharecdn.com/howtosetupopcwithsimaticnet-140803045106-phpapp01/95/how-to-set-up-opc-with-simatic-net-1-638.jpg)
'outputs': A PLC output byte addressed to %QB6.Ĭreate a project in TIA Portal and configure the hardware.'inputs': A PLC input byte addressed to %IB10.In this example the data that will be transfered is: Make sure the choosen PLC is compatible with OPCUA Tutorial 5 - Electric and pneumatic circuits