RS-232 test on Ardbox HF Family

January 3, 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 (Included in our boards package):             Industrial Shields boards 

 

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

​Search in our Blog

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

Looking for your ideal Programmable Logic Controller?

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 >>>