{ "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" } } ], "inputs": [ "XXDevice.Data1", "XXDevice.Data2" ], "args": [ { "name": "x", "value": 100 }, { "name": "y", "value": 200 } ], "outputs": [ { "name": "", "code": "", "display": "", "description": "" } ], "expression": "" }