Home AMX User Forum NetLinx Studio

Is $0D Not Valid for Carriage Return in G4?

Greetings,

I am working with a UI module written for G3 panels on G4 panels.

All is well except that in variable text windows $0D does nor yield a carriage return.

The following send command to a G4 does not carriage return between the time and date:

!T$01$0DMON AUG 28$0D09:08 PM$0D$0D

Any suggestions as to how to get the carriage return to work?

Thank you.

Comments

  • joelwjoelw Posts: 175
    Use $0A or 10 for a new line.

    The clue is in TPDesign. Modify some text in a text box, then press control enter, then some more text.

    The "unicode send command value" gets appended with s a $000A.
  • DHawthorneDHawthorne Posts: 4,584
    If it's in a send_command to change the text, you can imbed a | character, and the panel will interpret it as a newline. This is valid for G3 and G4.
  • TurnipTruckTurnipTruck Posts: 1,485
    DHawthorne wrote:
    you can imbed a | character.

    What is the keystroke for that character?

    Thanks!
  • ericmedleyericmedley Posts: 4,177
    What is the keystroke for that character?

    Thanks!


    It's the shift of '\' (note: it's not '/')
  • generally, in windows systems, CRLF is used for a break, in UNIX systems LF is used..

    when i send sth. to a Touchpanel from the system, I usually use CRLF, which is 13,10, or $0D,$0A
  • NMarkRobertsNMarkRoberts Posts: 455
    What is the keystroke for that character?

    I note that my nice new MS keyboard shows the pipe character as a continuous vertical line while every other keyboard I ever used has a gap half way - "dash dash" but vertically.
  • yuriyuri Posts: 861
    I note that my nice new MS keyboard shows the pipe character as a continuous vertical line while every other keyboard I ever used has a gap half way - "dash dash" but vertically.

    i don't think thats keyboard related but font/OS related...
  • DHawthorneDHawthorne Posts: 4,584
    yuri wrote:
    i don't think thats keyboard related but font/OS related...
    Unless, of course, he's talking about the actual label on the keyboard button :). You could say, I guess, that it's the font used to label the button ...
Sign In or Register to comment.