Hi Steve,
Thank you so much for your helpful reply. Finally I got the problem, it was between the OPC and PLC. Now I am able to read and update the tag from MII through PCoQuery.
But I am facing a new problem when I am trying to run the same query from BLS.
Suppose I have two tags, tag1 (data type Boolean) and tag2 (data type integer). In MII PCoQuery I have added those two tags in “Selected Tags” and passing value (Though there is a bug, we can’t directly write value in “Value” field, it takes only one character and then it goes on read only mode. But I copied the value from notepad and pasted it there). Then I executed the query and it was successfully and updated those value in PLC tag. Now I put [Param.1] and [Param.2] in value fields and used that PCoQuery in BLS. Form BLS I mapped some value for [Param.1] and [Param.2] (Like true for [Param.1] where it is Boolean and 100 for [Param.2] as it is integer). When I am executing the BLS it is giving me the error like – “Unable to convert supplied value to required type”.
Is there anything I am missing? Could you please provide any suggestion.
Thanks in Advance
Chandan