# System.opc.write Not Working...for only booleans

**URL:** <https://forum.inductiveautomation.com/t/system-opc-write-not-working-for-only-booleans/31157>\
**Category:** Ignition\
**Created:** [January 8, 2020, 6:50pm UTC](https://forum.inductiveautomation.com/t/system-opc-write-not-working-for-only-booleans/31157 "2020-01-08T18:50:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordan.richardson](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jordan.richardson](https://forum.inductiveautomation.com/u/jordan.richardson)\
**Post date:** [January 8, 2020, 6:50pm UTC](https://forum.inductiveautomation.com/t/system-opc-write-not-working-for-only-booleans/31157/1 "2020-01-08T18:50:13Z")

</div>

Ignition Gateway: 7.9.13

I am attempting to do something which I believed to be simple, a direct OPC write to a boolean value in an AB PLC. When that failed, I created a Int tag and a String tag in the PLC to test if it might be a permissions issue. However, those were both successful, as seen below. Here is my code as well:

```auto
system.opc.writeValue("Ignition OPC-UA Server","ns=1;s=[Plt-SI-TxtRob01]JLRBool",1)
system.opc.writeValue("Ignition OPC-UA Server","ns=1;s=[Plt-SI-TxtRob01]JLRInt",10)
system.opc.writeValue("Ignition OPC-UA Server","ns=1;s=[Plt-SI-TxtRob01]JLRString","Test")

```

 ![successWrite](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6582351f82de9f8c85a5b4bc5c09a8118d1f56b6.png)

Thoughts?

---

<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:** [January 8, 2020, 6:52pm UTC](https://forum.inductiveautomation.com/t/system-opc-write-not-working-for-only-booleans/31157/2 "2020-01-08T18:52:51Z")

</div>

Does using `True` or `False` instead of `1` or `0` work?

---

<div class="post-metadata">

**Author:** ![jordan.richardson](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jordan.richardson](https://forum.inductiveautomation.com/u/jordan.richardson)\
**Post date:** [January 8, 2020, 6:58pm UTC](https://forum.inductiveautomation.com/t/system-opc-write-not-working-for-only-booleans/31157/3 "2020-01-08T18:58:15Z")

</div>

Copying and pasting variations of what I’ve tried:

‘True’  
“True”  
‘true’  
“True”

Dang, it’s case sensitive and quotations cannot be used. true returned a “no value” error but True worked.

Thank you Kevin!

---

<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:** [January 8, 2020, 7:20pm UTC](https://forum.inductiveautomation.com/t/system-opc-write-not-working-for-only-booleans/31157/4 "2020-01-08T19:20:02Z")

</div>

> [@jordan.richardson](#):
>
> Dang, it’s case sensitive and quotations cannot be used. true returned a “no value” error but True worked.

That's a python language restriction.
