# ViewMarq Carriage Return Modbus Command String

**URL:** <https://forum.inductiveautomation.com/t/viewmarq-carriage-return-modbus-command-string/16263>\
**Category:** Ignition\
**Tags:** python\
**Created:** [December 8, 2017, 5:13pm UTC](https://forum.inductiveautomation.com/t/viewmarq-carriage-return-modbus-command-string/16263 "2017-12-08T17:13:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexmarcy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexmarcy/32/4653_2.png) [@alexmarcy](https://forum.inductiveautomation.com/u/alexmarcy)\
**Post date:** [December 8, 2017, 5:13pm UTC](https://forum.inductiveautomation.com/t/viewmarq-carriage-return-modbus-command-string/16263/1 "2017-12-08T17:13:42Z")

</div>

I have a ViewMarq sign I am trying to send a modbus command string to at address 411000.

I can send values to other registers no problem, for example Numeric Variable 1 at 40100.

The tag value at 411000 changes when I send data over, it just doesn’t change the sign display. Other forum threads indicate the carriage return of \r needs to be included. It is included, and if I write to a modbus simulator with the same string I am seeing the x0D carriage return the ViewMarq is expecting.

Based on another thread in the forum I am using the following string:

s="\<ID 0\>Hello World" + “\n\r”  
system.opc.writeValue(“Ignition OPC-UA Server”,"[Sign]HRS11000:200",s)

Based on Automation Direct tech support with the behavior it is not seeing the carriage return, otherwise it would update the display.

---

<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:** [December 8, 2017, 5:16pm UTC](https://forum.inductiveautomation.com/t/viewmarq-carriage-return-modbus-command-string/16263/2 "2017-12-08T17:16:28Z")

</div>

Have you tried reversing the order of the carriage return and new line?

i.e. `s="Hello world\r\n"`

---

<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:** [December 8, 2017, 5:16pm UTC](https://forum.inductiveautomation.com/t/viewmarq-carriage-return-modbus-command-string/16263/3 "2017-12-08T17:16:39Z")

</div>

Consider omitting the “\n”, or placing it after the “\r”.

---

<div class="post-metadata">

**Author:** ![alexmarcy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexmarcy/32/4653_2.png) [@alexmarcy](https://forum.inductiveautomation.com/u/alexmarcy)\
**Post date:** [December 8, 2017, 5:23pm UTC](https://forum.inductiveautomation.com/t/viewmarq-carriage-return-modbus-command-string/16263/4 "2017-12-08T17:23:51Z")

</div>

I’ve tried \r\n, \n\r, \r\r, more than 2 \r’s and doubling up on both orders of \n\r and \r\n with no luck.

I’m going through the various byte/word swapping configurations to see if I can have any luck there, but the tag value is coming across correctly in the tag browser so it seems like everything should be good to go there.
