A textual hardware declaration (or *.hwl.json file) defines the hardware configuration of one or more PLCs.
This is a simple *.hwl.json file that contains just a single PLC (hereinafter we call it Sample.hwl.json):
{
"Devices" : [
{
"Name" : "S7-1500_station_1",
"Modules" : [
{
"Name": "PLC_1",
"TypeIdentifier": {
"OrderNumber": "6ES7 516-3AN01-0AB0",
"Version": "V2.9"
},
"AccessProtection": {
"AccessLevel": "NoAccess"
},
"Interfaces" : [
{
"Name": "Interface1",
"Label": "X1",
"Addresses": {
"Configured": [
{ "IPv4": "192.0.2.1/24" }
]
}
}
]
}
]
}
]
}
Note
To create a sample file, you can also right-click on a project folder and select Create hardware file sample.