RS-232 test on Ardbox HF Family
3 January, 2019 by
 RS-232 test on Ardbox HF Family
Boot & Work Corp. S.L., Support Team


Introduction


In this post it is showed how to test the RS-232 on Ardbox HF family versions.


Requirements


20 IOs PLC:          Ardbox Family Products


RS-232 Library:             Industrial Shields RS-232 Library (Github)

 

Software


Connecting an Ardbox with other equipment through RS-232.

On the Sketch is showed that you must send a 25 thought RS-232 to complete this test.

RS-232 Test sketch:

 #include <RS232.h>

////////////////////////////////////////////////////////////////////////////////////////////////////
void setup() {
  Serial.begin(9600L);
  Serial.println("rs232-echo-simple started");

  RS232.begin(9600UL);
}

////////////////////////////////////////////////////////////////////////////////////////////////////
void loop() {
 RS232.write(25);
 if (RS232.available()) {
    byte rx = RS232.read();
    Serial.println(rx);
    RS232.write(rx);
  }
}

 

See also


 Ardbox Relay RS-232 Help Page 

Ardbox Analog RS-232 Help Page

RS-232 test on M-Duino plus

 RS-232 test on Ardbox HF Family
Boot & Work Corp. S.L., Support Team
3 January, 2019
Share this post
Archive

Looking for your ideal PLC?

Take a look at this product comparison with other industrial controllers Arduino-based.

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.


Industrial PLC comparison >>

Do you want more information?

Just fill the form!

Tell me more!