# SFC write to a tag

**URL:** <https://forum.inductiveautomation.com/t/sfc-write-to-a-tag/10283>\
**Category:** Ignition\
**Created:** [July 28, 2015, 1:34pm UTC](https://forum.inductiveautomation.com/t/sfc-write-to-a-tag/10283 "2015-07-28T13:34:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [July 28, 2015, 1:34pm UTC](https://forum.inductiveautomation.com/t/sfc-write-to-a-tag/10283/1 "2015-07-28T13:34:16Z")

</div>

Hi, I’m using a SFC and I just want to write to a tag with an Action Step, this is what I have:

```auto
def onStart(chart, step):
	"""
	This will run when the step starts, before any
	other action.

	Arguments:
		chart: A reference to the chart's scope.
		step: A reference to this step's scope.
	"""
	system.tag.write("New Tag", 0)
	

```

When I activate a tag, this action step must run writing 0 to a tag but nothing happen.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 28, 2015, 8:21pm UTC](https://forum.inductiveautomation.com/t/sfc-write-to-a-tag/10283/2 "2015-07-28T20:21:27Z")

</div>

Hi MoisesZV,

SFC charts are not part of any specific project so tag writes do not automatically use a project’s default tag provider. So you need to specify the tag provider in the tag path that you provide.

For example:

```auto
system.tag.write("[default]New Tag", 0)
```

Best,

---

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [July 29, 2015, 12:31pm UTC](https://forum.inductiveautomation.com/t/sfc-write-to-a-tag/10283/3 "2015-07-29T12:31:22Z")

</div>

Thanks again nmudge!
