Action: SetCommunicationPath
Function: The action updates the communication parameters of a device object in the project so that a connection can be established later with the correct target device. In order to select the correct target device here, various options are provided by the action.
Call: Devices test driver
Tab: Configuration
Device name | Device with configuration to be updated
Hint: You can also drag the settings of a selected object to the input field (Drag&Drop). |
Gateway name | Name of the gateway
You can apply the data of a selected gateway to the configuration. |
Use one of the following four options to scan the network for the target device to which the connection should be established. The two restriction options below can be used to refine the search when the operation is performed by means of Target address, Target name, or Local PLC. | |
Target address | New CODESYS address to be set in the format "[0101.A185]" The network is scanned for the address specified here. With the possible restrictions regarding device type and device ID listed below, the detected selection of target devices in the network can be refined even more. However, if more than one device is detected nevertheless, then an attempt is made to establish a connection to the first device in the list of detected devices. |
Target name | The network is scanned for target devices with this name which are running at least one PLC instance. The CODESYS address of the PLC instance is stored in the device object. The Restrict to device type and Restrict to device ID options can be used to fine-tune the search. If, however, more than one result is found, then it is likely that more than one PLC instance is running on a device. Then the desired instance can be selected using Specify instance of PLC. If this is not specified, then an attempt is made to connect using the first search result. |
Local PLC | The computer where the test script is executed is scanned for PLC instances. The CODESYS address of the PLC instance is stored in the device object. The Restrict to device type and Restrict to device ID options can be used to fine-tune the search. If, however, more than one result is found, then it is likely that more than one PLC instance is running on a device. Then the desired instance can be selected using Specify instance of PLC. If this is not specified, then an attempt is made to connect using the first search result. |
Target IP/DNS | IP address or DNS name of the target device Optionally, the port can also be specified. Examples: Note: With this option, the network is not scanned, but the IP address is stored directly in the device object. Therefore, no additional restriction to device type or device ID is possible. As a result, no check is performed before establishing the actual connection as to whether or not the specified device really exists or matches the device description. |
Specify instance of PLC |
|
Restrict to device type | Specifies the scanned device type, which is stored in the device description and which is displayed when manually scanning the network Example: This additional information is applied as a restriction after the network has been scanned according to the information specified above for Target address, Target name, or Local PLC. |
Restrict to device ID | Specifies the scanned device ID, which is stored in the device description and which is displayed when manually scanning the network Example: This additional information is applied as a restriction after the network has been scanned according to the information specified above for Target address, Target name, or Local PLC. |
Encrypted communication certificate | What should happen when encrypted communication is required and the target device has a certificate for it?
|
Tab: Credentials
Use the credentials |
|
User | Credentials for authentication |
Password |
Only for the specified device | The credentials are used only for the specified device. |
As default for all devices with no specific password set | The credentials are used for all devices which do not have explicitly configured credentials. |
Tab: Parameters
The parameters defined on the Parameters tab are used to exchange values between test script variables and parameters of test actions. Parameters can be used as placeholders on the Configuration tab. For this, the name of the parameter is set in braces in the configuration dialog. Example: {name}
.
Tip
Variables defined globally in the script (with the prefix $GLOBALS.
) can be used directly in the test action. It is not necessary to use input parameters for passing. Using output parameters is necessary for writing global variables.
Input parameters: When executing the test action, the values of the test script variables are passed to the input parameters of the test action and can be used in the configuration of the test action. | |
Output parameters: When executing the test action, the values of the output parameters of the test action are passed to the test script variables and can be used (for example, in other test actions). | |
Name | Name of the input/output parameter This name is defined in addition to the variable name to identify the origin of the parameter when it is passed to another script. During the test run, this name is displayed as the Outer name on the Variables (scope #<n>) tab in the Test progress window. Background: When a script To see that this variable is recognized as variable |
Variable | Name of the test script variable Example: |
Move Up | Moves the selected variable one line up |
Move Down | Moves the selected variable one line down |
Remove | Removes the selected variable from the list |