
Appendix 4. How to make the user page
App4-49
function setDeviceState(val){
if(!checkTypeSys(sysType, sysSytem)){
alert("Check the type and display format (systemstate)");
return false;
}
$.ajax({
type: 'POST',
url: "/KR/set_plc_run.cgi",
data: 'mode='+val,
dataType : "text",
error:function(){
alert("Access to the server has failed. Try it again.");
},
success:function(data, code){
var code = data.substr(0,3);
if(code == '100'){
setDeviceView(val);
}
}
});
}
function setDeviceView(val){
var addImg = '';
if(val == '1'){
='<img src="/images/green.png" style="position:absolute; top: 17px; width:20px; height:20px;
left:0px;"/>';
if(uAuth == '0'){
='<div style="width:50px; height:20px; float:left; padding: 4px 0px 0px
30px;">RUN</div> <input style="float:left;" type="button" value="stop" onclick="setDeviceState(0);">';
}
$("#state_image").html(addImg);
}
else if(val == '0'){
='<img src="/images/red.png" style="position:absolute; top: 17px; width:20px; height:20px;
left:0px;"/>';
if(uAuth == '0'){
='<div style="width:50px; height:20px; float:left; padding: 4px 0px 0px
30px;">STOP</div> <input style="float:left;" type="button" value="operation" onclick="setDeviceState(1);">';
}
$("#state_image").html(addImg);
}else{
='<div style="width:100%; height:20px; float:left; padding: 4px 0px 0px 30px;">
알수없는
data
형식입니다
.</div>';
$("#state_image").html(addImg);
}
}
function getTemp(){
Содержание XBE-DC08A
Страница 124: ...Main Chapter 1 Configuration and Operation Mode of Programs 1 27 1 Memory block diagram ...
Страница 155: ...Main Chapter 2 CPU Function 2 29 Notice For more details on the monitor refer to the XG5000 manual ...
Страница 504: ...Position Chap 6 Commands 6 61 6 11 Function blocks related to Servo Drive ...
Страница 512: ...Positioning Chapter 7 Program 7 8 manual operation 7 1 4 Parameter and Operation Data Setting 1 Parameter Setting ...
Страница 644: ...Positioning Chapter 8 Functions 8 91 ...
Страница 727: ...Positioning Chapter 9 Positioning Error Information Solutions 9 13 ...
Страница 861: ...Special Chapter 1 Embedded Analog 1 39 5 Select View Variables Comments Variables and comments are both displayed ...
Страница 1206: ...Appendix 2 Dimension App2 1 Appendix 2 Dimension Unit mm 1 CPU Type XEC DN32U 2 Positioning Type XEC DN32UP ...
Страница 1207: ...Appendix 2 Dimension App2 2 2 Analog Type XEC DN32UA ...
Страница 1209: ...Appendix 2 Dimension App2 4 XBE DC08A XBE DC16A XBE TN08A XBE TN16A XBE DR16A XBE RY08A ...
Страница 1210: ...Appendix 2 Dimension App2 5 4 Extension Cnet I F Module XBL C41A XBL C21A ...