Skip to content

Commit 256c722

Browse files
committed
update documentation
1 parent 60ab767 commit 256c722

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

README.md

+22-13
Original file line numberDiff line numberDiff line change
@@ -101,29 +101,38 @@ This application example consists of two parts.
101101

102102
1. Start a PLCSIM Advanced Instance or using a 1500 PLC. Download a TIA Portal created HWCN with a 1500 standard PLC (Default IP Address 192.168.0.1).
103103

104-
> The default ip address can be changed in the apax.yml
105-
>
106-
> ```yml
107-
> IP_ADDRESS: "192.168.0.1"
108-
> ```
104+
The default ip address can be changed in the `apax.yml` and in the `.vscode/launch.json`
105+
106+
```yml
107+
IP_ADDRESS: "192.168.0.1"
108+
```
109+
110+
```json
111+
{
112+
"version": "0.2.0",
113+
"configurations": [
114+
{
115+
"name": "Debug live on PLC",
116+
"type": "plc-debug",
117+
"request": "launch",
118+
"program": "${workspaceFolder}",
119+
"ip": "192.168.0.1"
120+
}
121+
]
122+
}
123+
```
109124

110125
1. If not open, open a terminal in AX Code (`CTRL+SHIFT+ö`)
111126

112127
1. Start the application example
113128

114129
```cli
115-
apax start [1500]
130+
apax dlplc
116131
```
117132

118133
> `1500` is required, if you use a real 1500 PLC instead of PLCSIM Advanced.
119134

120-
Result:
121-
122-
After the Download you'll see following conten in the terminal. Exit by pressing `x`.
123-
124-
![/monoutput](docs/monoutput.png)
125-
126-
1. Monitor voa mon-File:
135+
1. Monitor variables with mon-File:
127136

128137
![monuioutput](docs/monuioutput.png)
129138

apax-lock.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "ae-use-json-library",
2+
"name": "@simatic-ax/ae-json-library",
33
"version": "1.0.0",
44
"lockFileVersion": "2",
55
"installStrategy": "strict",
66
"root": {
7-
"name": "ae-use-json-library",
7+
"name": "@simatic-ax/ae-json-library",
88
"version": "1.0.0",
99
"dependencies": {
1010
"@ax/system-strings": "7.0.17",

apax.yml

-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ variables:
3535
# Apax scripts
3636
scripts:
3737
load: sld -i "$BIN_FOLDER" -t "$IP_ADDRESS" -r --accept-security-disclaimer -l debug --default-server-interface
38-
watch: apax mon -t "$IP_ADDRESS" -f "$WATCHLISTS/default.mon" -c
3938
dlplc:
4039
- apax build
4140
- apax load
42-
start:
43-
- |
44-
apax install -L
45-
apax dlplc
46-
apax watch

0 commit comments

Comments
 (0)