123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- {
- "name": "",
- "code": "",
- "model": "",
- "type": "",
- "props": [
- { "deviceId": "" }
- ],
- "settings": [
- {
- "name": "IPAddress",
- "text": "IP地址",
- "dataType": "string",
- "readonly": false,
- "inputType": "Text"
- },
- {
- "name": "Port",
- "text": "端口",
- "dataType": "integer",
- "readonly": false,
- "inputType": "Text"
- },
- {
- "name": "IdleTimeout",
- "text": "空闲超时时间(秒)",
- "dataType": "integer",
- "readonly": false,
- "inputType": "Text"
- },
- {
- "name": "ByteOrder",
- "text": "字节序",
- "dataType": "integer",
- "readonly": false,
- "inputType": "DropDownList",
- "dataSource": {
- "selected": 1,
- "dataSource": "json",
- "option": [
- {
- "label": "ABCD",
- "value": 1
- },
- {
- "label": "DBCA",
- "value": 2
- }
- ]
- }
- },
- {
- "name": "ByteOrder",
- "text": "字节序",
- "dataType": "integer",
- "readonly": false,
- "inputType": "DropDownList",
- "dataSource": {
- "selected": 1,
- "dataSource": "api",
- "apiUrl": "http://xxx.xxx/xxx/xxx"
- }
- },
- {
- "name": "decodeMethod",
- "text": "解析方式",
- "inputType": "Table",
- "fields": [
- {
- "name": "SerialNo",
- "text": "序号",
- "dataType": "intgeger",
- "inputType": "Text"
- },
- {
- "name": "DataName",
- "text": "字段",
- "dataType": "string",
- "inputType": "Text"
- },
- {
- "name": "DataType",
- "text": "数据类型",
- "dataType": "string",
- "inputType": "DropDownList",
- "dataSource": {
- "props": {
- "selected": 1,
- "dataSource": "json",
- "option": [
- {
- "label": "Int32",
- "value": 1
- },
- {
- "label": "UInt32",
- "value": 2
- }
- ]
- }
- }
- },
- {
- "name": "Offset",
- "text": "偏移量",
- "dataType": "integer",
- "inputType": "Text"
- },
- {
- "name": "Length",
- "text": "长度",
- "dataType": "integer",
- "inputType": "Text"
- },
- {
- "name": "DataItem",
- "text": "设备属性",
- "dataType": "string",
- "type": "DropDownList",
- "props": {
- "selected": 1,
- "dataSource": "api",
- "apiUrl": "http://xxx.xxx/xxx/xxx"
- }
- }
- ],
- "operations": [
- {
- "name": "MoveUp",
- "icon": "up"
- },
- {
- "name": "MoveUp",
- "icon": "down"
- },
- {
- "name": "Edit",
- "icon": "edit"
- },
- {
- "name": "Delete",
- "icon": "delete"
- }
- ],
- "props": {
- "allowAdd": "true"
- }
- }
- ],
- "inputs": [
- "XXDevice.Data1",
- "XXDevice.Data2"
- ],
- "args": [
- {
- "name": "x",
- "value": 100
- },
- {
- "name": "y",
- "value": 200
- }
- ],
- "outputs": [
- {
- "name": "",
- "code": "",
- "display": "",
- "description": ""
- }
- ],
- "expression": ""
- }
|