Example: ReadLong

Here is an example for ADS I/O. The following piece of code can be used as a virtual counter.

if( $method =~ /reset/i)
{
  return 1;
}

if( $method =~ /read/i)
{
  return adsRead( "131.169.221.171", 801, 0xf020, 0x19, 4);
}