Remote Operations Forum
Support forum for Schneider Electric SCADA systems, radios and RTUs. From commissioning integration devices and software, to enhancing existing installations or troubleshooting.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-16 11:47 AM
I am trying to create a function block to be able to write the Object Parameters in x70 (eg. H1_limit)
The problem I am running into is I bring the Object name in as string and then try to add what value I want to read and join them together. I get an error because VALUE is a real and TagVal is a string. Is there a way to have the ST recognize this tagVal as an object and read the Value I am trying to get. Below is the ST.
Thanks
if TAG <>'' Then (*Tag = PIO_SP474_AI1*)
tagVal := (CONCAT_STR(tag,'.H1_LIMIT'));
VALUE := tagVal;
else
Value := -999.9;
end_if;
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-18 02:36 PM . Last Modified: 2023-07-08 06:49 PM
Hi,
I've just recently started using the RemoteConnect software, so might be barking up the wrong tree, but from what I can see, if you need to specify the Object name via a string, then you might need to use the "OBJ_NameToID" function to get the ID, then you can use the returned ID into the "OBJ_WriteField" function to update the attribute of interest.
Good luck,
vds
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.