123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- {
- "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"
- }
- ],
- "operations": [
- {
- "name": "MoveUp",
- "icon": "up"
- },
- {
- "name": "MoveUp",
- "icon": "down"
- },
- {
- "name": "Edit",
- "icon": "edit"
- },
- {
- "name": "Delete",
- "icon": "delete"
- }
- ],
- "props": {
- "allowAdd": "true"
- }
- },
- {
- "name": "instructions",
- "text": "下发指令",
- "inputType": "table",
- "fields": [
- {
- "name": "serialNo",
- "text": "序号",
- "dataType": "integer",
- "inputType": "text"
- },
- {
- "name": "commandName",
- "text": "命令名",
- "dataType": "string",
- "inputType": "text"
- },
- {
- "name": "commandCode",
- "text": "命令代码",
- "dataType": "string",
- "inputType": "text"
- },
- {
- "name": "dataType",
- "text": "数据类型",
- "dataType": "string",
- "inputType": "dropDownList",
- "dataSource": {
- "selected": 1,
- "dataSource": "json",
- "option": [
- {
- "label": "int16",
- "value": 1
- },
- {
- "label": "uInt16",
- "value": 2
- },
- {
- "label": "int32",
- "value": 3
- },
- {
- "label": "uInt32",
- "value": 4
- }
- ]
- }
- },
- {
- "name": "offset",
- "text": "偏移量",
- "dataType": "integer",
- "inputType": "text"
- },
- {
- "name": "length",
- "text": "长度",
- "dataType": "integer",
- "inputType": "text"
- }
- ],
- "props": {
- "allowAdd": "true"
- }
- }
- ],
- "inputs": [
- "XXDevice.Data1",
- "XXDevice.Data2"
- ],
- "args": [
- {
- "name": "x",
- "value": 100
- },
- {
- "name": "y",
- "value": 200
- }
- ],
- "outputs": [
- {
- "name": "",
- "code": "",
- "display": "",
- "description": ""
- }
- ],
- "expression": ""
- }
|