Ask our Experts
Didn't find what you are looking for? Ask our experts!
New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).
This forum is for engineers working EcoStruxure Building Operation, wanting to leverage the SEAL application to improve the efficiency in the engineering process.
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-07-25 08:50 AM
It is very cumbersome to change point types from voltage to current or from current to voltage.
Given that Prometheus has the bizarre tendency to create all non temperature Analog Inputs as current and all Analog outputs as voltage, it would be handy to change that in Seal.
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: 2025-10-20 08:37 AM
Ah ha!!! Thank you @StefanLundin & @Benji !!!!!!
I was trying to use IAdvanced.SetUnit not the correct IAdvanced.ConfigureUnit
See attached 0.1.4 version which now restores units. This also will update the electrical range to 0-5V or 4-20mA.
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: 2025-08-05 05:35 AM
This would definitely be possible to achieve with a SEAL Script.
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: 2025-08-06 06:05 AM
Would I be able to twist your arm into tackling such an endeavor?😀
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: 2025-08-07 01:32 AM
As you're actually changing the object type, the operation (under the hood) includes deleting the object, creating the new object, setting the properties and restoring the bindings... so not that simple, but of course doable.
@APA have you come across this before?
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.
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: 2025-10-19 02:15 PM
I took this script and updated it a bit! Made it such that you can select to convert to either Voltage/Current/Temperature for either IO Modules or for MP/RP Controllers.
Two issues I haven't fixed yet:
1) The scaling isn't auto-updated, so that has to be manually done.
2) I cannot for the life of me figure out how to grab the unit of the value and then set it back to that. This tool just sets it to Volts/mA/°C.
I've tried the "await sdkClient.IAdvanced.GetUnit( {propertyPath: path2 + "/Value"} );" and "await sdkClient.IConfigureProperty.SetUnit({propertyPath : path2, unit : desiredUnit})".
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: 2025-10-19 11:57 PM
@Adam_Tri-M IAdvanced.GetUnit() is the right method, but units are a bit... special in EBO.
A unit is not a text, but an object like this:
var millimeterUnit = PrefixedUnit.Create(SIUnitPrefix.Milli, Unit.Length_m);
I'll check the script, but maybe @APA , @JohnnyCarlsen or @Jim.T have an idea
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: 2025-10-20 12:30 AM
I got the prefix and unit out like this:
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: 2025-10-20 05:51 AM
Getting there! I know get the unit.
Still can't figure out the creation/setting the unit.
No matter what i try, the "PrefixedUnit.Create..." command just returns [object Object].
async function setUnitOnValue(path2,origUnitprefix,origUnit) {
const desiredUnit = PrefixedUnit.Create({SIUnitPrefix: "None", Unit: "Temperature_F"});
sealScript.log(`${desiredUnit}`)
const unitSettoValueResult = await sdkClient.IConfigureProperty.SetUnit({
propertyPath : path2,
unit : desiredUnit
})
if(unitSettoValueResult.failed){
sealScript.alert(`Could not set unit on Value`);
} else {
sealScript.alert(`Unit Set Successfully`);
}
}
Tried passing the units I got from the original object, but that didn't work either. Guessing I don't have the PrefixedUnit.Create formatted correctly.
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: 2025-10-20 08:06 AM . Last Modified: 2025-10-20 08:25 AM
Hi @Adam_Tri-M
If you're still stuck on creating or setting the unit, it might be worth checking out our DemoScripts pack. It's a collection of example scripts designed to support script developers with various tasks in SEAL Script. One of the demos is Demo-Write Value with Unit, which could be relevant for your use case.
The DemoScripts aim to provide useful guidance on how to approach different scripting scenarios, and might help point you in the right direction for specific tasks.
You can download the full set from this post:
https://community.se.com/t5/EcoStruxure-SEAL-Forum/SEAL-Script-Editor-release-1-15/td-p/511553
As defined in the Demo Script the correct call would be : PrefixedUnit.Create("None", "Temperature_F");
The PrefixedUnit.Create function expects either:
unitPrefix and unit, like PrefixedUnit.Create("Kilo", "Power_W")PrefixedUnit.Create("Power_W")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: 2025-10-20 08:37 AM
Ah ha!!! Thank you @StefanLundin & @Benji !!!!!!
I was trying to use IAdvanced.SetUnit not the correct IAdvanced.ConfigureUnit
See attached 0.1.4 version which now restores units. This also will update the electrical range to 0-5V or 4-20mA.
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: 2025-10-20 01:30 PM
Nice! Thanks a ton for sharing this with the Community!
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
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.