-
Notifications
You must be signed in to change notification settings - Fork 0
/
apax.yml
45 lines (40 loc) · 1.31 KB
/
apax.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# General information
name: "ae-axftcmlib"
version: 2.0.0
type: app
# Description will be displayed in the apax extension
description: Application Example for Fischertechnik library
# Build targets
targets:
- "1500"
- "llvm"
# Registries from where the packages will be loaded
registries:
'@simatic-ax': 'https://npm.pkg.github.com/'
# Install Setting
installStrategy: strict
apaxVersion: 3.2.1
# Dependencies
devDependencies:
"@ax/sdk": 2405.0.0
dependencies:
"@simatic-ax/axftcmlib": 2.0.0
"@ax/system-timer": 7.0.17
"@ax/simatic-1500-clocks": 7.0.4
# Project variables
variables:
APAX_BUILD_ARGS:
- "--debug" # Generate debug information for target "1500"
IP: 192.168.0.1 #<--Change Target IP here and in your launch.json & settings.json
CERTIFICATE: certificate.pem
# Apax scripts
scripts:
#For some PLCs a certificate is needed to communicate
#The certificate can be extracted using this command
cert: apax plc-cert -t $IP -o $CERTIFICATE
#This loads your code directly into the PLC
load: apax sld load --target $IP --input bin/1500 --restart --accept-security-disclaimer -C $CERTIFICATE
#This command builds your Programm and automatically loads it into the PLC
testing:
- apax build
- apax sld load --target $IP --input bin/1500 --restart --accept-security-disclaimer -C $CERTIFICATE