fixes functions for writing to PLC

This commit is contained in:
Patrick McDonagh
2016-05-26 10:17:19 -05:00
parent c393d346c9
commit bcf19f26fb
6 changed files with 256 additions and 446 deletions

View File

@@ -6,222 +6,31 @@
<br />
<div class="text-center"><h1>CONTROL</h1></div>
<div class="row row-flex">
<div class='col-xs-12 text-center box-me'>
<div class="col-xs-6 col-xs-offset-3">
<h2>Motor Speed Reference (Hz)</h2>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdspeedref"].channelId %>'
data-techName='<%=channels["vfdipp.vfdspeedref"].techName %>'
data-name='<%= channels["vfdipp.vfdspeedref"].name %>'
data-val="<%=channels["vfdipp.vfdspeedref"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdspeedref"].channelId %>"
value="<%=channels["vfdipp.vfdspeedref"].value %>">
</div>
</div>
<div class='col-xs-4 text-center box-me'>
<div class='col-xs-6 text-center box-me'>
<h2>Start Command</h2>
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="startcommand" data-channelId='<%= channels["vfdipp.startcommand"].channelId %>' data-techName='<%=channels["vfdipp.startcommand"].techName %>' data-name='vfdipp.startcommand' id="<%= channels["vfdipp.startcommand"].channelId %>" name="<%= channels["vfdipp.startcommand"].channelId %>">
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="startcommand" data-channelId='<%= channels["ipp.startcommand"].channelId %>' data-techName='<%=channels["ipp.startcommand"].techName %>' data-name='ipp.startcommand' id="<%= channels["ipp.startcommand"].channelId %>" name="<%= channels["ipp.startcommand"].channelId %>">
</div>
<div class='col-xs-4 text-center box-me'>
<div class='col-xs-6 text-center box-me'>
<h2>Stop Command</h2>
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="stopcommand" data-channelId='<%= channels["vfdipp.stopcommand"].channelId %>' data-techName='<%=channels["vfdipp.stopcommand"].techName %>' data-name='vfdipp.stopcommand' id="<%= channels["vfdipp.stopcommand"].channelId %>" name="<%= channels["vfdipp.stopcommand"].channelId %>">
</div>
<div class='col-xs-4 text-center box-me'>
<h2>Clear VFD Fault</h2>
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="vfdclearfault" data-channelId='<%= channels["vfdipp.vfdclearfault"].channelId %>' data-techName='<%=channels["vfdipp.vfdclearfault"].techName %>' data-name='vfdipp.vfdclearfault' id="<%= channels["vfdipp.vfdclearfault"].channelId %>" name="<%= channels["vfdipp.vfdclearfault"].channelId %>">
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="stopcommand" data-channelId='<%= channels["ipp.stopcommand"].channelId %>' data-techName='<%=channels["ipp.stopcommand"].techName %>' data-name='ipp.stopcommand' id="<%= channels["ipp.stopcommand"].channelId %>" name="<%= channels["ipp.stopcommand"].channelId %>">
</div>
</div>
<div class="text-center"><h1>VFD CONFIGURATION</h1></div>
<div class="row row-flex">
<div class="col-md-6 box-me">
<h2>MOTOR NAMEPLATE DATA</h2>
<div class="col-md-12 box-me">
<h2>MOTOR CONFIGURATION</h2>
<table class="table">
<tbody>
<tr>
<td>Motor FLA (A)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdnameplatefla"].channelId %>'
data-techName='<%=channels["vfdipp.vfdnameplatefla"].techName %>'
data-name='<%= channels["vfdipp.vfdnameplatefla"].name %>'
data-val="<%=channels["vfdipp.vfdnameplatefla"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.cfgcflasetting"].channelId %>'
data-techName='<%=channels["ipp.cfgcflasetting"].techName %>'
data-name='<%= channels["ipp.cfgcflasetting"].name %>'
data-val="<%=channels["ipp.cfgcflasetting"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdnameplatefla"].channelId %>"
value="<%=channels["vfdipp.vfdnameplatefla"].value %>">
</td>
</tr>
<tr>
<td>Motor HP (HP)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdnameplatehp"].channelId %>'
data-techName='<%=channels["vfdipp.vfdnameplatehp"].techName %>'
data-name='<%= channels["vfdipp.vfdnameplatehp"].name %>'
data-val="<%=channels["vfdipp.vfdnameplatehp"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdnameplatehp"].channelId %>"
value="<%=channels["vfdipp.vfdnameplatehp"].value %>">
</td>
</tr>
<tr>
<td>Motor RPM (RPM)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdnameplaterpm"].channelId %>'
data-techName='<%=channels["vfdipp.vfdnameplaterpm"].techName %>'
data-name='<%= channels["vfdipp.vfdnameplaterpm"].name %>'
data-val="<%=channels["vfdipp.vfdnameplaterpm"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdnameplaterpm"].channelId %>"
value="<%=channels["vfdipp.vfdnameplaterpm"].value %>">
</td>
</tr>
<tr>
<td>Motor Frequency (Hz)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdnameplatehz"].channelId %>'
data-techName='<%=channels["vfdipp.vfdnameplatehz"].techName %>'
data-name='<%= channels["vfdipp.vfdnameplatehz"].name %>'
data-val="<%=channels["vfdipp.vfdnameplatehz"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdnameplatehz"].channelId %>"
value="<%=channels["vfdipp.vfdnameplatehz"].value %>">
</td>
</tr>
<tr>
<td>Motor Overload Current (A)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdnameplateolcurrent"].channelId %>'
data-techName='<%=channels["vfdipp.vfdnameplateolcurrent"].techName %>'
data-name='<%= channels["vfdipp.vfdnameplateolcurrent"].name %>'
data-val="<%=channels["vfdipp.vfdnameplateolcurrent"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdnameplateolcurrent"].channelId %>"
value="<%=channels["vfdipp.vfdnameplateolcurrent"].value %>">
</td>
</tr>
<tr>
<td>Motor Volts (V)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdnameplatevolts"].channelId %>'
data-techName='<%=channels["vfdipp.vfdnameplatevolts"].techName %>'
data-name='<%= channels["vfdipp.vfdnameplatevolts"].name %>'
data-val="<%=channels["vfdipp.vfdnameplatevolts"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdnameplatevolts"].channelId %>"
value="<%=channels["vfdipp.vfdnameplatevolts"].value %>">
</td>
</tr>
<tr>
<td>Motor Poles</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdmotorpoles"].channelId %>'
data-techName='<%=channels["vfdipp.vfdmotorpoles"].techName %>'
data-name='<%= channels["vfdipp.vfdmotorpoles"].name %>'
data-val="<%=channels["vfdipp.vfdmotorpoles"].value %>"
type="number"
id="<%= channels["vfdipp.vfdmotorpoles"].channelId %>"
value="<%=channels["vfdipp.vfdmotorpoles"].value %>">
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6 box-me">
<h2>VFD SETTINGS</h2>
<table class="table">
<tbody>
<tr>
<td>Min. Frequency (Hz)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdminfreq"].channelId %>'
data-techName='<%=channels["vfdipp.vfdminfreq"].techName %>'
data-name='<%= channels["vfdipp.vfdminfreq"].name %>'
data-val="<%=channels["vfdipp.vfdminfreq"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdminfreq"].channelId %>"
value="<%=channels["vfdipp.vfdminfreq"].value %>">
</td>
</tr>
<tr>
<td>Max. Frequency (Hz)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdmaxfreq"].channelId %>'
data-valueupdate="vfdmaxfreq"
data-techName='<%=channels["vfdipp.vfdmaxfreq"].techName %>'
data-name='<%= channels["vfdipp.vfdmaxfreq"].name %>'
data-val="<%=channels["vfdipp.vfdmaxfreq"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdmaxfreq"].channelId %>"
value="<%=channels["vfdipp.vfdmaxfreq"].value %>">
</td>
</tr>
<tr>
<td>Accel. Time (sec)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfdacceltime"].channelId %>'
data-techName='<%=channels["vfdipp.vfdacceltime"].techName %>'
data-name='<%= channels["vfdipp.vfdacceltime"].name %>'
data-val="<%=channels["vfdipp.vfdacceltime"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfdacceltime"].channelId %>"
value="<%=channels["vfdipp.vfdacceltime"].value %>">
</td>
</tr>
<tr>
<td>Decel. Time (sec)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.vfddeceltime"].channelId %>'
data-techName='<%=channels["vfdipp.vfddeceltime"].techName %>'
data-name='<%= channels["vfdipp.vfddeceltime"].name %>'
data-val="<%=channels["vfdipp.vfddeceltime"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.vfddeceltime"].channelId %>"
value="<%=channels["vfdipp.vfddeceltime"].value %>">
</td>
</tr>
<tr>
<td>Stop Mode</td>
<td>
<% if (channels["vfdipp.vfdstopmode"].value == 0) { %>
<span class="label label-success">Coast</span>
<% } else if (channels["vfdipp.vfdstopmode"].value == 1) { %>
<span class="label label-danger">Ramp</span>
<% } else if (channels["vfdipp.vfdstopmode"].value == 2) { %>
<span class="label label-danger">Ramp to Hold</span>
<% } else if (channels["vfdipp.vfdstopmode"].value == 3) { %>
<span class="label label-danger">DC Brake</span>
<% } else if (channels["vfdipp.vfdstopmode"].value == 4) { %>
<span class="label label-danger">DCBrkAutoOff</span>
<% } else if (channels["vfdipp.vfdstopmode"].value == 5) { %>
<span class="label label-danger">Current Limit</span>
<% } else if (channels["vfdipp.vfdstopmode"].value == 6) { %>
<span class="label label-danger">Fast Brake</span>
<% } %>
</td>
</tr>
<tr>
<td>Torque Perf. Mode</td>
<td>
<% if (channels["vfdipp.vfdtorqueperfmode"].value == 0){ %>
<span class="label label-danger">V/Hz</span>
<% } else if (channels["vfdipp.vfdtorqueperfmode"].value == 1){ %>
<span class="label label-success">SVC</span>
<% } else if (channels["vfdipp.vfdtorqueperfmode"].value == 2){ %>
<span class="label label-danger">Economize</span>
<% } else if (channels["vfdipp.vfdtorqueperfmode"].value == 3){ %>
<span class="label label-danger">Vector</span>
<% } %>
id="<%= channels["ipp.cfgcflasetting"].channelId %>"
value="<%=channels["ipp.cfgcflasetting"].value %>">
</td>
</tr>
</tbody>
@@ -233,7 +42,7 @@
<div class="row row-flex">
<div class='col-xs-12 text-center box-me'>
<h2>Downhole Sensor Enabled</h2>
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="downholetoolenabled" data-channelId='<%= channels["vfdipp.downholetoolenabled"].channelId %>' data-techName='<%=channels["vfdipp.downholetoolenabled"].techName %>' data-name='vfdipp.downholetoolenabled' id="<%= channels["vfdipp.downholetoolenabled"].channelId %>" name="<%= channels["vfdipp.downholetoolenabled"].channelId %>">
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="downholetoolenabled" data-channelId='<%= channels["ipp.downholetoolenabled"].channelId %>' data-techName='<%=channels["ipp.downholetoolenabled"].techName %>' data-name='ipp.downholetoolenabled' id="<%= channels["ipp.downholetoolenabled"].channelId %>" name="<%= channels["ipp.downholetoolenabled"].channelId %>">
</div>
<div class='col-xs-6 text-center box-me'>
<h2>Pressure Trip</h2>
@@ -243,40 +52,40 @@
<tr>
<td>Pressure Shutdown Enabled</td>
<td>
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="dhpressureshutdownenabled" data-channelId='<%= channels["vfdipp.dhpressureshutdownenabled"].channelId %>' data-techName='<%=channels["vfdipp.dhpressureshutdownenabled"].techName %>' data-name='vfdipp.dhpressureshutdownenabled' id="<%= channels["vfdipp.dhpressureshutdownenabled"].channelId %>" name="<%= channels["vfdipp.dhpressureshutdownenabled"].channelId %>">
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="pressureshutdownenabled" data-channelId='<%= channels["ipp.pressureshutdownenabled"].channelId %>' data-techName='<%=channels["ipp.pressureshutdownenabled"].techName %>' data-name='ipp.pressureshutdownenabled' id="<%= channels["ipp.pressureshutdownenabled"].channelId %>" name="<%= channels["ipp.pressureshutdownenabled"].channelId %>">
</td>
</tr>
<tr>
<td>Pressure Shutdown Limit (PSI)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.dhpressureshutdownlimit"].channelId %>'
data-techName='<%=channels["vfdipp.dhpressureshutdownlimit"].techName %>'
data-name='<%= channels["vfdipp.dhpressureshutdownlimit"].name %>'
data-val="<%=channels["vfdipp.dhpressureshutdownlimit"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.pressureshutdown"].channelId %>'
data-techName='<%=channels["ipp.pressureshutdown"].techName %>'
data-name='<%= channels["ipp.pressureshutdown"].name %>'
data-val="<%=channels["ipp.pressureshutdown"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.dhpressureshutdownlimit"].channelId %>"
value="<%=channels["vfdipp.dhpressureshutdownlimit"].value %>">
id="<%= channels["ipp.pressureshutdown"].channelId %>"
value="<%=channels["ipp.pressureshutdown"].value %>">
</td>
</tr>
<tr>
<td>Pressure Restart Enabled</td>
<td>
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="dhpressurestartupenabled" data-channelId='<%= channels["vfdipp.dhpressurestartupenabled"].channelId %>' data-techName='<%=channels["vfdipp.dhpressurestartupenabled"].techName %>' data-name='vfdipp.dhpressurestartupenabled' id="<%= channels["vfdipp.dhpressurestartupenabled"].channelId %>" name="<%= channels["vfdipp.dhpressurestartupenabled"].channelId %>">
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="pressurestartupenabled" data-channelId='<%= channels["ipp.pressurestartupenabled"].channelId %>' data-techName='<%=channels["ipp.pressurestartupenabled"].techName %>' data-name='ipp.pressurestartupenabled' id="<%= channels["ipp.pressurestartupenabled"].channelId %>" name="<%= channels["ipp.pressurestartupenabled"].channelId %>">
</td>
</tr>
<tr>
<td>Pressure Startup Limit (PSI)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.dhpressurestartup"].channelId %>'
data-techName='<%=channels["vfdipp.dhpressurestartup"].techName %>'
data-name='<%= channels["vfdipp.dhpressurestartup"].name %>'
data-val="<%=channels["vfdipp.dhpressurestartup"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.pressurestartup"].channelId %>'
data-techName='<%=channels["ipp.pressurestartup"].techName %>'
data-name='<%= channels["ipp.pressurestartup"].name %>'
data-val="<%=channels["ipp.pressurestartup"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.dhpressurestartup"].channelId %>"
value="<%=channels["vfdipp.dhpressurestartup"].value %>">
id="<%= channels["ipp.pressurestartup"].channelId %>"
value="<%=channels["ipp.pressurestartup"].value %>">
</td>
</tr>
@@ -293,40 +102,40 @@
<tr>
<td>Temp. Shutdown Enabled</td>
<td>
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="dhtempshutdownenabled" data-channelId='<%= channels["vfdipp.dhtempshutdownenabled"].channelId %>' data-techName='<%=channels["vfdipp.dhtempshutdownenabled"].techName %>' data-name='vfdipp.dhtempshutdownenabled' id="<%= channels["vfdipp.dhtempshutdownenabled"].channelId %>" name="<%= channels["vfdipp.dhtempshutdownenabled"].channelId %>">
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="tempshutdownenabled" data-channelId='<%= channels["ipp.tempshutdownenabled"].channelId %>' data-techName='<%=channels["ipp.tempshutdownenabled"].techName %>' data-name='ipp.tempshutdownenabled' id="<%= channels["ipp.tempshutdownenabled"].channelId %>" name="<%= channels["ipp.tempshutdownenabled"].channelId %>">
</td>
</tr>
<tr>
<td>Temp. Shutdown Limit (&deg;F)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.dhtempshutdown"].channelId %>'
data-techName='<%=channels["vfdipp.dhtempshutdown"].techName %>'
data-name='<%= channels["vfdipp.dhtempshutdown"].name %>'
data-val="<%=channels["vfdipp.dhtempshutdown"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.tempshutdown"].channelId %>'
data-techName='<%=channels["ipp.tempshutdown"].techName %>'
data-name='<%= channels["ipp.tempshutdown"].name %>'
data-val="<%=channels["ipp.tempshutdown"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.dhtempshutdown"].channelId %>"
value="<%=channels["vfdipp.dhtempshutdown"].value %>">
id="<%= channels["ipp.tempshutdown"].channelId %>"
value="<%=channels["ipp.tempshutdown"].value %>">
</td>
</tr>
<tr>
<td>Temp. Restart Enabled</td>
<td>
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="dhtempstartupenabled" data-channelId='<%= channels["vfdipp.dhtempstartupenabled"].channelId %>' data-techName='<%=channels["vfdipp.dhtempstartupenabled"].techName %>' data-name='vfdipp.dhtempstartupenabled' id="<%= channels["vfdipp.dhtempstartupenabled"].channelId %>" name="<%= channels["vfdipp.dhtempstartupenabled"].channelId %>">
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="tempstartupenabled" data-channelId='<%= channels["ipp.tempstartupenabled"].channelId %>' data-techName='<%=channels["ipp.tempstartupenabled"].techName %>' data-name='ipp.tempstartupenabled' id="<%= channels["ipp.tempstartupenabled"].channelId %>" name="<%= channels["ipp.tempstartupenabled"].channelId %>">
</td>
</tr>
<tr>
<td>Temp. Startup Limit (&deg;F)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.dhtempstartuplimit"].channelId %>'
data-techName='<%=channels["vfdipp.dhtempstartuplimit"].techName %>'
data-name='<%= channels["vfdipp.dhtempstartuplimit"].name %>'
data-val="<%=channels["vfdipp.dhtempstartuplimit"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.tempstartup"].channelId %>'
data-techName='<%=channels["ipp.tempstartup"].techName %>'
data-name='<%= channels["ipp.tempstartup"].name %>'
data-val="<%=channels["ipp.tempstartup"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.dhtempstartuplimit"].channelId %>"
value="<%=channels["vfdipp.dhtempstartuplimit"].value %>">
id="<%= channels["ipp.tempstartup"].channelId %>"
value="<%=channels["ipp.tempstartup"].value %>">
</td>
</tr>
@@ -339,7 +148,7 @@
<div class="row row-flex">
<div class='col-xs-12 text-center box-me'>
<h2>Tubing Pressure Transducer Enabled</h2>
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="tubingpressuretransducerenabled" data-channelId='<%= channels["vfdipp.tubingpressuretransducerenabled"].channelId %>' data-techName='<%=channels["vfdipp.tubingpressuretransducerenabled"].techName %>' data-name='vfdipp.tubingpressuretransducerenabled' id="<%= channels["vfdipp.tubingpressuretransducerenabled"].channelId %>" name="<%= channels["vfdipp.tubingpressuretransducerenabled"].channelId %>">
<input type="toggle" data-checkedValue="1" data-uncheckedValue="0" data-valueupdate="pressuretransducerenabled" data-channelId='<%= channels["ipp.pressuretransducerenabled"].channelId %>' data-techName='<%=channels["ipp.pressuretransducerenabled"].techName %>' data-name='ipp.pressuretransducerenabled' id="<%= channels["ipp.pressuretransducerenabled"].channelId %>" name="<%= channels["ipp.pressuretransducerenabled"].channelId %>">
</div>
<div class='col-xs-6 text-center box-me'>
<h2>Scaling Values</h2>
@@ -349,26 +158,26 @@
<tr>
<td>Min Value (PSI)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.tubingpressureeumin"].channelId %>'
data-techName='<%=channels["vfdipp.tubingpressureeumin"].techName %>'
data-name='<%= channels["vfdipp.tubingpressureeumin"].name %>'
data-val="<%=channels["vfdipp.tubingpressureeumin"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.pressureeumin"].channelId %>'
data-techName='<%=channels["ipp.pressureeumin"].techName %>'
data-name='<%= channels["ipp.pressureeumin"].name %>'
data-val="<%=channels["ipp.pressureeumin"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.tubingpressureeumin"].channelId %>"
value="<%=channels["vfdipp.tubingpressureeumin"].value %>">
id="<%= channels["ipp.pressureeumin"].channelId %>"
value="<%=channels["ipp.pressureeumin"].value %>">
</td>
</tr>
<tr>
<td>Max Value (PSI)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.tubingpressureeumax"].channelId %>'
data-techName='<%=channels["vfdipp.tubingpressureeumax"].techName %>'
data-name='<%= channels["vfdipp.tubingpressureeumax"].name %>'
data-val="<%=channels["vfdipp.tubingpressureeumax"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.pressureeumax"].channelId %>'
data-techName='<%=channels["ipp.pressureeumax"].techName %>'
data-name='<%= channels["ipp.pressureeumax"].name %>'
data-val="<%=channels["ipp.pressureeumax"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.tubingpressureeumax"].channelId %>"
value="<%=channels["vfdipp.tubingpressureeumax"].value %>">
id="<%= channels["ipp.pressureeumax"].channelId %>"
value="<%=channels["ipp.pressureeumax"].value %>">
</td>
</tr>
</tbody>
@@ -384,52 +193,52 @@
<tr>
<td>Low Limit (PSI)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.tubingpressurelosp"].channelId %>'
data-techName='<%=channels["vfdipp.tubingpressurelosp"].techName %>'
data-name='<%= channels["vfdipp.tubingpressurelosp"].name %>'
data-val="<%=channels["vfdipp.tubingpressurelosp"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.pressurelosp"].channelId %>'
data-techName='<%=channels["ipp.pressurelosp"].techName %>'
data-name='<%= channels["ipp.pressurelosp"].name %>'
data-val="<%=channels["ipp.pressurelosp"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.tubingpressurelosp"].channelId %>"
value="<%=channels["vfdipp.tubingpressurelosp"].value %>">
id="<%= channels["ipp.pressurelosp"].channelId %>"
value="<%=channels["ipp.pressurelosp"].value %>">
</td>
</tr>
<tr>
<td>High Limit (PSI)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.tubingpressurehisp"].channelId %>'
data-techName='<%=channels["vfdipp.tubingpressurehisp"].techName %>'
data-name='<%= channels["vfdipp.tubingpressurehisp"].name %>'
data-val="<%=channels["vfdipp.tubingpressurehisp"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.pressurehisp"].channelId %>'
data-techName='<%=channels["ipp.pressurehisp"].techName %>'
data-name='<%= channels["ipp.pressurehisp"].name %>'
data-val="<%=channels["ipp.pressurehisp"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.tubingpressurehisp"].channelId %>"
value="<%=channels["vfdipp.tubingpressurehisp"].value %>">
id="<%= channels["ipp.pressurehisp"].channelId %>"
value="<%=channels["ipp.pressurehisp"].value %>">
</td>
</tr>
<tr>
<td>Startup Delay (sec)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.tubingpressurealarmstartupdelay"].channelId %>'
data-techName='<%=channels["vfdipp.tubingpressurealarmstartupdelay"].techName %>'
data-name='<%= channels["vfdipp.tubingpressurealarmstartupdelay"].name %>'
data-val="<%=channels["vfdipp.tubingpressurealarmstartupdelay"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.pressurealarmstartupdelay"].channelId %>'
data-techName='<%=channels["ipp.pressurealarmstartupdelay"].techName %>'
data-name='<%= channels["ipp.pressurealarmstartupdelay"].name %>'
data-val="<%=channels["ipp.pressurealarmstartupdelay"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.tubingpressurealarmstartupdelay"].channelId %>"
value="<%=channels["vfdipp.tubingpressurealarmstartupdelay"].value %>">
id="<%= channels["ipp.pressurealarmstartupdelay"].channelId %>"
value="<%=channels["ipp.pressurealarmstartupdelay"].value %>">
</td>
</tr>
<tr>
<td>Trip Delay (sec)</td>
<td>
<input class="form-control" data-channelId='<%= channels["vfdipp.tubingpressurealarmdelay"].channelId %>'
data-techName='<%=channels["vfdipp.tubingpressurealarmdelay"].techName %>'
data-name='<%= channels["vfdipp.tubingpressurealarmdelay"].name %>'
data-val="<%=channels["vfdipp.tubingpressurealarmdelay"].value %>"
<input class="form-control" data-channelId='<%= channels["ipp.pressurealarmdelay"].channelId %>'
data-techName='<%=channels["ipp.pressurealarmdelay"].techName %>'
data-name='<%= channels["ipp.pressurealarmdelay"].name %>'
data-val="<%=channels["ipp.pressurealarmdelay"].value %>"
type="number" step="any"
id="<%= channels["vfdipp.tubingpressurealarmdelay"].channelId %>"
value="<%=channels["vfdipp.tubingpressurealarmdelay"].value %>">
id="<%= channels["ipp.pressurealarmdelay"].channelId %>"
value="<%=channels["ipp.pressurealarmdelay"].value %>">
</td>
</tr>

File diff suppressed because one or more lines are too long

View File

@@ -53,9 +53,9 @@ class start(threading.Thread, deviceBase):
try:
for i in self.channels:
runLoopStatus = i
print("reading {0}".format(i))
# print("reading {0}".format(i))
valData = u800.readMicroTag(self.device_address, self.channels[i]['tag'])
print(valData)
# print(valData)
if valData:
nowVal = round(valData[0], 4)
ch = self.channels[i]
@@ -116,494 +116,494 @@ class start(threading.Thread, deviceBase):
# ======== AUTOMATICALLY GENERATED TAG WRITE FUNCTIONS BELOW HERE ===========
def vfdipp_cfgCFLASetting(self, name, value):
def ipp_cfgcflasetting(self, name, value):
print('trying to set cfg_C_FLASetting to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_C_FLASetting', float(value))
def vfdipp_cfgCTripEnableControl(self, name, value):
print('trying to set cfg_C_TripEnableControl to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_C_TripEnableControl', int(value))
def vfdipp_cfgCWarningEnableControl(self, name, value):
print('trying to set cfg_C_WarningEnableControl to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_C_WarningEnableControl', int(value))
def vfdipp_cfgClearTripCountAfter(self, name, value):
def ipp_cfgcleartripcountafter(self, name, value):
print('trying to set cfg_ClearTripCountAfter to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_ClearTripCountAfter', int(value))
def vfdipp_cfgGFGroundFaultInhibitTime(self, name, value):
def ipp_cfgctripenablecontrol(self, name, value):
print('trying to set cfg_C_TripEnableControl to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_C_TripEnableControl', int(value))
def ipp_cfgcwarningenablecontrol(self, name, value):
print('trying to set cfg_C_WarningEnableControl to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_C_WarningEnableControl', int(value))
def ipp_cfggfgroundfaultinhibittime(self, name, value):
print('trying to set cfg_GF_GroundFaultInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_GF_GroundFaultInhibitTime', int(value))
def vfdipp_cfgGFGroundFaultTripDelay(self, name, value):
def ipp_cfggfgroundfaulttripdelay(self, name, value):
print('trying to set cfg_GF_GroundFaultTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_GF_GroundFaultTripDelay', float(value))
def vfdipp_cfgGFGroundFaultTripLevel(self, name, value):
def ipp_cfggfgroundfaulttriplevel(self, name, value):
print('trying to set cfg_GF_GroundFaultTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_GF_GroundFaultTripLevel', float(value))
def vfdipp_cfgGFGroundFaultWarningDelay(self, name, value):
def ipp_cfggfgroundfaultwarningdelay(self, name, value):
print('trying to set cfg_GF_GroundFaultWarningDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_GF_GroundFaultWarningDelay', float(value))
def vfdipp_cfgGFGroundFaultWarningLevel(self, name, value):
def ipp_cfggfgroundfaultwarninglevel(self, name, value):
print('trying to set cfg_GF_GroundFaultWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_GF_GroundFaultWarningLevel', float(value))
def vfdipp_cfgICTPrimary(self, name, value):
def ipp_cfgictprimary(self, name, value):
print('trying to set cfg_I_CTPrimary to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_CTPrimary', int(value))
def vfdipp_cfgICTSecondary(self, name, value):
def ipp_cfgictsecondary(self, name, value):
print('trying to set cfg_I_CTSecondary to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_CTSecondary', int(value))
def vfdipp_cfgICurrentImbalanceInhibitTime(self, name, value):
def ipp_cfgicurrentimbalanceinhibittim(self, name, value):
print('trying to set cfg_I_CurrentImbalanceInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_CurrentImbalanceInhibitTime', int(value))
def vfdipp_cfgICurrentImbalanceTripDelay(self, name, value):
def ipp_cfgicurrentimbalancetripdelay(self, name, value):
print('trying to set cfg_I_CurrentImbalanceTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_CurrentImbalanceTripDelay', int(value))
def vfdipp_cfgICurrentImbalanceTripLevel(self, name, value):
def ipp_cfgicurrentimbalancetriplevel(self, name, value):
print('trying to set cfg_I_CurrentImbalanceTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_CurrentImbalanceTripLevel', int(value))
def vfdipp_cfgICurrentImbalanceWarningLevel(self, name, value):
def ipp_cfgicurrentimbalancewarninglev(self, name, value):
print('trying to set cfg_I_CurrentImbalanceWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_CurrentImbalanceWarningLevel', int(value))
def vfdipp_cfgIJamInhibitTime(self, name, value):
def ipp_cfgijaminhibittime(self, name, value):
print('trying to set cfg_I_JamInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_JamInhibitTime', int(value))
def vfdipp_cfgIJamTripDelay(self, name, value):
def ipp_cfgijamtripdelay(self, name, value):
print('trying to set cfg_I_JamTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_JamTripDelay', int(value))
def vfdipp_cfgIJamWarningLevel(self, name, value):
def ipp_cfgijamwarninglevel(self, name, value):
print('trying to set cfg_I_JamWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_JamWarningLevel', int(value))
def vfdipp_cfgILineLossInhibitTime(self, name, value):
def ipp_cfgilinelossinhibittime(self, name, value):
print('trying to set cfg_I_LineLossInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_LineLossInhibitTime', int(value))
def vfdipp_cfgILineLossTripDelay(self, name, value):
def ipp_cfgilinelosstripdelay(self, name, value):
print('trying to set cfg_I_LineLossTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_LineLossTripDelay', float(value))
def vfdipp_cfgIOvercurrentInhibitTime(self, name, value):
def ipp_cfgiovercurrentinhibittime(self, name, value):
print('trying to set cfg_I_OvercurrentInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_OvercurrentInhibitTime', int(value))
def vfdipp_cfgIOvercurrentTripDelay(self, name, value):
def ipp_cfgiovercurrenttripdelay(self, name, value):
print('trying to set cfg_I_OvercurrentTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_OvercurrentTripDelay', float(value))
def vfdipp_cfgIOvercurrentTripLevel(self, name, value):
def ipp_cfgiovercurrenttriplevel(self, name, value):
print('trying to set cfg_I_OvercurrentTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_OvercurrentTripLevel', int(value))
def vfdipp_cfgIOvercurrentWarningLevel(self, name, value):
def ipp_cfgiovercurrentwarninglevel(self, name, value):
print('trying to set cfg_I_OvercurrentWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_OvercurrentWarningLevel', int(value))
def vfdipp_cfgIStallEnabledTime(self, name, value):
def ipp_cfgistallenabledtime(self, name, value):
print('trying to set cfg_I_StallEnabledTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_StallEnabledTime', int(value))
def vfdipp_cfgIStallTripLevel(self, name, value):
def ipp_cfgistalltriplevel(self, name, value):
print('trying to set cfg_I_StallTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_StallTripLevel', int(value))
def vfdipp_cfgIUndercurrentInhibitTime(self, name, value):
def ipp_cfgiundercurrentinhibittime(self, name, value):
print('trying to set cfg_I_UndercurrentInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_UndercurrentInhibitTime', int(value))
def vfdipp_cfgIUndercurrentTripDelay(self, name, value):
def ipp_cfgiundercurrenttripdelay(self, name, value):
print('trying to set cfg_I_UndercurrentTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_UndercurrentTripDelay', float(value))
def vfdipp_cfgIUndercurrentTripLevel(self, name, value):
def ipp_cfgiundercurrenttriplevel(self, name, value):
print('trying to set cfg_I_UndercurrentTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_UndercurrentTripLevel', int(value))
def vfdipp_cfgIUndercurrentWarningLevel(self, name, value):
def ipp_cfgiundercurrentwarninglevel(self, name, value):
print('trying to set cfg_I_UndercurrentWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_UndercurrentWarningLevel', int(value))
def vfdipp_cfgIUnderloadInhibitTime(self, name, value):
def ipp_cfgiunderloadinhibittime(self, name, value):
print('trying to set cfg_I_UnderloadInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_UnderloadInhibitTime', int(value))
def vfdipp_cfgIUnderloadTripDelay(self, name, value):
def ipp_cfgiunderloadtripdelay(self, name, value):
print('trying to set cfg_I_UnderloadTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_UnderloadTripDelay', float(value))
def vfdipp_cfgIUnderloadTripLevel(self, name, value):
def ipp_cfgiunderloadtriplevel(self, name, value):
print('trying to set cfg_I_UnderloadTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_UnderloadTripLevel', int(value))
def vfdipp_cfgIUnderloadWarningLevel(self, name, value):
def ipp_cfgiunderloadwarninglevel(self, name, value):
print('trying to set cfg_I_UnderloadWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_I_UnderloadWarningLevel', int(value))
def vfdipp_cfgOverloadTripCountLimit(self, name, value):
def ipp_cfgoverloadtripcountlimit(self, name, value):
print('trying to set cfg_OverloadTripCountLimit to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_OverloadTripCountLimit', int(value))
def vfdipp_cfgPLPhaseLossInhibitTime(self, name, value):
def ipp_cfgplphaselossinhibittime(self, name, value):
print('trying to set cfg_PL_PhaseLossInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_PL_PhaseLossInhibitTime', int(value))
def vfdipp_cfgPLPhaseLossTripDelay(self, name, value):
def ipp_cfgplphaselosstripdelay(self, name, value):
print('trying to set cfg_PL_PhaseLossTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_PL_PhaseLossTripDelay', float(value))
def vfdipp_cfgREAD(self, name, value):
def ipp_cfgread(self, name, value):
print('trying to set cfg_READ to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_READ', int(value))
def vfdipp_cfgSpecificGravity(self, name, value):
def ipp_cfgspecificgravity(self, name, value):
print('trying to set cfg_SpecificGravity to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_SpecificGravity', float(value))
def vfdipp_cfgTCUTripClass(self, name, value):
def ipp_cfgtcutripclass(self, name, value):
print('trying to set cfg_TCU_TripClass to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_TCU_TripClass', int(value))
def vfdipp_cfgTimerModeEnabled(self, name, value):
def ipp_cfgtimermodeenabled(self, name, value):
print('trying to set cfg_TimerModeEnabled to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_TimerModeEnabled', int(value))
def vfdipp_cfgTimerRunTime(self, name, value):
def ipp_cfgtimerruntime(self, name, value):
print('trying to set cfg_TimerRunTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_TimerRunTime', int(value))
def vfdipp_cfgTimerWaitTime(self, name, value):
def ipp_cfgtimerwaittime(self, name, value):
print('trying to set cfg_TimerWaitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_TimerWaitTime', int(value))
def vfdipp_cfgTripCountLimit(self, name, value):
def ipp_cfgtripcountlimit(self, name, value):
print('trying to set cfg_TripCountLimit to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_TripCountLimit', int(value))
def vfdipp_cfgVOverfrequencyInhibitTime(self, name, value):
def ipp_cfgvoverfrequencyinhibittime(self, name, value):
print('trying to set cfg_V_OverfrequencyInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_OverfrequencyInhibitTime', int(value))
def vfdipp_cfgVOverfrequencyTripDelay(self, name, value):
def ipp_cfgvoverfrequencytripdelay(self, name, value):
print('trying to set cfg_V_OverfrequencyTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_OverfrequencyTripDelay', float(value))
def vfdipp_cfgVOverfrequencyTripLevel(self, name, value):
def ipp_cfgvoverfrequencytriplevel(self, name, value):
print('trying to set cfg_V_OverfrequencyTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_OverfrequencyTripLevel', int(value))
def vfdipp_cfgVOverfrequencyWarningLevel(self, name, value):
def ipp_cfgvoverfrequencywarninglevel(self, name, value):
print('trying to set cfg_V_OverfrequencyWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_OverfrequencyWarningLevel', int(value))
def vfdipp_cfgVOvervoltageInhibitTime(self, name, value):
def ipp_cfgvovervoltageinhibittime(self, name, value):
print('trying to set cfg_V_OvervoltageInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_OvervoltageInhibitTime', int(value))
def vfdipp_cfgVOvervoltageTripDelay(self, name, value):
def ipp_cfgvovervoltagetripdelay(self, name, value):
print('trying to set cfg_V_OvervoltageTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_OvervoltageTripDelay', float(value))
def vfdipp_cfgVOvervoltageTripLevel(self, name, value):
def ipp_cfgvovervoltagetriplevel(self, name, value):
print('trying to set cfg_V_OvervoltageTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_OvervoltageTripLevel', float(value))
def vfdipp_cfgVOvervoltageWarningLevel(self, name, value):
def ipp_cfgvovervoltagewarninglevel(self, name, value):
print('trying to set cfg_V_OvervoltageWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_OvervoltageWarningLevel', float(value))
def vfdipp_cfgVPTPrimary(self, name, value):
print('trying to set cfg_V_PTPrimary to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_PTPrimary', int(value))
def vfdipp_cfgVPTSecondary(self, name, value):
print('trying to set cfg_V_PTSecondary to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_PTSecondary', int(value))
def vfdipp_cfgVPhaseRotationInhibitTime(self, name, value):
def ipp_cfgvphaserotationinhibittime(self, name, value):
print('trying to set cfg_V_PhaseRotationInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_PhaseRotationInhibitTime', int(value))
def vfdipp_cfgVPhaseRotationTripType(self, name, value):
def ipp_cfgvphaserotationtriptype(self, name, value):
print('trying to set cfg_V_PhaseRotationTripType to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_PhaseRotationTripType', int(value))
def vfdipp_cfgVUnderfrequencyInhibitTime(self, name, value):
def ipp_cfgvptprimary(self, name, value):
print('trying to set cfg_V_PTPrimary to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_PTPrimary', int(value))
def ipp_cfgvptsecondary(self, name, value):
print('trying to set cfg_V_PTSecondary to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_PTSecondary', int(value))
def ipp_cfgvunderfrequencyinhibittime(self, name, value):
print('trying to set cfg_V_UnderfrequencyInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_UnderfrequencyInhibitTime', int(value))
def vfdipp_cfgVUnderfrequencyTripDelay(self, name, value):
def ipp_cfgvunderfrequencytripdelay(self, name, value):
print('trying to set cfg_V_UnderfrequencyTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_UnderfrequencyTripDelay', float(value))
def vfdipp_cfgVUnderfrequencyTripLevel(self, name, value):
def ipp_cfgvunderfrequencytriplevel(self, name, value):
print('trying to set cfg_V_UnderfrequencyTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_UnderfrequencyTripLevel', int(value))
def vfdipp_cfgVUnderfrequencyWarningLevel(self, name, value):
def ipp_cfgvunderfrequencywarninglevel(self, name, value):
print('trying to set cfg_V_UnderfrequencyWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_UnderfrequencyWarningLevel', int(value))
def vfdipp_cfgVUndervoltageInhibitTime(self, name, value):
def ipp_cfgvundervoltageinhibittime(self, name, value):
print('trying to set cfg_V_UndervoltageInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_UndervoltageInhibitTime', int(value))
def vfdipp_cfgVUndervoltageTripDelay(self, name, value):
def ipp_cfgvundervoltagetripdelay(self, name, value):
print('trying to set cfg_V_UndervoltageTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_UndervoltageTripDelay', float(value))
def vfdipp_cfgVUndervoltageTripLevel(self, name, value):
def ipp_cfgvundervoltagetriplevel(self, name, value):
print('trying to set cfg_V_UndervoltageTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_UndervoltageTripLevel', float(value))
def vfdipp_cfgVUndervoltageWarningLevel(self, name, value):
def ipp_cfgvundervoltagewarninglevel(self, name, value):
print('trying to set cfg_V_UndervoltageWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_UndervoltageWarningLevel', float(value))
def vfdipp_cfgVVoltageImbalanceInhibitTime(self, name, value):
def ipp_cfgvvoltageimbalanceinhibittim(self, name, value):
print('trying to set cfg_V_VoltageImbalanceInhibitTime to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_VoltageImbalanceInhibitTime', int(value))
def vfdipp_cfgVVoltageImbalanceTripDelay(self, name, value):
def ipp_cfgvvoltageimbalancetripdelay(self, name, value):
print('trying to set cfg_V_VoltageImbalanceTripDelay to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_VoltageImbalanceTripDelay', float(value))
def vfdipp_cfgVVoltageImbalanceTripLevel(self, name, value):
def ipp_cfgvvoltageimbalancetriplevel(self, name, value):
print('trying to set cfg_V_VoltageImbalanceTripLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_VoltageImbalanceTripLevel', int(value))
def vfdipp_cfgVVoltageImbalanceWarningLevel(self, name, value):
def ipp_cfgvvoltageimbalancewarninglev(self, name, value):
print('trying to set cfg_V_VoltageImbalanceWarningLevel to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_VoltageImbalanceWarningLevel', int(value))
def vfdipp_cfgVVoltageMode(self, name, value):
def ipp_cfgvvoltagemode(self, name, value):
print('trying to set cfg_V_VoltageMode to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_V_VoltageMode', int(value))
def vfdipp_cfgWRITE(self, name, value):
def ipp_cfgwrite(self, name, value):
print('trying to set cfg_WRITE to {}'.format(value))
return u800.writeMicroTag(addr, 'cfg_WRITE', int(value))
def vfdipp_downtimeTimeParameter(self, name, value):
def ipp_downtimetimeparameter(self, name, value):
print('trying to set Downtime_Time_Parameter to {}'.format(value))
return u800.writeMicroTag(addr, 'Downtime_Time_Parameter', int(value))
def vfdipp_downtimeTimeParameterOL(self, name, value):
def ipp_downtimetimeparameterol(self, name, value):
print('trying to set Downtime_Time_Parameter_OL to {}'.format(value))
return u800.writeMicroTag(addr, 'Downtime_Time_Parameter_OL', int(value))
def vfdipp_pressureAlarmDelay(self, name, value):
def ipp_pressurealarmdelay(self, name, value):
print('trying to set Pressure_Alarm_Delay to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Alarm_Delay', int(value))
def vfdipp_pressureAlarmStartupDelay(self, name, value):
def ipp_pressurealarmstartupdelay(self, name, value):
print('trying to set Pressure_Alarm_Startup_Delay to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Alarm_Startup_Delay', int(value))
def vfdipp_pressureEUMax(self, name, value):
def ipp_pressureeumax(self, name, value):
print('trying to set Pressure_EU_Max to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_EU_Max', float(value))
def vfdipp_pressureEUMin(self, name, value):
def ipp_pressureeumin(self, name, value):
print('trying to set Pressure_EU_Min to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_EU_Min', float(value))
def vfdipp_pressureHiSP(self, name, value):
def ipp_pressurehisp(self, name, value):
print('trying to set Pressure_Hi_SP to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Hi_SP', float(value))
def vfdipp_pressureLoSP(self, name, value):
def ipp_pressurelosp(self, name, value):
print('trying to set Pressure_Lo_SP to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Lo_SP', float(value))
def vfdipp_pressureShutdown(self, name, value):
def ipp_pressureshutdown(self, name, value):
print('trying to set Pressure_Shutdown to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Shutdown', float(value))
def vfdipp_pressureShutdownEnabled(self, name, value):
def ipp_pressureshutdownenabled(self, name, value):
print('trying to set Pressure_Shutdown_Enabled to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Shutdown_Enabled', int(value))
def vfdipp_pressureStartup(self, name, value):
def ipp_pressurestartup(self, name, value):
print('trying to set Pressure_Startup to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Startup', float(value))
def vfdipp_pressureStartupEnabled(self, name, value):
def ipp_pressurestartupenabled(self, name, value):
print('trying to set Pressure_Startup_Enabled to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Startup_Enabled', int(value))
def vfdipp_pressureSwitchEnabled(self, name, value):
def ipp_pressureswitchenabled(self, name, value):
print('trying to set Pressure_Switch_Enabled to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Switch_Enabled', int(value))
def vfdipp_pressureTransducerEnabled(self, name, value):
def ipp_pressuretransducerenabled(self, name, value):
print('trying to set Pressure_Transducer_Enabled to {}'.format(value))
return u800.writeMicroTag(addr, 'Pressure_Transducer_Enabled', int(value))
def vfdipp_startCommand(self, name, value):
def ipp_startcommand(self, name, value):
print('trying to set Start_Command to {}'.format(value))
return u800.writeMicroTag(addr, 'Start_Command', int(value))
def vfdipp_stopCommand(self, name, value):
def ipp_stopcommand(self, name, value):
print('trying to set Stop_Command to {}'.format(value))
return u800.writeMicroTag(addr, 'Stop_Command', int(value))
def vfdipp_tempShutdown(self, name, value):
def ipp_tempshutdown(self, name, value):
print('trying to set Temp_Shutdown to {}'.format(value))
return u800.writeMicroTag(addr, 'Temp_Shutdown', float(value))
def vfdipp_tempShutdownEnabled(self, name, value):
def ipp_tempshutdownenabled(self, name, value):
print('trying to set Temp_Shutdown_Enabled to {}'.format(value))
return u800.writeMicroTag(addr, 'Temp_Shutdown_Enabled', int(value))
def vfdipp_tempStartup(self, name, value):
def ipp_tempstartup(self, name, value):
print('trying to set Temp_Startup to {}'.format(value))
return u800.writeMicroTag(addr, 'Temp_Startup', float(value))
def vfdipp_tempStartupEnabled(self, name, value):
def ipp_tempstartupenabled(self, name, value):
print('trying to set Temp_Startup_Enabled to {}'.format(value))
return u800.writeMicroTag(addr, 'Temp_Startup_Enabled', int(value))
def vfdipp_tripEnableVOverfrequency(self, name, value):
print('trying to set TripEnable_V_Overfrequency to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_Overfrequency', int(value))
def vfdipp_tripEnableVOvervoltage(self, name, value):
print('trying to set TripEnable_V_Overvoltage to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_Overvoltage', int(value))
def vfdipp_tripEnableVPhaseRotation(self, name, value):
print('trying to set TripEnable_V_PhaseRotation to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_PhaseRotation', int(value))
def vfdipp_tripEnableVUnderfrequency(self, name, value):
print('trying to set TripEnable_V_Underfrequency to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_Underfrequency', int(value))
def vfdipp_tripEnableVUndervoltage(self, name, value):
print('trying to set TripEnable_V_Undervoltage to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_Undervoltage', int(value))
def vfdipp_tripEnableVVoltageUnbalance(self, name, value):
print('trying to set TripEnable_V_VoltageUnbalance to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_VoltageUnbalance', int(value))
def vfdipp_tripEnabledICurrentImbalance(self, name, value):
def ipp_tripenabledicurrentimbalance(self, name, value):
print('trying to set TripEnabled_I_CurrentImbalance to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_CurrentImbalance', int(value))
def vfdipp_tripEnabledIGroundFault(self, name, value):
def ipp_tripenabledigroundfault(self, name, value):
print('trying to set TripEnabled_I_GroundFault to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_GroundFault', int(value))
def vfdipp_tripEnabledIJam(self, name, value):
def ipp_tripenabledijam(self, name, value):
print('trying to set TripEnabled_I_Jam to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_Jam', int(value))
def vfdipp_tripEnabledILineLoss(self, name, value):
def ipp_tripenabledilineloss(self, name, value):
print('trying to set TripEnabled_I_LineLoss to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_LineLoss', int(value))
def vfdipp_tripEnabledIOvercurrent(self, name, value):
def ipp_tripenablediovercurrent(self, name, value):
print('trying to set TripEnabled_I_Overcurrent to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_Overcurrent', int(value))
def vfdipp_tripEnabledIOverload(self, name, value):
def ipp_tripenabledioverload(self, name, value):
print('trying to set TripEnabled_I_Overload to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_Overload', int(value))
def vfdipp_tripEnabledIPhaseLoss(self, name, value):
def ipp_tripenablediphaseloss(self, name, value):
print('trying to set TripEnabled_I_PhaseLoss to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_PhaseLoss', int(value))
def vfdipp_tripEnabledIStall(self, name, value):
def ipp_tripenabledistall(self, name, value):
print('trying to set TripEnabled_I_Stall to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_Stall', int(value))
def vfdipp_tripEnabledIUndercurrent(self, name, value):
def ipp_tripenablediundercurrent(self, name, value):
print('trying to set TripEnabled_I_Undercurrent to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_Undercurrent', int(value))
def vfdipp_tripEnabledIUnderload(self, name, value):
def ipp_tripenablediunderload(self, name, value):
print('trying to set TripEnabled_I_Underload to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnabled_I_Underload', int(value))
def vfdipp_tripResetCmd(self, name, value):
def ipp_tripenablevoverfrequency(self, name, value):
print('trying to set TripEnable_V_Overfrequency to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_Overfrequency', int(value))
def ipp_tripenablevovervoltage(self, name, value):
print('trying to set TripEnable_V_Overvoltage to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_Overvoltage', int(value))
def ipp_tripenablevphaserotation(self, name, value):
print('trying to set TripEnable_V_PhaseRotation to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_PhaseRotation', int(value))
def ipp_tripenablevunderfrequency(self, name, value):
print('trying to set TripEnable_V_Underfrequency to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_Underfrequency', int(value))
def ipp_tripenablevundervoltage(self, name, value):
print('trying to set TripEnable_V_Undervoltage to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_Undervoltage', int(value))
def ipp_tripenablevvoltageunbalance(self, name, value):
print('trying to set TripEnable_V_VoltageUnbalance to {}'.format(value))
return u800.writeMicroTag(addr, 'TripEnable_V_VoltageUnbalance', int(value))
def ipp_tripresetcmd(self, name, value):
print('trying to set TripResetCmd to {}'.format(value))
return u800.writeMicroTag(addr, 'TripResetCmd', int(value))
def vfdipp_warningEnableVOverfrequency(self, name, value):
print('trying to set WarningEnable_V_Overfrequency to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_Overfrequency', int(value))
def vfdipp_warningEnableVOvervoltage(self, name, value):
print('trying to set WarningEnable_V_Overvoltage to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_Overvoltage', int(value))
def vfdipp_warningEnableVPhaseRotation(self, name, value):
print('trying to set WarningEnable_V_PhaseRotation to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_PhaseRotation', int(value))
def vfdipp_warningEnableVUnderfrequency(self, name, value):
print('trying to set WarningEnable_V_Underfrequency to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_Underfrequency', int(value))
def vfdipp_warningEnableVUndervoltage(self, name, value):
print('trying to set WarningEnable_V_Undervoltage to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_Undervoltage', int(value))
def vfdipp_warningEnableVVoltageUnbalance(self, name, value):
print('trying to set WarningEnable_V_VoltageUnbalance to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_VoltageUnbalance', int(value))
def vfdipp_warningEnabledICurrentImbalance(self, name, value):
def ipp_warningenabledicurrentimbalanc(self, name, value):
print('trying to set WarningEnabled_I_CurrentImbalance to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_CurrentImbalance', int(value))
def vfdipp_warningEnabledIGroundFault(self, name, value):
def ipp_warningenabledigroundfault(self, name, value):
print('trying to set WarningEnabled_I_GroundFault to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_GroundFault', int(value))
def vfdipp_warningEnabledIJam(self, name, value):
def ipp_warningenabledijam(self, name, value):
print('trying to set WarningEnabled_I_Jam to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_Jam', int(value))
def vfdipp_warningEnabledILineLoss(self, name, value):
def ipp_warningenabledilineloss(self, name, value):
print('trying to set WarningEnabled_I_LineLoss to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_LineLoss', int(value))
def vfdipp_warningEnabledIOvercurrent(self, name, value):
def ipp_warningenablediovercurrent(self, name, value):
print('trying to set WarningEnabled_I_Overcurrent to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_Overcurrent', int(value))
def vfdipp_warningEnabledIOverload(self, name, value):
def ipp_warningenabledioverload(self, name, value):
print('trying to set WarningEnabled_I_Overload to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_Overload', int(value))
def vfdipp_warningEnabledIPhaseLoss(self, name, value):
def ipp_warningenablediphaseloss(self, name, value):
print('trying to set WarningEnabled_I_PhaseLoss to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_PhaseLoss', int(value))
def vfdipp_warningEnabledIStall(self, name, value):
def ipp_warningenabledistall(self, name, value):
print('trying to set WarningEnabled_I_Stall to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_Stall', int(value))
def vfdipp_warningEnabledIUndercurrent(self, name, value):
def ipp_warningenablediundercurrent(self, name, value):
print('trying to set WarningEnabled_I_Undercurrent to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_Undercurrent', int(value))
def vfdipp_warningEnabledIUnderload(self, name, value):
def ipp_warningenablediunderload(self, name, value):
print('trying to set WarningEnabled_I_Underload to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnabled_I_Underload', int(value))
def ipp_warningenablevoverfrequency(self, name, value):
print('trying to set WarningEnable_V_Overfrequency to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_Overfrequency', int(value))
def ipp_warningenablevovervoltage(self, name, value):
print('trying to set WarningEnable_V_Overvoltage to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_Overvoltage', int(value))
def ipp_warningenablevphaserotation(self, name, value):
print('trying to set WarningEnable_V_PhaseRotation to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_PhaseRotation', int(value))
def ipp_warningenablevunderfrequency(self, name, value):
print('trying to set WarningEnable_V_Underfrequency to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_Underfrequency', int(value))
def ipp_warningenablevundervoltage(self, name, value):
print('trying to set WarningEnable_V_Undervoltage to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_Undervoltage', int(value))
def ipp_warningenablevvoltageunbalance(self, name, value):
print('trying to set WarningEnable_V_VoltageUnbalance to {}'.format(value))
return u800.writeMicroTag(addr, 'WarningEnable_V_VoltageUnbalance', int(value))

File diff suppressed because one or more lines are too long

View File

@@ -198,6 +198,7 @@ writeable_tags = [
"cfg_WRITE",
"Downtime_Time_Parameter",
"Downtime_Time_Parameter_OL",
"Downhole_Tool_Enabled",
"Pressure_Alarm_Delay",
"Pressure_Alarm_Startup_Delay",
"Pressure_EU_Max",
@@ -336,7 +337,7 @@ for z in sorted(ignored_channels):
with open('writeFunctions.txt', 'wb') as wftxt:
for a in sorted(writeable_channels):
c = writeable_channels[a]
wftxt.write("def vfdipp_{0}(self, name, value):\r".format(a))
wftxt.write("def ipp_{0}(self, name, value):\r".format(a.replace("_", "").lower()))
wftxt.write("\tprint('trying to set {0} to {{}}'.format(value))\r".format(c['tag']))
if c['data_type'] == 'REAL':
wftxt.write("\treturn u800.writeMicroTag(addr, '{0}', float(value))\r".format(c['tag']))

File diff suppressed because one or more lines are too long