
Appendix 4. How to make the user page
App4-21
PLC Run/Stop exercise
Appendix 4.2.4
The exercise enables you to change the PLC’s operation mode into Run or Stop.
[Fig. 4.2.4.1] PLC Run/Stop sample page
Sample code
1)
The sample code to convert the PLC’s operating mode into Run or Stop is as shown below.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="/js/jquery-1.8.1.min.js"></script>
<script src="/KR/js/deviceTypeList.js"></script>
<script type="text/javascript">
/*----------Input Area--------------*/
//XBC TYPE
var pDevice = 'M00000';
var pType = 15;
var pSystem = 1;
//XEC TYPE
//var pDevice = '%MX0';
//var pType = 15;
//var pSystem = 1;
/*--------------------------------*/
pType++;
+;
$(window).load(function(){
getDeviceState();
});
function getDeviceState(){
/*
checkTypeSys(pType, pSystem)
- Check whether the display format is proper for the type.
*/
Summary of Contents for XBE-DC08A
Page 124: ...Main Chapter 1 Configuration and Operation Mode of Programs 1 27 1 Memory block diagram ...
Page 504: ...Position Chap 6 Commands 6 61 6 11 Function blocks related to Servo Drive ...
Page 644: ...Positioning Chapter 8 Functions 8 91 ...
Page 727: ...Positioning Chapter 9 Positioning Error Information Solutions 9 13 ...
Page 1207: ...Appendix 2 Dimension App2 2 2 Analog Type XEC DN32UA ...
Page 1209: ...Appendix 2 Dimension App2 4 XBE DC08A XBE DC16A XBE TN08A XBE TN16A XBE DR16A XBE RY08A ...
Page 1210: ...Appendix 2 Dimension App2 5 4 Extension Cnet I F Module XBL C41A XBL C21A ...