# Error on Writing to s7 plc

**URL:** <https://forum.inductiveautomation.com/t/error-on-writing-to-s7-plc/26964>\
**Category:** Ignition\
**Created:** [July 29, 2019, 6:22pm UTC](https://forum.inductiveautomation.com/t/error-on-writing-to-s7-plc/26964 "2019-07-29T18:22:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [July 29, 2019, 6:22pm UTC](https://forum.inductiveautomation.com/t/error-on-writing-to-s7-plc/26964/1 "2019-07-29T18:22:11Z")

</div>

Hi  
Can some body tell me why I get this error?  
I connect to s7 1200 plc and try to write value to it and some times not always get these errors.

![Share~01](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6cefdb4d90bb8c5e0626fa6c098a51e7fda0b7c0.jpeg)

---

<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:** [July 29, 2019, 6:26pm UTC](https://forum.inductiveautomation.com/t/error-on-writing-to-s7-plc/26964/2 "2019-07-29T18:26:00Z")

</div>

The StatusCode that goes along with that description is `Bad_NotConnected`, so probably it was caused by a write while the device was not connected for some reason.
