# SLC 5/05 Run Mode System Tag

**URL:** <https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834>\
**Category:** General Discussion\
**Created:** [September 7, 2022, 3:39pm UTC](https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834 "2022-09-07T15:39:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [September 7, 2022, 3:39pm UTC](https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834/1 "2022-09-07T15:39:09Z")

</div>

Hi all,

PLCs I am used to working with have system tags that can be useful to monitor.

I have a SLC 5/05 (unfamiliar to me and I don’t have the programming software to make changes) that I need to monitor if is in run mode - does anyone know if such a system tag exists for these PLCs? I cant seem to find documentation on system tags.

---

<div class="post-metadata">

**Author:** ![brian.mcenulty](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@brian.mcenulty](https://forum.inductiveautomation.com/u/brian.mcenulty)\
**Post date:** [September 7, 2022, 3:42pm UTC](https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834/2 "2022-09-07T15:42:47Z")

</div>

S:1/0 - S:1/4 will give you the status you need.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/b/9bcb963d8d8257d8b51ab373c86120c21dfe5253.png)

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [September 7, 2022, 3:55pm UTC](https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834/3 "2022-09-07T15:55:30Z")

</div>

Hi Brian,

Thanks for the quick reply!

I am browsing the devices OPC tags and cannot see the register you are referring to:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/7/07708c8bca1a7738e8c4edde9f5d4f6c6fa32952.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 7, 2022, 4:14pm UTC](https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834/4 "2022-09-07T16:14:39Z")

</div>

You’ll have to create the tag and manually address it.

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [September 7, 2022, 4:27pm UTC](https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834/5 "2022-09-07T16:27:20Z")

</div>

Thanks, I added S2:0 and then changed the OPC Item Path - tried the following with no luck:  
`ns=1;s=[Device]S1`  
`ns=1;s=[Device]S:1`  
`ns=1;s=[Device]S:1/0`

---

<div class="post-metadata">

**Author:** ![Cory.grube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory.grube/32/20476_2.png) [@Cory.grube](https://forum.inductiveautomation.com/u/Cory.grube)\
**Post date:** [September 7, 2022, 4:56pm UTC](https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834/6 "2022-09-07T16:56:28Z")

</div>

I believe the manual short-hands to just ‘S’ while the actual status data is all ‘S2’, so you’ll want `ns=1;s=[Device]S2:1`. Make this a short datatype to get all 16 bits.

We can then use bitwise AND masking with S2:1 to get the integer value of the first 4 bits. This should match the values in @brian.mcenulty’s manual screenshot.

```auto
{[default]S2 Status} & 0x000F

```

If you want it to be a boolean tag for remote running, just add another clause, e.g.

```auto
({[default]S2 Status} & 0x000F) = 6

```

---

<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:** [September 7, 2022, 5:45pm UTC](https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834/7 "2022-09-07T17:45:37Z")

</div>

> [@Cory.grube](#):
>
> value of the first 4 bits

You want five bits, not four.

---

<div class="post-metadata">

**Author:** ![Cory.grube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory.grube/32/20476_2.png) [@Cory.grube](https://forum.inductiveautomation.com/u/Cory.grube)\
**Post date:** [September 7, 2022, 5:59pm UTC](https://forum.inductiveautomation.com/t/slc-5-05-run-mode-system-tag/63834/8 "2022-09-07T17:59:05Z")

</div>

Ah, the in-line tip threw me off - thanks. Should be:

`{[default]S2 Status} & 0x001F`
