I successfully changed and read variable(data type: Real) of PLC S7 1200. However, I can't change a variable(data type: Time) with the same code although it is still readable in my webserver like the picture. Can someone help me? Thank you very much.
<input id="6-1" value=' :="ftpExeCycle":' onkeypress="runScript(event,'6-1','%22ftpExeCycle%22',modal11 )">
<!-- The Modal11 -->
<div id="myModal11" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close" onclick="document.getElementById('myModal11').style.display='none'">×</span>
<p>Do you want to change?</p>
<button onclick="changeValue('6-1','%22ftpExeCycle%22','myModal11')">Yes</button>
<button onclick="document.getElementById('myModal2').style.display='none'">No</button>
</div>
</div>
function changeValue(idInput,variable,idModalName) {
send_ajax_request(variable, idInput);
document.getElementById(idModalName).style.display='none';
alert('Success!');
}