# Siemens S7-1200 syntax tags

**URL:** <https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068>\
**Category:** Ignition\
**Created:** [March 5, 2019, 3:25pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068 "2019-03-05T15:25:35Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaguilar](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@aaguilar](https://forum.inductiveautomation.com/u/aaguilar)\
**Post date:** [March 5, 2019, 3:25pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/1 "2019-03-05T15:25:35Z")

</div>

Hello, I am creating tags for a siemens S7-1200 PLC, the names of the variables are for example; temp1, temp2, temp3  
But the syntax of the tags is for example IW0.  
How can I know what syntax I have to use in the **OPC Item Path**?

Tanks for your help.

---

<div class="post-metadata">

**Author:** ![aaguilar](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@aaguilar](https://forum.inductiveautomation.com/u/aaguilar)\
**Post date:** [March 5, 2019, 5:25pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/2 "2019-03-05T17:25:26Z")

</div>

Anyone who wants to help me with the tags **OPC item path** syntax of a Siemens S7-12000?

I would appreciate it very much.

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [March 5, 2019, 5:33pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/3 "2019-03-05T17:33:41Z")

</div>

You may find what you need in a [forum search for Siemens S7-1200](http://forum.inductiveautomation.com/search?q=Siemens%20S7-1200).

---

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [March 6, 2019, 5:06am UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/4 "2019-03-06T05:06:52Z")

</div>

[https://docs.inductiveautomation.com/display/DOC/About+Siemens+Addressing](https://docs.inductiveautomation.com/display/DOC/About+Siemens+Addressing)

---

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [March 6, 2019, 5:09am UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/5 "2019-03-06T05:09:28Z")

</div>

This is all presuming you have set up the PLC correctly to be able to be accessed and added it to the gateway.

---

<div class="post-metadata">

**Author:** ![aaguilar](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@aaguilar](https://forum.inductiveautomation.com/u/aaguilar)\
**Post date:** [March 6, 2019, 2:02pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/6 "2019-03-06T14:02:17Z")

</div>

It’s correct craigb, it’s already set up

---

<div class="post-metadata">

**Author:** ![aaguilar](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@aaguilar](https://forum.inductiveautomation.com/u/aaguilar)\
**Post date:** [March 6, 2019, 2:11pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/7 "2019-03-06T14:11:05Z")

</div>

The service provider of my PLC only gave me these names of the variables (Example: var1, var2), what else do I need to know in order to configure them?

---

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [March 6, 2019, 3:04pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/8 "2019-03-06T15:04:00Z")

</div>

You need to know the actual area. Is it a M0.1 or DB12,X1.2 For example. Are your variables Real, Int’s or Bool etc

If they are giving you the data from a DB they will have to turn off optimized block access.

Start with an easy one, if they have the PLC Clock memory bits turned on M0.5 should flash at 1hz.  
**[PLC\_NAME]M0.5**

---

<div class="post-metadata">

**Author:** ![aaguilar](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@aaguilar](https://forum.inductiveautomation.com/u/aaguilar)\
**Post date:** [March 6, 2019, 3:36pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/9 "2019-03-06T15:36:02Z")

</div>

I made the test with the flag **M0.5** and the tag does not respond, the only ones that respond are the following:  
IW95, IW96, IW97 up to IW103.

Thanks for your help craigb

---

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [March 6, 2019, 5:59pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/10 "2019-03-06T17:59:31Z")

</div>

The best thing to do if you don’t have access to the PLC is ask your programmer to add a new DB and use that DB for all the variables you need. It makes it easier for you as he can print / PDF the variable list and also makes it easier to remember when your creating tags.

---

<div class="post-metadata">

**Author:** ![aaguilar](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@aaguilar](https://forum.inductiveautomation.com/u/aaguilar)\
**Post date:** [March 6, 2019, 8:43pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/11 "2019-03-06T20:43:34Z")

</div>

This is the list of variables that my provider gives me;

• Coral Steam Flow (flow1)  
• Steam Flow Snail (flow2)  
• Head temperature (tem1)  
• Pressure Head (pre1)  
• Snail Totalizer (total2)  
• Coral Totalizer (total1)

but those do not work for me, how do I get the **offset** of those variables?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 7, 2019, 1:34pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/12 "2019-03-07T13:34:19Z")

</div>

> [@aaguilar](#):
>
> but those do not work for me, how do I get the **offset** of those variables?

Your programmer must tell you. And if they are in a DB, the optimized access must be turned off. You need your programmer's help.

---

<div class="post-metadata">

**Author:** ![aaguilar](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@aaguilar](https://forum.inductiveautomation.com/u/aaguilar)\
**Post date:** [March 7, 2019, 1:51pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-1200-syntax-tags/23068/13 "2019-03-07T13:51:08Z")

</div>

Ok I will, **craigb** and **pturmel** , thank you very much for your help.
