File tree 3 files changed +24
-21
lines changed
3 files changed +24
-21
lines changed Original file line number Diff line number Diff line change @@ -101,29 +101,38 @@ This application example consists of two parts.
101
101
102
102
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).
103
103
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
+ ` ` `
109
124
110
125
1. If not open, open a terminal in AX Code (` CTRL+SHIFT+ö` )
111
126
112
127
1. Start the application example
113
128
114
129
` ` ` cli
115
- apax start [1500]
130
+ apax dlplc
116
131
` ` `
117
132
118
133
> ` 1500` is required, if you use a real 1500 PLC instead of PLCSIM Advanced.
119
134
120
- Result:
121
-
122
- After the Download you' ll see following conten in the terminal. Exit by pressing `x`.
123
-
124
- 
125
-
126
- 1. Monitor voa mon-File:
135
+ 1. Monitor variables with mon-File:
127
136
128
137
! [monuioutput](docs/monuioutput.png)
129
138
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " ae-use -json-library" ,
2
+ "name" : " @simatic-ax/ae -json-library" ,
3
3
"version" : " 1.0.0" ,
4
4
"lockFileVersion" : " 2" ,
5
5
"installStrategy" : " strict" ,
6
6
"root" : {
7
- "name" : " ae-use -json-library" ,
7
+ "name" : " @simatic-ax/ae -json-library" ,
8
8
"version" : " 1.0.0" ,
9
9
"dependencies" : {
10
10
"@ax/system-strings" : " 7.0.17" ,
Original file line number Diff line number Diff line change @@ -35,12 +35,6 @@ variables:
35
35
# Apax scripts
36
36
scripts :
37
37
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
39
38
dlplc :
40
39
- apax build
41
40
- apax load
42
- start :
43
- - |
44
- apax install -L
45
- apax dlplc
46
- apax watch
You can’t perform that action at this time.
0 commit comments