Skip to content

Commit

Permalink
PLC4X added to various scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
riclolsen committed Jul 18, 2024
1 parent ccdb96b commit 9b441d5
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 21 deletions.
11 changes: 5 additions & 6 deletions platform-linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,16 @@ go mod tidy
go build
cp calculations ../../bin/

# cd ../plc4x-client
# go get "github.com/icza/bitio"
# go mod tidy
# go build
# cp plc4x-client ../../bin/

cd ../i104m
go mod tidy
go build
cp i104m ../../bin/

cd ../plc4x-client
go mod tidy
go build
cp plc4x-client ../../bin/

cd ../cs_data_processor
npm install
cd ../cs_custom_processor
Expand Down
5 changes: 5 additions & 0 deletions platform-mac/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ go mod tidy
go build
cp i104m ../../bin/

cd ../plc4x-client
go mod tidy
go build
cp plc4x-client ../../bin/

cd ../cs_data_processor
npm install
cd ../cs_custom_processor
Expand Down
13 changes: 6 additions & 7 deletions platform-windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dotnet publish --self-contained --runtime win-x64 -p:PublishReadyToRun=true -c R
cd %SRCPATH%\libiec61850\build
rem set VCTargetsPath=C:\ProgramFiles\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\
rem set VCTargetsPath=D:\ProgramFiles\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\
rem set VCToolsInstallDir=D:\ProgramFiles\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\
rem set VCToolsInstallDir=D:\ProgramFiles\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\
rem dotnet clean -c Release libiec61850.sln

dotnet publish --no-self-contained --runtime win-x64 -c Release libiec61850.sln
Expand Down Expand Up @@ -67,17 +67,16 @@ go mod tidy
go build
copy /Y calculations.exe %BINPATH%

rem cd %SRCPATH%\plc4x-client
rem go get "github.com/icza/bitio"
rem go mod tidy
rem go build
rem copy /Y plc4x-client.exe %BINPATH%

cd %SRCPATH%\i104m
go mod tidy
go build
copy /Y i104m.exe %BINPATH%

cd %SRCPATH%\plc4x-client
go mod tidy
go build
copy /Y plc4x-client.exe %BINPATH%

cd %SRCPATH%\cs_data_processor
call %NPM% install

Expand Down
11 changes: 5 additions & 6 deletions platform-windows/buildupd.bat
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,16 @@ go mod tidy
go build
copy /Y calculations.exe %BINPATH%

rem cd %SRCPATH%\plc4x-client
rem go get "github.com/icza/bitio"
rem go mod tidy
rem go build
rem copy /Y plc4x-client.exe %BINPATH%

cd %SRCPATH%\i104m
go mod tidy
go build
copy /Y i104m.exe %BINPATH%

cd %SRCPATH%\plc4x-client
go mod tidy
go build
copy /Y plc4x-client.exe %BINPATH%

cd %SRCPATH%\cs_data_processor
call %NPM% i --package-lock-only
call %NPM% update
Expand Down
8 changes: 7 additions & 1 deletion platform-windows/create_services.bat
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ nssm set JSON_SCADA_alarm_beep AppDirectory "C:\json-scada\src\alarm_beep"
nssm set JSON_SCADA_alarm_beep_auth AppStdout C:\json-scada\log\alarm_beep.log
nssm set JSON_SCADA_alarm_beep AppRotateOnline 1
nssm set JSON_SCADA_alarm_beep AppRotateBytes 10000000
nssm set JSON_SCADA_alarm_beep Start SERVICE_AUTO_START
nssm set JSON_SCADA_alarm_beep Start SERVICE_DEMAND_START

REM WARNING! This service has no security access control, use with care.
nssm install JSON_SCADA_config_server_excel "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\config_server_for_excel\index.js"
Expand Down Expand Up @@ -193,6 +193,12 @@ nssm set JSON_SCADA_i104m AppRotateOnline 1
nssm set JSON_SCADA_i104m AppRotateBytes 10000000
nssm set JSON_SCADA_i104m Start SERVICE_DEMAND_START

nssm install JSON_SCADA_plc4xclient "C:\json-scada\bin\plc4x-client.exe" 1 1
nssm set JSON_SCADA_plc4xclient AppStdout C:\json-scada\log\plc4xclient.log
nssm set JSON_SCADA_plc4xclient AppRotateOnline 1
nssm set JSON_SCADA_plc4xclient AppRotateBytes 10000000
nssm set JSON_SCADA_plc4xclient Start SERVICE_DEMAND_START

nssm install JSON_SCADA_plctags "C:\json-scada\bin\PLCTagsClient.exe" 1 1
nssm set JSON_SCADA_plctags AppStdout C:\json-scada\log\plctags.log
nssm set JSON_SCADA_plctags AppRotateOnline 1
Expand Down
1 change: 1 addition & 0 deletions platform-windows/start_services.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ REM nssm start JSON_SCADA_mongowr
REM SELECT PROTOCOLS TO START
nssm start JSON_SCADA_iec104client
nssm start JSON_SCADA_mqttsparkplugclient
nssm start JSON_SCADA_plc4xclient
nssm start JSON_SCADA_telegraf_listener
net start JSON_SCADA_telegraf_runtime
REM nssm start JSON_SCADA_iec104server
Expand Down
1 change: 1 addition & 0 deletions platform-windows/stop_services.bat
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ nssm stop JSON_SCADA_plctags
net stop JSON_SCADA_telegraf_runtime
nssm stop JSON_SCADA_telegraf_listener
nssm stop JSON_SCADA_mqttsparkplugclient
nssm stop JSON_SCADA_plc4xclient
ping -n 3

REM STOP PROTOCOL SERVERS
Expand Down
5 changes: 4 additions & 1 deletion src/htdocs-admin/src/components/ProtocolConnections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@

<v-list-item
v-if="
['OPC-UA', 'MQTT-SPARKPLUG-B'].includes(
['OPC-UA', 'MQTT-SPARKPLUG-B', 'PLC4X'].includes(
selected.protocolDriver
)
"
Expand Down Expand Up @@ -518,6 +518,7 @@
'MQTT-SPARKPLUG-B',
'TELEGRAF-LISTENER',
'IEC61850',
'PLC4X',
].includes(selected.protocolDriver)
"
>
Expand Down Expand Up @@ -731,6 +732,7 @@
'I104M',
'PI_DATA_ARCHIVE_INJECTOR',
'PI_DATA_ARCHIVE_CLIENT',
'PLC4X',
].includes(selected.protocolDriver)
"
>
Expand Down Expand Up @@ -2250,6 +2252,7 @@
'IEC61850',
'PI_DATA_ARCHIVE_INJECTOR',
'PI_DATA_ARCHIVE_CLIENT',
'PLC4X',
].includes(
selected.protocolDriver
)
Expand Down

0 comments on commit 9b441d5

Please sign in to comment.