-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'evopro/master'
- Loading branch information
Showing
1 changed file
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,36 @@ | ||
# WinCCConnectionTool | ||
|
||
[![Build status](https://ci.appveyor.com/api/projects/status/ww2gbkq05yyh59ng?svg=true)](https://ci.appveyor.com/project/StefanDoubleU/winccconnectiontool) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/u0gav7sv0jt2v6wg?svg=true)](https://ci.appveyor.com/project/fbarresi/winccconnectiontool) | ||
|
||
This software change the connection parameters of a WinCC Project. | ||
In this way you can keep a single project and change the connected target machine directly from the runtime without recompiling the project. | ||
|
||
[Download it here](https://github.com/evopro-ag/WinCCConnectionTool/releases/latest) | ||
|
||
## Usage: | ||
cli.exe `<Database> <cmd> <params>` | ||
`WinCCCT [command] [options]` | ||
|
||
### Options: | ||
- `--path` : Path (absolute or relative) of MDF file | ||
- `--dbName` : Name or pattern of MDF file (i.E.: `HMI_577I.MDF` or `HMI_*.MDF`) | ||
|
||
if no `--path` or `--dbName` is set the tool will search for a WinCC database in all subfolders. | ||
Use one of theese options if you have many elegible .MDF file in your subfolders | ||
|
||
`-?|-h|--help`: Show help information | ||
|
||
### Commands: | ||
|
||
### Database: | ||
Full qualified path to *.mdf database file `.\HMI_577I\HMI_577I.MDF` | ||
- `list` : List all WinCC connections | ||
- `setCon` : Set WinCC connection string | ||
- `setOpc` : Update a WinCC connection string of type OPC UA | ||
- `setOpcNS` : Update OPC Namespace number of all variables in a connection | ||
|
||
### cmd: | ||
* `list`: Lists all connections within the WinCC project | ||
* `set <connectionName> <newParameter>`: Set the parameter to a given connection name. | ||
Run `WinCCCT [command] --help` for more information about a command. | ||
|
||
Example: | ||
* S7 Connection: `cli.exe "C:\temp\project1\HMI_577I\HMI_577I.MDF" set "connection1" "IP,10.10.100.119,,0,2,02"` | ||
* OPC-UA: `cli.exe <path> set "connection1" "opc.tcp://10.10.100.119:4840,1,1,0; <UA>; 0.00; 0; 0; 1"` | ||
### Examples | ||
- List all WinCC connections: `WinCCCT list --dbName HMI_577I.MDF` | ||
- Change parameter of a generic connection: `WinCCCT setCon connection1 "IP,10.10.100.119,,0,2,02" --dbName HMI_577I.MDF` | ||
- Change OPC UA connection with host name and port number: `WinCCCT setOpc connection1 192.168.1.10 4048 --dbName HMI_577I.MDF` | ||
- Change OPC UA namespace number for all variables in a connection: `WinCCCT setOpcNS connection1 81 --dbName HMI_577I.MDF` | ||
|