AdsEndpoint

symbolName (string, required)

The name of the variable to read/write/subscribe

Example: "Main.byByte[4]"

interval (integer)

Only for subscribe: The time interval between subsequent reads, in milliseconds. The value is received cyclically from the PLC at this interval. The smallest possible theoretical value is the cycle time of the PLC. If the interval is set to zero, the value is read at every PLC cycle. However, when setting the time interval to a small value, the MQTT broker of the Connectware might not be able to handle the resulting high data rate and data loss might occur, hence small time intervals must be handled with care. (The maximum value of 429 seconds is caused by the data type limit of this field within the ADS protocol.)

Default: 1000

Additional restrictions:

  • Maximum: 429496

onChange (boolean)

Only for subscribe: How subscriptions should report the variable values. If true, a value is sent only when it changed. If false, the value is sent on each time interval.

Default: false

dataType (string, enum)

Convert the ADS value to this specified type. Types are available in Big Endian (BE) variants or Little Endian (LE).

This element must be one of the following enum values:

  • raw

  • string

  • boolean

  • doubleBE

  • doubleLE

  • floatBE

  • floatLE

  • int8

  • int16BE

  • int16LE

  • int32BE

  • int32LE

  • bigInt64BE

  • bigInt64LE

  • uint16BE

  • uint16LE

  • uint32BE

  • uint32LE

  • bigUInt64BE

  • bigUInt64LE

Default: "raw"

Examples: "floatLE", "string"

readSize (integer)

Only needed for read variables of type string or raw: The number of bytes to read.

Default: 1

Additional restrictions:

  • Minimum: 1

Last updated

Logo

© Copyright 2024, Cybus GmbH