modul tutorial twincat

[{"id":"b0a9c705.017d08","type":"ADS Symbols","z":"524f011a.f0bce8","name":"","datasource":"","data":"SYMBOLES","x":370,"y":940,"wires":[["f9278f67.b8ba2"]]},{"id":"f9278f67.b8ba2","type":"ui_template","z":"524f011a.f0bce8","group":"aa9409af.67136","name":"","order":0,"width":"26","height":"6","format":"<style>\ntable {\n    color: #333;\n    font-family: Helvetica, Arial, sans-serif;\n    width: 100%;\n    border-collapse: collapse;\n    border-spacing: 0;\n}\ntd, th {\n    border: 1px solid transparent;\n    height: 30px;\n    transition: all 0.3s;\n}\nth {\n    background: #DFDFDF;\n    /* Darken header a bit */\n    font-weight: bold;\n    text-align: left;\n}\ntd {\n    background: #FAFAFA;\n    text-align: left;\n}\ntr:nth-child(even) td {\n    background: #F1F1F1;\n}\ntr:nth-child(odd) td {\n    background: #FEFEFE;\n}\ntr td:hover {\n    background: #666;\n    color: #FFF;\n}\n</style>\n\n<div>\n<table>\n  <tr>\n    <th>Index Group</th>\n    <th>Index Offset</th>\n    <th>Name</th>\n    <th>Type</th>\n    <th>Comment</th>\n  </tr>\n  <tr ng-repeat=\"obj in msg.payload\">\n    <td>{{ obj.indexGroup }}</td>\n    <td>{{ obj.indexOffset }}</td>\n    <td>{{ obj.name }}</td>\n    <td>{{ obj.type }}</td>\n    <td>{{ obj.comment }}</td>\n  </tr>\n</table>\n</div>","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":600,"y":940,"wires":[[]]},{"id":"cf2f5485.8f3268","type":"ADS Symbols","z":"524f011a.f0bce8","name":"","datasource":"","data":"TYPES","x":360,"y":1020,"wires":[["803b7b42.ce51b"]]},{"id":"803b7b42.ce51b","type":"ui_template","z":"524f011a.f0bce8","group":"f880e964.b5012","name":"","order":2,"width":"26","height":"10","format":"<style>\ntable {\n    color: #333;\n    font-family: Helvetica, Arial, sans-serif;\n    width: 100%;\n    border-collapse: collapse;\n    border-spacing: 0;\n}\ntd, th {\n    border: 1px solid transparent;\n    height: 30px;\n    transition: all 0.3s;\n}\nth {\n    background: #DFDFDF;\n    font-weight: bold;\n    text-align: left;\n}\ntd {\n    background: #FAFAFA;\n    text-align: left;\n}\ntr:nth-child(even) td {\n    background: #F1F1F1;\n}\ntr:nth-child(odd) td {\n    background: #FEFEFE;\n}\ntr td:hover {\n    background: #666;\n    color: #FFF;\n}\n</style>\n\n<div>\n<table>\n  <tr>\n    <th>Version</th>\n    <th>Size</th>\n    <th>Data Type</th>\n    <th>Name</th>\n    <th>Type</th>\n    <th>Comment</th>\n    <th>Array Dim</th>\n    <th>Sub Types</th>\n  </tr>\n  <tr ng-repeat=\"obj in msg.payload\">\n    <td>{{ obj.version }}</td>\n    <td>{{ obj.size }}</td>\n    <td>{{ obj.dataType }}</td>\n    <td>{{ obj.name }}</td>\n    <td>{{ obj.type }}</td>\n    <td>{{ obj.comment }}</td>\n    <td>\n       <table ng-show=\"obj.array\">\n          <tr>\n            <th>Low Bound</th>\n            <th>Elements</th>\n          </tr>\n          <tr ng-repeat=\"sobj in obj.array\">\n            <td>{{ sobj.lBound }}</td>\n            <td>{{ sobj.elements }}</td>\n          </tr>\n       </table>\n     </td>       \n    <td>\n       <table ng-show=\"obj.datatyps\">\n          <tr>\n            <th>Index</th>\n            <th>Version</th>\n            <th>Size</th>\n            <th>Data Type</th>\n            <th>Offset</th>\n            <th>Name</th>\n            <th>Type</th>\n            <th>Comment</th>\n          </tr>\n          <tr ng-repeat=\"sobj in obj.datatyps\">\n            <td>{{ sobj.index }}</td>\n            <td>{{ sobj.version }}</td>\n            <td>{{ sobj.size }}</td>\n            <td>{{ sobj.dataType }}</td>\n            <td>{{ sobj.offs }}</td>\n            <td>{{ sobj.name }}</td>\n            <td>{{ sobj.type }}</td>\n            <td>{{ sobj.comment }}</td>\n          </tr>\n       </table>\n     </td>       \n  </tr>\n</table>\n</div>","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":600,"y":1020,"wires":[[]]},{"id":"6dadd36d.9d2334","type":"ui_text_input","z":"524f011a.f0bce8","name":"","label":"Search","group":"f880e964.b5012","order":1,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"","x":140,"y":1020,"wires":[["cf2f5485.8f3268"]]},{"id":"8dfe926d.20cbb","type":"ui_text_input","z":"524f011a.f0bce8","name":"","label":"Search","group":"aa9409af.67136","order":1,"width":"0","height":"0","passthru":false,"mode":"text","delay":"0","topic":"","x":140,"y":940,"wires":[["b0a9c705.017d08"]]},{"id":"aa9409af.67136","type":"ui_group","z":"","name":"Symboles","tab":"65f5295f.68b3c","order":1,"disp":true,"width":"26","collapse":true},{"id":"f880e964.b5012","type":"ui_group","z":"","name":"Types","tab":"65f5295f.68b3c","order":2,"disp":true,"width":"26","collapse":true},{"id":"65f5295f.68b3c","type":"ui_tab","z":"","name":"inspect PLC","icon":"fingerprint","order":2}]

3.75
4
A-312 69370 points

                                    [{&quot;id&quot;:&quot;2cf4e73.bcb4f98&quot;,&quot;type&quot;:&quot;ADS Symbols&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;&quot;,&quot;datasource&quot;:&quot;&quot;,&quot;data&quot;:&quot;SYMBOLES&quot;,&quot;x&quot;:300,&quot;y&quot;:740,&quot;wires&quot;:[[&quot;9fd1a1c7.a10a6&quot;]]},{&quot;id&quot;:&quot;9fd1a1c7.a10a6&quot;,&quot;type&quot;:&quot;csv&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;&quot;,&quot;sep&quot;:&quot;\\t&quot;,&quot;hdrin&quot;:false,&quot;hdrout&quot;:true,&quot;multi&quot;:&quot;one&quot;,&quot;ret&quot;:&quot;\\r\\n&quot;,&quot;temp&quot;:&quot;indexGroup,indexOffset,size,name,type,comment&quot;,&quot;skip&quot;:&quot;0&quot;,&quot;x&quot;:470,&quot;y&quot;:740,&quot;wires&quot;:[[&quot;3f33ed7f.08d41a&quot;]]},{&quot;id&quot;:&quot;3f33ed7f.08d41a&quot;,&quot;type&quot;:&quot;file&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;&quot;,&quot;filename&quot;:&quot;symboles.xls&quot;,&quot;appendNewline&quot;:false,&quot;createDir&quot;:false,&quot;overwriteFile&quot;:&quot;true&quot;,&quot;x&quot;:690,&quot;y&quot;:740,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;cf639909.782c38&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;all&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;true&quot;,&quot;payloadType&quot;:&quot;bool&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;x&quot;:130,&quot;y&quot;:740,&quot;wires&quot;:[[&quot;2cf4e73.bcb4f98&quot;]]},{&quot;id&quot;:&quot;bb6e0397.998ca8&quot;,&quot;type&quot;:&quot;ADS Symbols&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;&quot;,&quot;datasource&quot;:&quot;&quot;,&quot;data&quot;:&quot;TYPES&quot;,&quot;x&quot;:300,&quot;y&quot;:800,&quot;wires&quot;:[[&quot;df532662.17485&quot;]]},{&quot;id&quot;:&quot;afa626ac.36da48&quot;,&quot;type&quot;:&quot;csv&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;&quot;,&quot;sep&quot;:&quot;\\t&quot;,&quot;hdrin&quot;:false,&quot;hdrout&quot;:true,&quot;multi&quot;:&quot;one&quot;,&quot;ret&quot;:&quot;\\r\\n&quot;,&quot;temp&quot;:&quot;version,size,dataType,subItems,name,type,lBound,elements,entryIndex,entryVersion,entrySize,entryOffs,entryDataType,entryName,entryType&quot;,&quot;skip&quot;:&quot;0&quot;,&quot;x&quot;:670,&quot;y&quot;:800,&quot;wires&quot;:[[&quot;ace69011.4a4f18&quot;]]},{&quot;id&quot;:&quot;ace69011.4a4f18&quot;,&quot;type&quot;:&quot;file&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;&quot;,&quot;filename&quot;:&quot;types.xls&quot;,&quot;appendNewline&quot;:false,&quot;createDir&quot;:false,&quot;overwriteFile&quot;:&quot;true&quot;,&quot;x&quot;:840,&quot;y&quot;:800,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;12d3e5af.381b3a&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;search&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;[\&quot;typeName1*\&quot;,\&quot;type?ame2*\&quot;]&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;x&quot;:130,&quot;y&quot;:800,&quot;wires&quot;:[[&quot;bb6e0397.998ca8&quot;]]},{&quot;id&quot;:&quot;df532662.17485&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;format for csv&quot;,&quot;func&quot;:&quot;var outmsg = {payload:[]}\nif (Array.isArray(msg.payload)) {\n    msg.payload.map(function (data){\n        out = {\n            version: data.version,\n            hashValue: data.hashValue,\n            typeHashValue: data.typeHashValue,\n            size: data.size,\n            dataType: data.dataType,\n            subItems: data.subItems,\n            name: data.name,\n            type: data.type,\n            arrayDim: data.arrayDim,\n            comment: data.comment\n        }\n        outmsg.payload.push(out)\n        \n        if (data.array) {\n            data.array.map(function(adata) {\n                adata.name= data.name\n                outmsg.payload.push(adata)\n            })    \n        }\n\n        if (data.datatyps) {\n            data.datatyps.map(function(sdata) {\n                out = {\n                    name: data.name,\n                    entryIndex: sdata.index,\n                    entryVersion: sdata.version,\n                    entryHashValue: sdata.hashValue,\n                    entryTypeHashValue: sdata.typeHashValue,\n                    entrySize: sdata.size,\n                    entryOffs: sdata.offs,\n                    entryDataType: sdata.dataType,\n                    entryName: sdata.name,\n                    entryType: sdata.type,\n                    entryArrayDim: data.arrayDim,\n                    entryComment: sdata.comment,\n                    array: sdata.array\n                }\n                outmsg.payload.push(out)\n                \n            })    \n        }\n    })\n}\nreturn outmsg&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;x&quot;:500,&quot;y&quot;:800,&quot;wires&quot;:[[&quot;afa626ac.36da48&quot;]]},{&quot;id&quot;:&quot;fa01d720.55c0e8&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;all&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;true&quot;,&quot;payloadType&quot;:&quot;bool&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;x&quot;:130,&quot;y&quot;:840,&quot;wires&quot;:[[&quot;bb6e0397.998ca8&quot;]]},{&quot;id&quot;:&quot;b16a18f7.e0ece8&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;524f011a.f0bce8&quot;,&quot;name&quot;:&quot;search&quot;,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;[\&quot;.var1*\&quot;,\&quot;.?ar2*\&quot;]&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;x&quot;:130,&quot;y&quot;:700,&quot;wires&quot;:[[&quot;2cf4e73.bcb4f98&quot;]]}]

3.75 (4 Votes)
0
Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source