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");
}
?>
Summary of Contents for RMS-200
Page 1: ...RMS 200 C EtherTek Circuits...
Page 2: ...O w n e r s M a n u a l...
Page 48: ...Block Diagram...