S7-1200 / S7-1500

Parent Previous Next

S7-1200 / S7-1500

To communicate with the PLCs S7-1200 and S7-1500 family it needs a special configuration. You have to enable the communication to remote devices on the SIEMENS TIA-Portal software.



TIA-Portal Configuration


Follow the steps below to enable communication with the PLC.


    1- After adding the CPU to the PLC program, go to the device properties (right click on the CPU name and select Properties).

    2- On General tab select Protection at the right side menu.

    3- On Protection you must have the access level "Full access (no protection)" selected.

    4- At the bottom of this screen, ont the "Connection mechanisms" area, check the option "Permit access with PUT/GET communication from remote partner (PLC, HMI, OPC, ...)".



    5- Click OK.

    6- Recompile and send the program to the PLC.


Data Blocks configuration


The Data Blocks (DB's) on TIA Portal are created by default with the option "Optimized block access" enabled. This option provides data only over the variable names (Tags names). Since the SmartView drivers access the memory offsets, this options must be manually disabled.


Follow the steps below to manually disabled it:


    1- Go to the Data Block properties dialog, right click on the desired DB and select Properties.

    2- On Attributes area uncheck the option "Optimized block access". See the image below:



    3- Click OK.




Opening the Data Block view, the additional column "Offset" must be shown on the table which brings the memory offsets to be used in the SmartView drivers.




 

Note: For arrays, the main offset must be added with the element offset - for example: DB1.DBB6 (Byte 6) refers to the array element Static_3[2], DB1.DBB14 (byte 14) refers to the array element Static_3[10] on the Data Block shown above.