10-31-2017 08:42 AM
Dear All
i have project in which i monitor shared variables of Siemens PLC.
i stuck on to count memory address from PLC.
i want to count any particular address say "M0.5" that how many time used in whole project.
is it possible to count that from labview and display count value as a integer on front panel of my labview project?
Please help
Thanks,
Asif
11-01-2017 10:30 AM - edited 11-01-2017 10:30 AM
Hi Asif,
Just to clarify, are you asking if you can count the number of times a value is read from a particular memory address while running your project? Or are you asking how you can count the number of explicit references that have been defined for a specific memory address in your project?
Additionally, what is the specific model of your PLC and how are you communicating with it?
Best,
11-02-2017 07:36 AM
You might be able to count the instances of a specific shared variable with scripting. It wouldn't be easy. And if you succeed, it will not work in an executable.
11-03-2017 10:10 PM
any idea how to write script?
Thanks
11-04-2017 02:44 AM
Do you know how to use Google search? Just search for "VI scripting" or "LabVIEW scripting" keywords.
One hit:
http://zone.ni.com/reference/en-XX/help/371361M-01/lvconcepts/scripting_property_method/