EasyManuals Logo

Anybus CompactCom 40 User Manual

Anybus CompactCom 40
260 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #86 background imageLoading...
Page #86 background image
JSON 84 (258)
10.3 Example
This example shows how to create a web page that fetches Module Name and CPU load from
the module and presents it on the web page. The file, containing this code, has to be stored in
the built-in file system, and the result can be seen in a common browser.
<html>
<head>
<title>Anybus CompactCom</title>
<!-- Imported libs -->
<script type="text/javascript" src="vfs/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="vfs/js/tmpl.js"></script>
</head>
<body>
<div id="info-content"></div>
<script type="text/x-tmpl" id="tmpl-info">
<b>From info.json</b><br>
Module name:
{%=o.modulename%}<br>
CPU Load:
{%=o.cpuload%}%<br>
</script>
<script type="text/javascript">
$.getJSON( "/module/info.json", null, function(data){
$("#info-content").html( tmpl("tmpl-info", data ) );
});
</script>
</body>
</html>
Anybus
®
CompactCom
40 PROFINET IRT Network Guide SCM-1202-023 EN 1.8

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Anybus CompactCom 40 and is the answer not in the manual?

Anybus CompactCom 40 Specifications

General IconGeneral
BrandAnybus
ModelCompactCom 40
CategoryControl Unit
LanguageEnglish

Related product manuals