News:

  • October 01, 2025, 04:50:22 AM

Login with username, password and session length

Author Topic: Example: Use general purpose Serial device to implement DirectNet Server  (Read 7014 times)

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6123
  • Yes Pinky, Do-more will control the world!
This example implements a serial DirectNet Server on the DM1's internal serial port. This is a great example to demonstrate using a device reference in a complex communication protocol, and how to write a complex serial protocol in a program block using stages.

Please read the Start Page in the project for details on how to use this example.

As with all examples, this is for educational purposes only and the user assumes are responsibility for its use.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

roger3208

  • Newbie
  • *
  • Posts: 4
BobO,
I was having some trouble sending 0x1B 0x53 0x0D = <Esc> <S> <CR> from a Do-more serial port to and older machine with a serial port that I need to start with <Esc> to clear it out then <S> and then <CR> to start it. As soon as I open your example for communications and saw the INIT block for loading it to the STREAMOUT block as a buffers, O-snap 4 bits and it works fine one rung.
Thank's
Roger

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6123
  • Yes Pinky, Do-more will control the world!
BobO,
I was having some trouble sending 0x1B 0x53 0x0D = <Esc> <S> <CR> from a Do-more serial port to and older machine with a serial port that I need to start with <Esc> to clear it out then <S> and then <CR> to start it. As soon as I open your example for communications and saw the INIT block for loading it to the STREAMOUT block as a buffers, O-snap 4 bits and it works fine one rung.
Thank's
Roger

Glad to hear it!
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO