Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

RemoteConnect Set Value from OBJ_WriteField

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.​

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • Remote Operations Forum
  • RemoteConnect Set Value from OBJ_WriteField
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Joel_Weder
Captain Joel_Weder Captain
75
BevanWeiss
Spock BevanWeiss
20
sbeadle
Kirk sbeadle Kirk
17
MartinChartrand
Captain MartinChartrand Captain
15
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to Remote Operations Forum
Solved
tyler.knaup
Crewman tyler.knaup Crewman
Crewman

Posted: ‎2024-06-14 05:15 AM

0 Likes
4
790
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-14 05:15 AM

RemoteConnect Set Value from OBJ_WriteField

Hello,

 

I was trying to set the .VALUE attribute of a RemoteConnect object using the OBJ_WriteField function. The help manual goes over the ATTRIB and DATATYPE fields for a system object, but it does not say that it works for a user defined object. Attempting to use the system fields results in a STATUS code of 5, or "Invalid attribute for the system function".

 

Is it possible to write to the .VALUE attribute through the code?

I am looking to use this to pull tagnames and default values from a CSV file to set the initial value of hundreds of tags when a default program is loaded.

Attachments
Labels
  • Labels:
  • RTU
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
Joel_Weder
Captain Joel_Weder Captain
Captain

Posted: ‎2024-06-20 11:16 AM

0 Likes
1
699
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-20 11:16 AM

I've tested this and I believe I can see your issue. You've specified a DATATYPE of 2, which is only for System Data. It does require the data type be INT as you used, but that type is really only for system data. I set up the logic the same as yours and got the same status code 5. 

 

I changed the DATATYPE to 4 and changed the input object to a DINT in RemoteConnect. After that it is now working properly.  Unless you actually want to work with system data objects, look in the "Attribute constants for analog objects" table in the OBJ_WriteField help.

 

You can write to ValueRaw as a DINT (115) or ValueEng as a REAL (116), or to any of the other attributes of a T_SPx70 object.

 

 

Joel Weder
Remote Operations Specialist
Schneider Electric

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 4
vdsvds
Ensign vdsvds
Ensign

Posted: ‎2024-06-17 02:07 PM

0 Likes
0
736
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-17 02:07 PM

Hi,

Did you consider using a structured text routine with direct value assignments? e.g.:

 

test_INT.VALUE := 1234;

test_INT2.VALUE := 5678;

Reply

Link copied. Please paste this link to share this article on your social media post.

tyler.knaup
Crewman tyler.knaup Crewman
Crewman

Posted: ‎2024-06-18 06:08 AM

0 Likes
0
722
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-18 06:08 AM

I was trying to avoid hard coding any variables or values, as a master spreadsheet with DNP Point names/numbers and initial values creates a configuration csv to load in the scadapack. I am able to read the csv file with initial value currently, but I cannot find a way to set that value directly.

Reply

Link copied. Please paste this link to share this article on your social media post.

Joel_Weder
Captain Joel_Weder Captain
Captain

Posted: ‎2024-06-20 11:16 AM

0 Likes
1
700
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-20 11:16 AM

I've tested this and I believe I can see your issue. You've specified a DATATYPE of 2, which is only for System Data. It does require the data type be INT as you used, but that type is really only for system data. I set up the logic the same as yours and got the same status code 5. 

 

I changed the DATATYPE to 4 and changed the input object to a DINT in RemoteConnect. After that it is now working properly.  Unless you actually want to work with system data objects, look in the "Attribute constants for analog objects" table in the OBJ_WriteField help.

 

You can write to ValueRaw as a DINT (115) or ValueEng as a REAL (116), or to any of the other attributes of a T_SPx70 object.

 

 

Joel Weder
Remote Operations Specialist
Schneider Electric
Reply

Link copied. Please paste this link to share this article on your social media post.

tyler.knaup
Crewman tyler.knaup Crewman
Crewman

Posted: ‎2024-06-20 12:54 PM

In response to Joel_Weder
0 Likes
0
690
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-20 12:54 PM

Thank you.

 

I saw that this is now fully supported, and slightly better documented in RemoteConnect R3.0.5 that was just released, and am able to find the correct enumerations of the ATTRIB and DATATYPE parameters now.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of