
Appendix 4. How to make the user page
App4-15
Exercise related to reading/writing device values
Appendix 4.2.3
The exercise enables you to read or write the PLC’s device values.
[Fig. 4.2.3.1] Sample page of reading/writing device values
Sample code
1)
The sample code to read or write device values is as shown below.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<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/common.js"></script>
<script src="/KR/js/deviceTypeList.js"></script>
<script src="/js/biginteger.js"></script>
<!-- EUC-KR code table -->
<script src="/js/KSC5601.js"></script>
<script type="text/javascript">
/*----------Input Area--------------*/
var pDevice = 'M0000';
var pType = 5;
var pSystem = 2;
//XEC TYPE
//var pDevice = '%MW0';
//var pType = 5;
//var pSystem = 2;
/*---------------------------------*/
var pHex = deviceType[pType].hex;
var pCommand = ' 0 '+pHex;
pType++;
+;
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 ...