driver working sending data to meshify
This commit is contained in:
@@ -1,90 +1,84 @@
|
||||
alarm_mode - boolean
|
||||
alarm_pressure - boolean
|
||||
alarm_remote - boolean
|
||||
alarm_temperature - boolean
|
||||
alarm_tubingpressure - boolean
|
||||
alarm_vfd - boolean
|
||||
auto_mode - boolean
|
||||
dh_dischargepressure - integer
|
||||
dh_dischargetemperature - integer
|
||||
dh_downholestatus_int - integer
|
||||
dh_fluid_level - float
|
||||
dh_intakepressure - float
|
||||
dh_intaketemperature - float
|
||||
dh_maxintakepressure_forever - integer
|
||||
dh_maxintakepressure_startup - integer
|
||||
dh_maxintaketemperature_forever - float
|
||||
dh_maxintaketemperature_startup - float
|
||||
dh_numchannels - integer
|
||||
dh_pressure_shutdown_enabled - boolean
|
||||
dh_pressure_shutdown_limit - float
|
||||
dh_pressure_startup - float
|
||||
dh_pressure_startup_enabled - boolean
|
||||
dh_psirating - integer
|
||||
dh_temp_shutdown - float
|
||||
dh_temp_shutdown_enabled - boolean
|
||||
dh_temp_startup_enabled - boolean
|
||||
dh_temp_startup_limit - float
|
||||
dh_tooltype - integer
|
||||
dh_toolvoltage - integer
|
||||
dh_windingtemperature - integer
|
||||
downhole_tool_enabled - boolean
|
||||
hand_mode - boolean
|
||||
mode_test - boolean
|
||||
off_mode - boolean
|
||||
remote_shutdown_disabled - boolean
|
||||
rp_mode - boolean
|
||||
rp_pressure - boolean
|
||||
rp_remote - boolean
|
||||
rp_temperature - boolean
|
||||
rp_trip - boolean
|
||||
rp_tubingpressure - boolean
|
||||
rp_vfd - boolean
|
||||
run_permissive - boolean
|
||||
sp_mode - boolean
|
||||
sp_pressure - boolean
|
||||
sp_remote - boolean
|
||||
sp_temperature - boolean
|
||||
sp_trip - boolean
|
||||
sp_vfd - boolean
|
||||
sp_voltage - boolean
|
||||
start_permissive - boolean
|
||||
stop_command - boolean
|
||||
tubingpressure_alarm_delay - integer
|
||||
tubingpressure_alarm_startup_delay - integer
|
||||
tubingpressure_eu_max - float
|
||||
tubingpressure_eu_min - float
|
||||
tubingpressure_hi - boolean
|
||||
tubingpressure_hi_sp - float
|
||||
tubingpressure_lo - boolean
|
||||
tubingpressure_lo_sp - float
|
||||
tubingpressure_ok - boolean
|
||||
tubingpressure_transducer_enabled - boolean
|
||||
vfd_MinFreq - float
|
||||
vfd_acceltime - float
|
||||
vfd_active - boolean
|
||||
vfd_atspeedref - boolean
|
||||
vfd_clearfault - boolean
|
||||
vfd_cmdfwd - boolean
|
||||
vfd_dcbusvoltage - float
|
||||
vfd_deceltime - float
|
||||
vfd_disabled - boolean
|
||||
vfd_fault - boolean
|
||||
vfd_fault_code - integer
|
||||
vfd_fault_commerror - boolean
|
||||
vfd_fault_drivefault - boolean
|
||||
vfd_maxfreq - float
|
||||
vfd_motorpoles - integer
|
||||
vfd_nameplatefla - float
|
||||
vfd_nameplatehp - float
|
||||
vfd_nameplatehz - float
|
||||
vfd_nameplateolcurrent - float
|
||||
vfd_nameplaterpm - float
|
||||
vfd_nameplatevolts - float
|
||||
vfd_outputcurrent - float
|
||||
vfd_outputvoltage - float
|
||||
vfd_ready - boolean
|
||||
vfd_speedfdbk - float
|
||||
vfd_speedref - float
|
||||
vfd_stopmode - integer
|
||||
vfd_torqueperfmode - integer
|
||||
alarmmode - boolean
|
||||
alarmpressure - boolean
|
||||
alarmremote - boolean
|
||||
alarmtemperature - boolean
|
||||
alarmtubingpressure - boolean
|
||||
alarmvfd - boolean
|
||||
automode - boolean
|
||||
dhdischargepressure - integer
|
||||
dhdischargetemperature - integer
|
||||
dhdownholestatusint - integer
|
||||
dhfluidlevel - float
|
||||
dhintakepressure - float
|
||||
dhintaketemperature - float
|
||||
dhmaxintakepressureforever - integer
|
||||
dhmaxintakepressurestartup - integer
|
||||
dhmaxintaketemperature_forever - float
|
||||
dhmaxintaketemperaturestartup - float
|
||||
dhnumchannels - integer
|
||||
dhpressureshutdownenabled - boolean
|
||||
dhpressureshutdownlimit - float
|
||||
dhpressurestartup - float
|
||||
dhpressurestartupenabled - boolean
|
||||
dhpsirating - integer
|
||||
dhtempshutdown - float
|
||||
dhtempshutdownenabled - boolean
|
||||
dhtempstartupenabled - boolean
|
||||
dhtempstartuplimit - float
|
||||
dhtooltype - integer
|
||||
dhtoolvoltage - integer
|
||||
dhwindingtemperature - integer
|
||||
downholetoolenabled - boolean
|
||||
handmode - boolean
|
||||
modetest - boolean
|
||||
offmode - boolean
|
||||
remoteshutdowndisabled - boolean
|
||||
rpmode - boolean
|
||||
rppressure - boolean
|
||||
rpremote - boolean
|
||||
rptemperature - boolean
|
||||
rptubingpressure - boolean
|
||||
rpvfd - boolean
|
||||
runpermissive - boolean
|
||||
spmode - boolean
|
||||
sppressure - boolean
|
||||
spremote - boolean
|
||||
sptemperature - boolean
|
||||
spvfd - boolean
|
||||
startpermissive - boolean
|
||||
tubingpressurealarmdelay - integer
|
||||
tubingpressurealarmstartupdelay - integer
|
||||
tubingpressureeumax - float
|
||||
tubingpressureeumin - float
|
||||
tubingpressurehi - boolean
|
||||
tubingpressurehisp - float
|
||||
tubingpressurelo - boolean
|
||||
tubingpressurelosp - float
|
||||
tubingpressureok - boolean
|
||||
tubingpressuretransducerenabled - boolean
|
||||
vfdminfreq - float
|
||||
vfdacceltime - float
|
||||
vfdactive - boolean
|
||||
vfdatspeedref - boolean
|
||||
vfddcbusvoltage - float
|
||||
vfddeceltime - float
|
||||
vfddisabled - boolean
|
||||
vfdfault - boolean
|
||||
vfdfault_commerror - boolean
|
||||
vfdfaultcode - integer
|
||||
vfdfaultdrivefault - boolean
|
||||
vfdmaxfreq - float
|
||||
vfdmotorpoles - integer
|
||||
vfdnameplatefla - float
|
||||
vfdnameplatehp - float
|
||||
vfdnameplatehz - float
|
||||
vfdnameplateolcurrent - float
|
||||
vfdnameplaterpm - float
|
||||
vfdnameplatevolts - float
|
||||
vfdoutputcurrent - float
|
||||
vfdoutputvoltage - float
|
||||
vfdready - boolean
|
||||
vfdspeedfdbk - float
|
||||
vfdspeedref - float
|
||||
vfdstopmode - integer
|
||||
vfdtorqueperfmode - integer
|
||||
|
||||
84
POCloud_Driver/programmedchannels.txt
Normal file
84
POCloud_Driver/programmedchannels.txt
Normal file
@@ -0,0 +1,84 @@
|
||||
alarmmode - boolean
|
||||
alarmpressure - boolean
|
||||
alarmremote - boolean
|
||||
alarmtemperature - boolean
|
||||
alarmtubingpressure - boolean
|
||||
alarmvfd - boolean
|
||||
automode - boolean
|
||||
dhdischargepressure - integer
|
||||
dhdischargetemperature - integer
|
||||
dhdownholestatusint - integer
|
||||
dhfluidlevel - float
|
||||
dhintakepressure - float
|
||||
dhintaketemperature - float
|
||||
dhmaxintakepressureforever - integer
|
||||
dhmaxintakepressurestartup - integer
|
||||
dhmaxintaketemperature_forever - float
|
||||
dhmaxintaketemperaturestartup - float
|
||||
dhnumchannels - integer
|
||||
dhpressureshutdownenabled - boolean
|
||||
dhpressureshutdownlimit - float
|
||||
dhpressurestartup - float
|
||||
dhpressurestartupenabled - boolean
|
||||
dhpsirating - integer
|
||||
dhtempshutdown - float
|
||||
dhtempshutdownenabled - boolean
|
||||
dhtempstartupenabled - boolean
|
||||
dhtempstartuplimit - float
|
||||
dhtooltype - integer
|
||||
dhtoolvoltage - integer
|
||||
dhwindingtemperature - integer
|
||||
downholetoolenabled - boolean
|
||||
handmode - boolean
|
||||
modetest - boolean
|
||||
offmode - boolean
|
||||
remoteshutdowndisabled - boolean
|
||||
rpmode - boolean
|
||||
rppressure - boolean
|
||||
rpremote - boolean
|
||||
rptemperature - boolean
|
||||
rptubingpressure - boolean
|
||||
rpvfd - boolean
|
||||
runpermissive - boolean
|
||||
spmode - boolean
|
||||
sppressure - boolean
|
||||
spremote - boolean
|
||||
sptemperature - boolean
|
||||
spvfd - boolean
|
||||
startpermissive - boolean
|
||||
tubingpressurealarmdelay - integer
|
||||
tubingpressurealarmstartupdelay - integer
|
||||
tubingpressureeumax - float
|
||||
tubingpressureeumin - float
|
||||
tubingpressurehi - boolean
|
||||
tubingpressurehisp - float
|
||||
tubingpressurelo - boolean
|
||||
tubingpressurelosp - float
|
||||
tubingpressureok - boolean
|
||||
tubingpressuretransducerenabled - boolean
|
||||
vfdminfreq - float
|
||||
vfdacceltime - float
|
||||
vfdactive - boolean
|
||||
vfdatspeedref - boolean
|
||||
vfddcbusvoltage - float
|
||||
vfddeceltime - float
|
||||
vfddisabled - boolean
|
||||
vfdfault - boolean
|
||||
vfdfaultcommerror - boolean
|
||||
vfdfaultcode - integer
|
||||
vfdfaultdrivefault - boolean
|
||||
vfdmaxfreq - float
|
||||
vfdmotorpoles - integer
|
||||
vfdnameplatefla - float
|
||||
vfdnameplatehp - float
|
||||
vfdnameplatehz - float
|
||||
vfdnameplateolcurrent - float
|
||||
vfdnameplaterpm - float
|
||||
vfdnameplatevolts - float
|
||||
vfdoutputcurrent - float
|
||||
vfdoutputvoltage - float
|
||||
vfdready - boolean
|
||||
vfdspeedfdbk - float
|
||||
vfdspeedref - float
|
||||
vfdstopmode - integer
|
||||
vfdtorqueperfmode - integer
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
import pickle
|
||||
|
||||
channels = {
|
||||
'vfd_nameplatehz':{
|
||||
'vfdnameplatehz':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -9,7 +9,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'mode_test':{
|
||||
'modetest':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -17,7 +17,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'alarm_temperature':{
|
||||
'alarmtemperature':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -25,7 +25,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_pressure_shutdown_limit':{
|
||||
'dhpressureshutdownlimit':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -33,7 +33,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_temp_startup_limit':{
|
||||
'dhtempstartuplimit':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -41,7 +41,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_fault_code':{
|
||||
'vfdfaultcode':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -49,7 +49,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_dischargetemperature':{
|
||||
'dhdischargetemperature':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -57,7 +57,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_maxintakepressure_forever':{
|
||||
'dhmaxintakepressureforever':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -65,7 +65,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'alarm_pressure':{
|
||||
'alarmpressure':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -73,7 +73,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_temp_startup_enabled':{
|
||||
'dhtempstartupenabled':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -81,7 +81,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_torqueperfmode':{
|
||||
'vfdtorqueperfmode':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -89,7 +89,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_windingtemperature':{
|
||||
'dhwindingtemperature':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -97,7 +97,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_motorpoles':{
|
||||
'vfdmotorpoles':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -105,7 +105,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_nameplatehp':{
|
||||
'vfdnameplatehp':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -113,7 +113,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_active':{
|
||||
'vfdactive':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -121,7 +121,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'rp_tubingpressure':{
|
||||
'rptubingpressure':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -129,7 +129,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_speedfdbk':{
|
||||
'vfdspeedfdbk':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -137,7 +137,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'rp_mode':{
|
||||
'rpmode':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -145,7 +145,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_maxintaketemperature_forever':{
|
||||
'dhmaxintaketemperature_forever':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -153,7 +153,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'sp_mode':{
|
||||
'spmode':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -161,7 +161,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_acceltime':{
|
||||
'vfdacceltime':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -169,7 +169,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_alarm_delay':{
|
||||
'tubingpressurealarmdelay':{
|
||||
'data_type':'UDINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -177,7 +177,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_tooltype':{
|
||||
'dhtooltype':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -185,7 +185,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'sp_pressure':{
|
||||
'sppressure':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -193,15 +193,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'rp_trip':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
'tag':'RP_Trip',
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'alarm_mode':{
|
||||
'alarmmode':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -209,15 +201,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'stop_command':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
'tag':'Stop_Command',
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_eu_min':{
|
||||
'tubingpressureeumin':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -225,7 +209,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_stopmode':{
|
||||
'vfdstopmode':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -233,7 +217,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_ready':{
|
||||
'vfdready':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -241,7 +225,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'off_mode':{
|
||||
'offmode':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -249,7 +233,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'alarm_tubingpressure':{
|
||||
'alarmtubingpressure':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -257,7 +241,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_disabled':{
|
||||
'vfddisabled':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -265,7 +249,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_eu_max':{
|
||||
'tubingpressureeumax':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -273,7 +257,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_speedref':{
|
||||
'vfdspeedref':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -281,7 +265,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_maxintaketemperature_startup':{
|
||||
'dhmaxintaketemperaturestartup':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -289,7 +273,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'sp_temperature':{
|
||||
'sptemperature':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -297,7 +281,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_pressure_startup':{
|
||||
'dhpressurestartup':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -305,7 +289,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'hand_mode':{
|
||||
'handmode':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -313,7 +297,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_lo':{
|
||||
'tubingpressurelo':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -321,7 +305,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'run_permissive':{
|
||||
'runpermissive':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -329,7 +313,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_maxfreq':{
|
||||
'vfdmaxfreq':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -337,7 +321,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_temp_shutdown_enabled':{
|
||||
'dhtempshutdownenabled':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -345,15 +329,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'sp_voltage':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
'tag':'SP_Voltage',
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_pressure_shutdown_enabled':{
|
||||
'dhpressureshutdownenabled':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -361,15 +337,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'sp_trip':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
'tag':'SP_Trip',
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_intakepressure':{
|
||||
'dhintakepressure':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -377,7 +345,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'rp_pressure':{
|
||||
'rppressure':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -385,7 +353,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'rp_remote':{
|
||||
'rpremote':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -393,7 +361,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_nameplatefla':{
|
||||
'vfdnameplatefla':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -401,7 +369,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_fault_commerror':{
|
||||
'vfdfaultcommerror':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -409,7 +377,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_fault':{
|
||||
'vfdfault':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -417,7 +385,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_psirating':{
|
||||
'dhpsirating':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -425,7 +393,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_atspeedref':{
|
||||
'vfdatspeedref':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -433,7 +401,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_numchannels':{
|
||||
'dhnumchannels':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -441,7 +409,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_dcbusvoltage':{
|
||||
'vfddcbusvoltage':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -449,7 +417,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_transducer_enabled':{
|
||||
'tubingpressuretransducerenabled':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -457,7 +425,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_downholestatus_int':{
|
||||
'dhdownholestatusint':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -465,7 +433,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_toolvoltage':{
|
||||
'dhtoolvoltage':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -473,7 +441,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_alarm_startup_delay':{
|
||||
'tubingpressurealarmstartupdelay':{
|
||||
'data_type':'DINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -481,7 +449,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'alarm_vfd':{
|
||||
'alarmvfd':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -489,7 +457,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'auto_mode':{
|
||||
'automode':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -497,7 +465,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_fluid_level':{
|
||||
'dhfluidlevel':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -505,7 +473,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'alarm_remote':{
|
||||
'alarmremote':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -513,7 +481,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'sp_remote':{
|
||||
'spremote':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -521,7 +489,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'sp_vfd':{
|
||||
'spvfd':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -529,7 +497,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_nameplaterpm':{
|
||||
'vfdnameplaterpm':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -537,7 +505,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_nameplateolcurrent':{
|
||||
'vfdnameplateolcurrent':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -545,7 +513,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'start_permissive':{
|
||||
'startpermissive':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -553,7 +521,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_dischargepressure':{
|
||||
'dhdischargepressure':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -561,7 +529,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_ok':{
|
||||
'tubingpressureok':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -569,7 +537,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'rp_temperature':{
|
||||
'rptemperature':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -577,15 +545,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_cmdfwd':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
'tag':'VFD_CmdFwd',
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_outputcurrent':{
|
||||
'vfdoutputcurrent':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -593,7 +553,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'rp_vfd':{
|
||||
'rpvfd':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -601,7 +561,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_hi_sp':{
|
||||
'tubingpressurehisp':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -609,7 +569,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_outputvoltage':{
|
||||
'vfdoutputvoltage':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -617,7 +577,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'downhole_tool_enabled':{
|
||||
'downholetoolenabled':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -625,7 +585,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_fault_drivefault':{
|
||||
'vfdfaultdrivefault':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -633,7 +593,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_nameplatevolts':{
|
||||
'vfdnameplatevolts':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -641,7 +601,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_intaketemperature':{
|
||||
'dhintaketemperature':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -649,7 +609,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_MinFreq':{
|
||||
'vfdminfreq':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -657,7 +617,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_temp_shutdown':{
|
||||
'dhtempshutdown':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -665,7 +625,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_hi':{
|
||||
'tubingpressurehi':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -673,7 +633,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_deceltime':{
|
||||
'vfddeceltime':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -681,7 +641,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_pressure_startup_enabled':{
|
||||
'dhpressurestartupenabled':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -689,7 +649,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'dh_maxintakepressure_startup':{
|
||||
'dhmaxintakepressurestartup':{
|
||||
'data_type':'UINT',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -697,7 +657,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'tubingpressure_lo_sp':{
|
||||
'tubingpressurelosp':{
|
||||
'data_type':'REAL',
|
||||
'change_amount':0.5,
|
||||
'min_time_between_uploads':360,
|
||||
@@ -705,15 +665,7 @@ channels = {
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'vfd_clearfault':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
'tag':'VFD_ClearFault',
|
||||
'last_time_uploaded':0,
|
||||
'last_value':''
|
||||
},
|
||||
'remote_shutdown_disabled':{
|
||||
'remoteshutdowndisabled':{
|
||||
'data_type':'BOOL',
|
||||
'change_amount':None,
|
||||
'min_time_between_uploads':360,
|
||||
|
||||
@@ -22,22 +22,22 @@ try:
|
||||
except:
|
||||
import simplejson as json
|
||||
|
||||
channels = {}
|
||||
min_upload_time = 30
|
||||
addr = '10.10.10.31'
|
||||
addr = '192.168.1.20'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class start(threading.Thread, deviceBase):
|
||||
channels = {}
|
||||
def updateGPS(self):
|
||||
gps = self.mcu.gps
|
||||
print("GPS found me at {0}".format(gps))
|
||||
self.sendtodb("gps", gps, 0)
|
||||
|
||||
def setupChannels(self):
|
||||
with open('vfd_ipp_channels.p', 'rb') as ch_f:
|
||||
with open('drivers/vfd_ipp_channels.p', 'rb') as ch_f:
|
||||
self.channels = pickle.load(ch_f)
|
||||
print("Channel List\n================")
|
||||
for x in self.channels.keys():
|
||||
@@ -55,7 +55,7 @@ class start(threading.Thread, deviceBase):
|
||||
threading.Thread.start(self)
|
||||
self.sendtodbJSON("device_address", self.device_address, 0)
|
||||
self.setupChannels()
|
||||
self.run()
|
||||
# self.run()
|
||||
|
||||
|
||||
# self.updateGPS()
|
||||
@@ -65,6 +65,7 @@ class start(threading.Thread, deviceBase):
|
||||
self.channels["status"]["last_value"] = ""
|
||||
|
||||
def run(self):
|
||||
print("****************\n*************\nEXECUTING RUN\n********************\n****************")
|
||||
self.runLoopStatus = ""
|
||||
last_OK_state = 0
|
||||
while True:
|
||||
@@ -102,7 +103,7 @@ class start(threading.Thread, deviceBase):
|
||||
if not OK_state == last_OK_state:
|
||||
self.sendtodbJSON("driver_ok", OK_state, 0)
|
||||
last_OK_state = OK_state
|
||||
time.sleep(3)
|
||||
time.sleep(30)
|
||||
except Exception, e:
|
||||
OK_state = 0
|
||||
if not OK_state == last_OK_state:
|
||||
@@ -112,9 +113,9 @@ class start(threading.Thread, deviceBase):
|
||||
print "Error during {0} of run loop: {1}\nWill try again in {2} seconds...".format(runLoopStatus, e, sleep_timer)
|
||||
time.sleep(sleep_timer)
|
||||
else:
|
||||
print("Apparently no channels... length shows {0}".format(len(self.channels)))
|
||||
print("Apparently no self.channels... length shows {0}".format(len(self.channels)))
|
||||
print self.channels
|
||||
setupChannels()
|
||||
self.setupChannels()
|
||||
time.sleep(30)
|
||||
|
||||
def vfdipp_sync(self, name, value):
|
||||
|
||||
Reference in New Issue
Block a user