Object ‘Data Source’¶
Insert a Data source object below a Data Server object of an application. It represents an application on another device in the control network, with which the local application wishes to exchange data.
On the Communication tab, configure the settings for the connection to the other device, plus settings for the update of values.
On the Data Source Items tab, specify the variables for which the Data Server is to transfer values.
Data Source Items
Specify the variables for which the data server is to transfer values. With the help of the arrow buttons you can select variables of the data source or remove them from the selection. Alternative: a double-click on an entry in the left window moves it into the right window. a double-click on an entry in the right window deletes it.
Note
For structured variables you can specifically select individual components only in the tree structure view.
Available Items | All variables available in the data source. |
Selected Items | Variables of the source selected for the data transfer. |
Refres | CODESYS updates the selection of the available variables. |
Rebind | You can change the data source; the dialog box Select new Datasource appears for this. |
Structured view | CODESYS displays the available variables in project tree structure, otherwise flat and sorted by modules. |
Show documentation / Documentation | For each variable the documentation provided by the data source appears, at least its path below the device. |
Type of Datasource | Type of device on which the data source is located. |
Access rights | By clicking on the symbol behind the variable you can switch over the access rights:
|
Update by Default | The data server always (!) transfers the variables of the currently active visualization. If a function block instance or a data type instance is activated in this way, the complete instance is transferred! The data server transfers variables without the ‘Update by default’ attribute only if they are displayed in a visualization or if you have activated them via the data server programming interface in your application. Clicking on the button Update by default switches back and forth between the following actions:
|
Attention
Check how many variables can be updated with the setting Update by default or via the functions of the data server interface. Every such update produces data traffic on the communication line between the data source PLC and the DataServer PLC. If too many variables have to be updated in such a way, this can lower the refresh rate of the variables or cause an incomplete transfer!
See also
Communication
Automatic configuration | CODESYS adopts the communication data of the device of the active network path, in accordance with the Communication Settings of this device. |
Manual configuration | Communication takes place via the address specified here. With a mouse-click on From device, CODESYS automatically enters the data of the currently connected data source device as they are configured in its Communication Settings. |
Derive device address automatically: Recommended setting! Communication takes place via the address defined in the Communication Settings of the target device. | |
Use device address:: CODESYS enters the address of the data source device currently connected, as it is configured in its communication settings; for example Important: The address is possibly incorrect in the following cases:
We therefore recommend the setting Automatic configuration. |
|
Searching for the target system with the help of the network scan: Possible search criteria for the device: Node name: e.g. WST06 Target type: e.g. “4096” Target ID: e.g. “0000 0001” Target version: e.g. “1.0.0.0” Network location:
Search type::
|
Update while PLC is stopped | The data server also updates the data source variables when the controller is stopped. Otherwise no update takes place in the stop status. |
Update rate (ms) | Update interval for the variables in milliseconds. Default value: 200 ms. |
Login configuration | Logging in to the target device works according to the following definitions:
|
Default communication buffer | Unit: bytes, default value: 50000 |
Monitoring buffer | Unit: bytes, default value: 20000 |
See also