Skip to main content

Communication.settings.json

In this file, you define the connection between CODESYS 4 and the device where your application should run.

The communication settings of the project are stored in CODESYS 4 in the UTF-8-encoded Communication.settings.json file. For more information, see the following: Getting Started in CODESYS 4.

Location of the file:

  • In the case of a device project, in the folder: *.fbsdev

Example 49. Example of a Communication.settings.json file

{
    "device": {
        "nodeName": "MyDevice"    
    },
    "gateway": {
        "type": "CODESYS.GwV3",
        "name": "",
        "hostName": "localhost",
        "port": 1217
    }
}


Key of Communication.settings.json

Table 20.

Key

Type

Description

device

nodeName

string

Name of the device where the application should be loaded, for example MyDevice

gateway

type

string

Type of gateway

name

string

Custom name of the gateway

hostName

string

Host name/IP of the gateway

port

number

Port of the gateway