Author Topic: Previous version S7 1200 Adv HMI ReadAny problem  (Read 2162 times)

ShriramPendse

  • Newbie
  • *
  • Posts: 24
  • " AUTOMATION " simplified .
    • View Profile
Previous version S7 1200 Adv HMI ReadAny problem
« on: April 09, 2014, 04:28:48 AM »
Hi,
This previous version can display PLC MW variables read over TCP port from S7 1200 PLC . Writing thru Basic Label is also OK .
But I am unable to get any data by using Readany function
       Dim addr As String = "MW12"
        mw = SiemensPLCsComm1.ReadAny(addr, 2)
        TextBox1.Text = mw(0)
        TextBox2.Text = mw(1)
I always get 0 values even though these register values are correctly displyed on ADV HMI controls like digital panel meter .
I tried various variations of address and number of registers combination , No Joy .
No errors are indicated . When I read buffer returned by the SiemensPLCsComm1 function I can debug that these values are received in the BUFFER . But somehow these dont get populated in MW string array.
Any sugestion what is wrong with above code ? 

Thanks,
Shriram Pendse