mirror of
https://github.com/thiagoralves/OpenPLC_v3.git
synced 2025-12-12 14:27:06 +08:00
Added S7 support
This commit is contained in:
@@ -134,7 +134,7 @@ login_body = """
|
||||
<button>login</button>
|
||||
</form>
|
||||
</div>
|
||||
<h3 style="font-family:'roboto', sans-serif; font-size:14px; color:#ffffff;">Release: 2025-02-06</h3>
|
||||
<h3 style="font-family:'roboto', sans-serif; font-size:14px; color:#ffffff;">Release: 2025-03-17</h3>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
@@ -1202,6 +1202,8 @@ settings_tail = """
|
||||
var pstorage_text = document.getElementById('pstorage_thread_poll');
|
||||
var auto_run_checkbox = document.getElementById('auto_run');
|
||||
var auto_run_text = document.getElementById('auto_run_text');
|
||||
var snap7_run_checkbox = document.getElementById('snap7_run');
|
||||
var snap7_run_text = document.getElementById('snap7_run_text');
|
||||
|
||||
if (modbus_checkbox.checked == true)
|
||||
{
|
||||
@@ -1247,6 +1249,14 @@ settings_tail = """
|
||||
{
|
||||
auto_run_text.value = 'false';
|
||||
}
|
||||
if (snap7_run_checkbox.checked == true)
|
||||
{
|
||||
snap7_run_text.value = 'true';
|
||||
}
|
||||
else
|
||||
{
|
||||
snap7_run_text.value = 'false';
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById('modbus_server').onchange = function()
|
||||
@@ -1274,6 +1284,11 @@ settings_tail = """
|
||||
setupCheckboxes();
|
||||
}
|
||||
|
||||
document.getElementById('snap7_run').onchange = function()
|
||||
{
|
||||
setupCheckboxes();
|
||||
}
|
||||
|
||||
function validateForm()
|
||||
{
|
||||
var modbus_checkbox = document.forms["uploadForm"]["modbus_server"].checked;
|
||||
|
||||
Reference in New Issue
Block a user