TMS6 Modbus Tank Gauge Digi

OptoSrv

[tms6@localhost scripts]$ cat start.optosrv.sh

#!/bin/bash

# Signature: ac97c6cae50d56820e831eb46adf75d3  Branch: release  Version: 4.3.0.1510  Date: Fri Apr 20 16:36:22 EDT 2012

. /etc/toptech/ttcommon_env

[ "$USER" != "tms6" ] && echo "Must be tms6 to run this script!" && exit

killall optosrv

killall rcusrv

killall GEsrv

$TOPTECH_DIR/bin/GEsrv m=NT1 n=PLCMOD +u +lc +dbf &

$TOPTECH_DIR/bin/rcusrv

sleep 2

$TOPTECH_DIR/bin/optosrv

sleep 1

#$TOPTECH_DIR/bin/optosrv n=TANKS &

Line Control

[tms6@localhost scripts]$ cat start.lc.sh

#!/bin/bash

# Signature: 5ca8631f499aaa06aedb0ea1e8b9695c  Branch: release  Version: 4.3.0.1510  Date: Fri Apr 20 16:36:22 EDT 2012

. /etc/toptech/ttcommon_env

killall lc

[ "$USER" != "tms6" ] && echo "Must be tms6 to run this script!" && exit

# the following lines are samples for portserver and I/O board connections

/tms6/bin/lc n=RACK1 m=7734 tcpaddr=192.168.0.118 t=3000 &

/tms6/bin/lc n=RACK2 m=7734 tcpaddr=192.168.0.119 t=3000 &

/tms6/bin/lc n=RACK3 m=7734 tcpaddr=192.168.0.220 t=3000 &

/tms6/bin/lc n=RACK4 m=7734 tcpaddr=192.168.0.221 t=3000 &

/tms6/bin/lc n=BOL m=7734 tcpaddr=192.168.0.116 &

/tms6/bin/lc n=GATE1 m=7734 tcpaddr=192.168.0.117 &

/tms6/bin/lc n=NT1 tcpaddr=192.168.0.112 m=2101 &

sleep 4

/tms6/bin/rcudittoserver n=RACK1 p=S d=001 +persist &

/tms6/bin/rcudittoserver n=RACK2 p=S d=001 +persist &

/tms6/bin/rcudittoserver n=RACK3 p=S d=001 +persist &

/tms6/bin/rcudittoserver n=RACK4 p=S d=001 +persist &

/tms6/bin/rcudittoserver n=BOL p=S d=001 +persist &

/tms6/bin/rcudittoserver n=GATE1 p=S d=001 +persist &

Tank View Config

[tms6@localhost scripts]$ mylist TVSConfig

"TVSCONFG","                 ","0010","0010","","999","LPRNT","999","none             ","","",""

Opto Record Config

"OPT","0000001","T","020100","0092","    ","002","15","PLCMOD  ","1","C","","","","","00","Y","Tank Level (Tank 201)                   ","N","","","","3","d   32   03   0161   02   03   16   T020100 Tank Level                          ","","","","",""

"OPT","0000001","T","020100","0093","    ","003","00","PLCMOD  ","1","C","","","","","00","Y","Tank Temp (Tank 201)                    ","N","","","","3","d   32   03   0163   02   03   16   T020100 Tank Temp                           ","","","","",""

"OPT","0000001","T","050100","0092","    ","003","01","PLCMOD  ","1","C","","","","","00","Y","Tank Level                              ","N","","","","3","d   32   03   0101   02   03   16   T050100 Tank Level                          ","","","","",""

"OPT","0000001","T","050100","0093","    ","003","02","PLCMOD  ","1","C","","","","","00","Y","Tank Temp                               ","N","","","","3","d   32   03   0111   02   03   16   T050100 Tank Temp                           ","","","","",""

Tank Config

[tms6@localhost ~]$ mylist Tank

"0000001","0201","0201","RUG   ","008285378","1277","RUG       ","N","L","0201","0201","-03.20","727.80","2","   ","1406","0183","1425","0183","    ","    ","      ","    ","G","000873872","         "," ","      ","      ","         ","      ","    ","N","          ","                                                  ","0006505110","          ","N","      ","  ","        ","   ","      ","N","","N",""," "," "," "," ","                              ","            ","","   ","0","    ","","","N","N","N","  ","       ","","000603219","N","040129","0000","490129","0000"," ","         ","      ","         ","      "," ","1"," "," ","      ","      ","      ","      ","         "," "," "," "," ","N","N","N","N","N","N","N","N","N","N","N","N","N","1387","",""

"0000001","0501","0501","RUG   ","006505110","1657","RUG       ","N","L","0501","0501","19.800","711.40","2","   ","1406","0183","1425","0183","    ","    ","      ","    ","G","000873872","         "," ","      ","      ","         ","      ","    ","N","          ","                                                  ","0006505110","          ","N","      ","  ","        ","   ","      ","N","","N",""," "," "," "," ","                              ","            ","","   ","0","    ","","","N","N","N","  ","       ","","000603219","N","040129","0000","490129","0000"," ","         ","      ","         ","      "," ","1"," "," ","      ","      ","      ","      ","         "," "," "," "," ","N","N","N","N","N","N","N","N","N","N","N","N","N","1387","",""

Terminal Profile

[tms6@localhost ~]$ myshow TerminalProfile|grep -i tank

virtual_tank_gauging 1    N

tank_inv             1    Y

tank_stock           1    N

use_tank_id_on_trans 1