03-17-2016 11:49 AM
Greetings,
I am using OPC to communicate my S7-300 PLC to Labview. As OPC Server I am using NI OPC. I have created the bounded variables in the Labview project and everything works fine with reading variables but when I tried to wirte in the PLC there is no action in the variables I am trying to reach.
For example, I am trying to write a boolean value to a %M tag as the picture described but I do not get any result.
I have to point out that there is a code running in the PLC, is there any conflict between the code already running in the PLC and the vi in Labview? Or is there any module or license I am missing to be able to write in the PLC?
Thanks for all your help.
03-23-2016
11:48 AM
- last edited on
01-02-2025
01:59 PM
by
Content Cleaner
Good morning jdruano
Are you using DCOM or DataSocket? There are some considerations to take when writing arrays and it could also have some problems when trying to write in general. You may find this information useful
Using the LabVIEW Network-Published Shared Variable and OPC With NI-DAQmx
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2CMCAY&l=en-US
Have you tried to run the VI when the PLC is not busy? This could help us to be sure that there is not a communication problem.
What is the status of the firewall?
I hope you find this information usefull, please check the questions I did, this could help us to know more about the problem.
Thank you!