diff --git a/configs/config-jig/config.json b/configs/config-jig/config.json new file mode 100644 index 0000000..fcaec87 --- /dev/null +++ b/configs/config-jig/config.json @@ -0,0 +1,315 @@ +{ + "mock": false, + "API_port": 8888, + "update_interval": 1, + "recording": { + "enabled": false, + "username": "microgrid", + "password": "Ntu@1003", + "ip": "127.0.0.1", + "db": "test" + }, + "devs": [ + "COM17" + ], + "data_sets": [ + { + "name": "jig_operate", + "data": [ + { + "label": "MOVE TO POSITION", + "data_type": "bool", + "object_type": "coil", + "address": 30 + }, + { + "label": "X POSITION", + "data_type": "int", + "object_type": "holding", + "address": 90 + }, + { + "label": "Y POSITION", + "data_type": "int", + "object_type": "holding", + "address": 91 + }, + { + "label": "Z POSITION", + "data_type": "int", + "object_type": "holding", + "address": 92 + }, + { + "label": "MOVE TO ORIGIN", + "data_type": "bool", + "object_type": "coil", + "address": 32 + }, + { + "label": "X DELTA POSITION", + "data_type": "int", + "object_type": "holding", + "address": 93 + }, + { + "label": "Y DELTA POSITION", + "data_type": "int", + "object_type": "holding", + "address": 94 + }, + { + "label": "Z DELTA POSITION", + "data_type": "int", + "object_type": "holding", + "address": 95 + }, + { + "label": "MOVE DELTA POSITION", + "data_type": "bool", + "object_type": "coil", + "address": 33 + }, + { + "label": "SET ORIGIN TO CURRENT POSITION", + "data_type": "bool", + "object_type": "coil", + "address": 31 + }, + { + "label": "OVP_RELAY1_CMD", + "data_type": "uint", + "object_type": "holding", + "address": 43, + "show_as_hex": true + }, + { + "label": "OVP_RELAY1_STS", + "data_type": "uint", + "object_type": "input", + "address": 20, + "show_as_hex": true + }, + { + "label": "OVP_RELAY2_CMD", + "data_type": "uint", + "object_type": "holding", + "address": 44, + "show_as_hex": true + }, + { + "label": "OVP_RELAY2_STS", + "data_type": "uint", + "object_type": "input", + "address": 21, + "show_as_hex": true + }, + { + "label": "OVP_RELAY3_CMD", + "data_type": "uint", + "object_type": "holding", + "address": 45, + "show_as_hex": true + }, + { + "label": "OVP_RELAY3_STS", + "data_type": "uint", + "object_type": "input", + "address": 22, + "show_as_hex": true + } + ] + }, + { + "name": "jig_config", + "data": [ + { + "label": "DRV1_RATION_RATIO", + "data_type": "uint", + "object_type": "holding", + "address": 20 + }, + { + "label": "DRV2_RATION_RATIO", + "data_type": "uint", + "object_type": "holding", + "address": 21 + }, + { + "label": "DRV3_RATION_RATIO", + "data_type": "uint", + "object_type": "holding", + "address": 22 + }, + { + "label": "DRV1 DIRECTION MAPPING", + "data_type": "uint", + "object_type": "holding", + "address": 30 + }, + { + "label": "DRV2 DIRECTION MAPPING", + "data_type": "uint", + "object_type": "holding", + "address": 31 + }, + { + "label": "DRV3 DIRECTION MAPPING", + "data_type": "uint", + "object_type": "holding", + "address": 32 + }, + { + "label": "drv_1_cfg_freq", + "data_type": "uint", + "object_type": "holding", + "address": 40 + }, + { + "label": "drv_1_cfg_active_H", + "data_type": "uint", + "object_type": "holding", + "address": 41 + }, + { + "label": "drv_2_cfg_freq", + "data_type": "uint", + "object_type": "holding", + "address": 50 + }, + { + "label": "drv_2_cfg_active_H", + "data_type": "uint", + "object_type": "holding", + "address": 51 + }, + { + "label": "drv_3_cfg_freq", + "data_type": "uint", + "object_type": "holding", + "address": 60 + }, + { + "label": "drv_3_cfg_active_H", + "data_type": "uint", + "object_type": "holding", + "address": 61 + }, + { + "label": "drv_1_task_pules", + "data_type": "uint", + "object_type": "holding", + "address": 100 + }, + { + "label": "drv_1_dir", + "data_type": "uint", + "object_type": "holding", + "address": 101 + }, + { + "label": "drv_2_task_pules", + "data_type": "uint", + "object_type": "holding", + "address": 110 + }, + { + "label": "drv_2_dir", + "data_type": "uint", + "object_type": "holding", + "address": 111 + }, + { + "label": "drv_3_task_pules", + "data_type": "uint", + "object_type": "holding", + "address": 120 + }, + { + "label": "drv_3_dir", + "data_type": "uint", + "object_type": "holding", + "address": 121 + }, + { + "label": "rest_all_drv", + "data_type": "bool", + "object_type": "coil", + "address": 10 + }, + { + "label": "rest_drv_1", + "data_type": "bool", + "object_type": "coil", + "address": 11 + }, + { + "label": "rest_drv_2", + "data_type": "bool", + "object_type": "coil", + "address": 12 + }, + { + "label": "rest_drv_3", + "data_type": "bool", + "object_type": "coil", + "address": 13 + }, + { + "label": "push_all_task_drv", + "data_type": "bool", + "object_type": "coil", + "address": 20 + }, + { + "label": "push_task_drv_1", + "data_type": "bool", + "object_type": "coil", + "address": 21 + }, + { + "label": "push_task_drv_2", + "data_type": "bool", + "object_type": "coil", + "address": 22 + }, + { + "label": "push_task_drv_3", + "data_type": "bool", + "object_type": "coil", + "address": 23 + }, + { + "label": "OVP_relay_ton_ms", + "data_type": "uint", + "object_type": "holding", + "address": 42 + }, + { + "label": "OVP_RELAY1_CMD", + "data_type": "uint", + "object_type": "holding", + "address": 43 + }, + { + "label": "OVP_RELAY2_CMD", + "data_type": "uint", + "object_type": "holding", + "address": 44 + }, + { + "label": "OVP_RELAY3_CMD", + "data_type": "uint", + "object_type": "holding", + "address": 45 + }, + { + "label": "rewrite_all_config", + "data_type": "bool", + "object_type": "coil", + "address": 1 + } + ] + } + ] +} \ No newline at end of file