Email Us at [email protected]

Download N3uron
Back to videos

Siemens Client / Siemens Client Tags Configuration

Siemens Client Tags Configuration

Description

In this video of our N3uron Academy, we’re going to explain how to configure the tags for the Siemens Client module in N3uron.

  • [05:19] Siemens Client Tags Configuration

Transcription

[00:00] Hello and welcome back! Following our previous video on configuring the connection to a Siemens PLC, today we’re going to explain how to configure the tags for the Siemens Client module in N3uron. The first thing we must consider when accessing a Data Block from the Siemens PLC is that the optimized block access must be turned off. Let’s navigate to the TIA Portal’s Project tree, find the Data Block you want to access, right-click on it, and select Properties. In the Properties window, locate the Attributes section and disable the optimized block access. Save the settings and download the new configuration to the PLC. Since I have already done this, I will just close the Properties window. Before going back to N3uron to configure the tags, let’s inspect the Data Block that we are going to access.

[01:03] As you can see, the number of the Data Block is 1, and it has two variables: one is an array of 10 integers and the other is a structure with different data types. The syntax used by the Siemens Client module to access the variables in the PLC involves providing the number of the Data Block followed by a colon and the offset of the variable within the Data Block, along with the data type. For boolean types, you must provide the bit number you want to access within the byte. For string data types, you must enter an extra colon followed by the number of characters you want to access from the string variable. But let’s see how it’s done. Let’s dive into configuring these tags in N3uron. I’ll navigate to the Tags configuration subsection in the Config tab and start setting up the tags. First, I will create a tag named “TestArray_0” with Read and Write permission to read and write the first element of TestArray, which is an array of integers.

[02:00] I will enable the source for this tag, select the module type as SiemensClient, and the module name as SiemensClient, just like we named the Siemens Client’s instance. I will provide the Device name, which in this case will be PLC01. For the S7 Address, I will enter “db1:00”, then I will select the data type as Int16 and configure the scan rate to 2000 milliseconds. Now, let’s create the rest of the tags.

[04:15] After configuring the tags, I’ll navigate to the Real-Time Data section to ensure the tags are being read correctly and that I can write a value to the first element of the TestArray variable. When I write any value to the “TestArray_0” in TIA Portal, I can observe the change in the value of the first element of the array when I go online with the PLC. However, I noticed an issue: the Boolean variable of the TestStruct is changing every second, but I’m facing an aliasing effect problem with this tag in my configuration. The scan rate of this tag should be at least half the frequency of the variable’s rate of change. To fix this, I go back to the tag’s configuration and changed the scan rate value to 500 milliseconds.

[05:00] Now, the updates for this tag are read without any problems. Excellent! The tags are showing good quality, their values are updating as expected, and I can also write to the tags. Thanks for watching, and see you in the next video!

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from - Youtube
Vimeo
Consent to display content from - Vimeo
Google Maps
Consent to display content from - Google
Spotify
Consent to display content from - Spotify
Sound Cloud
Consent to display content from - Sound