# Problem controling or writting to an IEC61850 Device

**URL:** <https://forum.inductiveautomation.com/t/problem-controling-or-writting-to-an-iec61850-device/91880>\
**Category:** Ignition\
**Created:** [June 14, 2024, 4:05pm UTC](https://forum.inductiveautomation.com/t/problem-controling-or-writting-to-an-iec61850-device/91880 "2024-06-14T16:05:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Claret\_Afanador](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@Luis\_Claret\_Afanador](https://forum.inductiveautomation.com/u/Luis_Claret_Afanador)\
**Post date:** [June 14, 2024, 4:05pm UTC](https://forum.inductiveautomation.com/t/problem-controling-or-writting-to-an-iec61850-device/91880/1 "2024-06-14T16:05:36Z")

</div>

Good morning gents,

I have a problem in understanding ignition functions for IEC61850 driver. I have already create a devide in my designer where I create multiple tags that get information from a report of an IEC61850 preconfigured in my gateway. Now I want to control or write to one of those tags but I dont really undertand how functions works. For Example:

Im trying to access information with function inside a button to print that information:  
device = system.iec81650.getControlParams("tag\_path")  
print(device)

but ignition give me the following error:  
AttributeError: 'com.inductiveautomation.ignition.common.script.Imm' object has no attribute 'iec61850'

Maybe I am not undertanding how to work with these functions, can anybody help me please understand.

Best regards,

---

<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:** [June 14, 2024, 4:28pm UTC](https://forum.inductiveautomation.com/t/problem-controling-or-writting-to-an-iec61850-device/91880/2 "2024-06-14T16:28:48Z")

</div>

I'm going to guess that you are trying to use that function in the designer script console. That is Vision scope. You need gateway scope, which cannot be tested directly from the designer.

Consider making a project library function with your test code, and a gateway message handler that calls it. Or, perhaps, use the [system.util.runInGateway](https://www.automation-pros.com/toolkit/doc/utility.html#runingateway) decorator from my Integration Toolkit.
