Read last good valid value with issuing new query by IOServer on MODNET protocol

Dear All,

I have a devices which communicate on MODNET protocol. I am generating report with lots of tags using default report-device feature. So i do not want to read (do not want to query all tags as all devices are on serial) all tags when i generate report. Means i want data which is available last.

Is there any option for this ?

I tried TagName.V , Tagname.Valid, Tagname.Valid.V etc but in every case IOServer is polling to serial device.

Parents
  • If you have your function myTagSub() that will perform the subscription and the myTagUnSub() for the unsubscription you will need to define two reports
    1) RepSub (5 mins before the call of your reports ). In the report template you will define:
    {cicode}
    myTagSub()
    {end}
    2) RepUNSub (5 mins after the call of your report). In the report template you will define:
    {cicode}
    myTagUnSub()
    {end}

    The calls and the timing maybe adjusted accordingly to your main report.
    You didn't define it so not sure if this is a periodical report or you trigger it differently.
    It maybe good to open the IOserver.syslog to check if you have any bad communication/any error with the Modbus device to analyze the possibility to schedule the IOdevice and make sure that the communication is more stable considering the serial limitation.
Reply
  • If you have your function myTagSub() that will perform the subscription and the myTagUnSub() for the unsubscription you will need to define two reports
    1) RepSub (5 mins before the call of your reports ). In the report template you will define:
    {cicode}
    myTagSub()
    {end}
    2) RepUNSub (5 mins after the call of your report). In the report template you will define:
    {cicode}
    myTagUnSub()
    {end}

    The calls and the timing maybe adjusted accordingly to your main report.
    You didn't define it so not sure if this is a periodical report or you trigger it differently.
    It maybe good to open the IOserver.syslog to check if you have any bad communication/any error with the Modbus device to analyze the possibility to schedule the IOdevice and make sure that the communication is more stable considering the serial limitation.
Children
No Data