35 lines
2.1 KiB
Batchfile
35 lines
2.1 KiB
Batchfile
@echo off
|
|
rem Load CI-Eng-Sample into a CI Server R1.03 TEST system.
|
|
rem Run in an elevated prompt while CI Server is running; call this script by full path.
|
|
rem Results go to *.qlo listing files; check that Errors = 0.
|
|
rem Restart CI Server afterwards: new storage groups only start storing after a restart.
|
|
cd /d "%~dp0"
|
|
dssqld -i 01_section_df.qli -l 01_section_df.qlo
|
|
dssqld -i 02_item_df.qli -l 02_item_df.qlo
|
|
dssqld -i 02b_sub_item_df.qli -l 02b_sub_item_df.qlo
|
|
dssqld -i 03_his_group_df.qli -l 03_his_group_df.qlo
|
|
rem Short pause: linking items straight after creating the group failed once.
|
|
powershell -NoProfile -Command "Start-Sleep -Seconds 5"
|
|
dssqld -i 04_item_his_df.qli -l 04_item_his_df.qlo
|
|
rem Processing: trigger group, class (compiled on load via COMPILE = 1), object
|
|
dssqld -i 05_trigger_df.qli -l 05_trigger_df.qlo
|
|
dssqld -i 06_class_df.qli -l 06_class_df.qlo
|
|
dssqld -i 07_object_df.qli -l 07_object_df.qlo
|
|
rem Authorization: read-only group (no users are created by the sample)
|
|
dssqld -i 08_auth_group_df.qli -l 08_auth_group_df.qlo
|
|
rem Equipment: Modbus loopback line, station, scan type, points, connected items.
|
|
rem The station needs the Modbus slave mirror (equipment\eqpciengslv_start.cmd, see README).
|
|
dssqld -i 09_modbus_line_df.qli -l 09_modbus_line_df.qlo
|
|
echo Waiting 15 seconds for equipment manager EQPCIENG to start...
|
|
powershell -NoProfile -Command "Start-Sleep -Seconds 15"
|
|
dssqld -i 10_modbus_station_df.qli -l 10_modbus_station_df.qlo
|
|
dssqld -i 11_item_eqp_df.qli -l 11_item_eqp_df.qlo
|
|
rem OPC: make TANK1.LEVEL and its sections visible to OPC clients (modify existing records)
|
|
dssqld -m 12_opc_visible_df.qli -l 12_opc_visible_df.qlo
|
|
rem OPC UA loopback: client line (starts OPXCIENG), station/subscription/points, connected items.
|
|
rem The first connection needs a one-time certificate exchange (see README).
|
|
dssqld -i 13_opcua_line_df.qli -l 13_opcua_line_df.qlo
|
|
echo Waiting 10 seconds for OPC UA client OPXCIENG to start...
|
|
powershell -NoProfile -Command "Start-Sleep -Seconds 10"
|
|
dssqld -i 14_opcua_station_df.qli -l 14_opcua_station_df.qlo
|
|
dssqld -i 15_item_opcua_df.qli -l 15_item_opcua_df.qlo
|