EasyManua.ls Logo

EtherTek Circuits RMS-200 - Page 19

Default Icon
51 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
An example of running a relay script on the command line using the rmsscript program.
The example below runs relay Script 1.
PHP programmers may want to write their own programs to control the relays. Below are
two example PHP functions that use the PHP system command to turn relay 1 on and off.
<?php
# EtherTek Circuits 2001 - 2010
#***********************
#* Relay 1 ON Function *
#***********************
function relay1on()
{
system("/bin/rmsrelay 1 on");
}
#************************
#* Relay 1 OFF Function *
#************************
function relay1off()
{
system("/bin/rmsrelay 1 off");
}
?>