C Control PRO MINI STATION 198777 Data Sheet

Product codes
198777
Page of 28
20
12. C-Control PRO Mini-Station Library
To make programming the "C-Control PRO Mini-Station" easier, a library was created to
address the hardware through functions created specifically for this. Thus, no long commands
must be entered to switch a relay. It can be done with RELAIS_K1_ON() or RELAIS_K1_OFF().
The following sections explain the syntax and use of the library. Of course you can expand this
for own applications and functions. New and changed functions can be found on the C-Control
homepage under www.c-control.de.
MINI_INIT()
Initialises the C-Control PRO Mini-Station hardware. This function must always be called up
first.
Example:
Sub main()
MINI_INIT()
… main program …
End sub
SYSTEM_CNT()
Internal interrupt counter, running on a time base of 10ms. This also includes a sub routine for
the system clock.
OUTPUT1_ON() to OUTPUT7_ON()
This function switches on outputs 1 to 7. The red LED of the respective output shows if the
output is switched on. When the output is switched on, the red LED is lit.
OUTPUT1_ON()
Switches on output 1, +5V/DC present
OUTPUT1_OFF() to OUTPUT7_OFF()
This function switches off outputs 1 to 7. When the output is set to OFF, the red LED goes out.
OUTPUT1_OFF()
Switches off output 1, 0V/DC