From 469973df47b5f6dda09c9a77fa4585354dd58489 Mon Sep 17 00:00:00 2001 From: philipperequile Date: Sat, 23 Feb 2019 17:37:43 +0100 Subject: [PATCH] Added 2 new PLC types DINT and UDINT (#8700) 1) added 2 new PLC types. 2) Correction in the configuration.yaml example: port is typically 801 or 851, not 48898 (48898 is the TCP port on the PLC. 801 (twincat 2) or 851 (twincat 3) are the default ADS ports under which the PLC runtime is accessible. --- source/_components/ads.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/_components/ads.markdown b/source/_components/ads.markdown index 735fbded017..599086ef75a 100644 --- a/source/_components/ads.markdown +++ b/source/_components/ads.markdown @@ -40,7 +40,7 @@ To enable ADS, add the following lines to your `configuration.yaml` file: # Example configuration.yaml entry ads: device: '127.0.0.1.1.1' - port: 48898 + port: 801 ``` {% configuration %} @@ -137,7 +137,7 @@ name: ## {% linkable_title Sensor %} -The `ads` sensor platform allows reading the value of a numeric variable on your ADS device. The variable can be of type *INT*, *UINT* or *BYTE*. +The `ads` sensor platform allows reading the value of a numeric variable on your ADS device. The variable can be of type *INT*, *UINT*, *BYTE*, *DINT* or *UDINT*. To use your ADS device, you first have to set up your [ADS hub](/components/ads/) and then add the following to your `configuration.yaml` file: @@ -158,7 +158,7 @@ adsvar: type: string adstype: required: false - description: The datatype of the ADS variable, possible values are int, uint, byte. + description: The datatype of the ADS variable, possible values are int, uint, byte, dint, udint. default: int type: string name: @@ -197,4 +197,4 @@ name: required: false description: An identifier for the switch in the frontend. type: string -{% endconfiguration %} \ No newline at end of file +{% endconfiguration %}