The Barionet50 and Barionet100 are network PLC (Programable Logic Controller), means these devices can programmed
to automate processes or add some functionality to the devices.

The programming language is BCL (Barix Control Language), it is very similar to BASIC.
On the following link you can find the BCL Programers manual :

Even a collection of fully working DEMO applications is available on:

(contact Barix support for user account to access) 

The very most of these DEMOs are complete packages with complete development environment and source code.
The easiest start is to use one of these examples and modify the existing source code according to your need.
So search for a DEMO which is close to your required functionality and modify it accordingly.

To modify the source code open the Barionet.bas file with any editor, e.g. with Notepad or Notepad+

Thereafter execute the in the package contained BCL.bat file to generate a new COB file.
Make sure during the execution of the BCL.bat file no errors occure and a new .TOK file was created in the source folder.