ADS

ads( host, portNo, indexGroup, indexOffset, len)
ads( host, portNo, indexGroup, indexOffset, len, data)
adsfloat( host, portNo, indexGroup, indexOffset, 4)
adsfloat( host, portNo, indexGroup, indexOffset, 4, xdata)
adsdouble( host, portNo, indexGroup, indexOffset, 8)
adsdouble( host, portNo, indexGroup, indexOffset, 8, xdata)

These functions are an implementation of the Beckhoff ADS protocol. Chose portNo 801 for 'SPS Laufzeitsystem 1'.

Additional information about configurations can be found in the corresponding section of the Perl-Spectra manual.

Host is supplied using the dot notation, e.g.: 131.169.66.123. e.g.:
* = ads( "131.169.66.123", 801, 0xf020, 0x35, 4)
reads 4 bytes from index group 0xf020, offset 0x35.