Hi, not sure if this is the right place to ask this question, but here goes anyway. :)
Is there a way to write Status (System Didgtal State) values using BatchFL (BatchFL mode) ?
what is the type of the "Status" value under the transmission from data source to PI server please? Is that string, integer or any other please? If it is a string, please create one PI point in the PI server using string type to record the value; if it is integer, and you still need to see a string in the record, please using PI Digital State to translate the integer value to a string.
PI UFL is a interface, it could be used to transfer the standard type value (string, integer, float, etc...).
I strong suggest that you could talk this with OSIsoft Tech Support team, as they will take all the question of PI interfaces.
They are floating point tags and we would like to write the System Status "Shutdown" instead of a value when the equipment is offline.
What PI Interface or other source is servicing those tags?
Does "equipment" refer to the underlying data source or to the interface or other data source?
Is the source possibly buffered using PI Buffer Subsystem?
I think I will open up a ticket for this.
Thank you for time.
For sure you are welcome opening a ticket at OSIsoft Technical Support but there is a good reasons, I was asking those questions.
Many PI Interfaces are capable writing a correspondent digital state in case the Interface or the Data source is shut down.
It's not clear to me from your inquiry if BatchFL is generally servicing those tags or only intended being used to write the "shutdown" events you were asking for.
If PI Buffer Subsystem is used, points become logged because PI Buffer Subsystem performs compression and sends events marked compressed to the PI Server / Collective members.
BatchFL (PI Interface for Batch File) is in maintenance status. It's supposed to be replaced by PI Interface for Universal File and Stream Loading (UFL) that is capable for BatchFL and additional functionality in the current release (22.214.171.124).
PI Interface for Batch File supports writing Digital States to points of type Digital. The batch file must contain a string representing the state and receiving tags must have the appropriate Digital State set assigned. The /stopstat switch can be used to write a state from SYSTEM digital state set to assigned tags in case the interface is stopped i.e. /stopstat=”Intf Shut”
We do use the buffering subsystem since it's a Pi collective environment.
The context is that we have electrolysis Pots to make aluminium with hundreds of measurements per Pots. Measurements are written into Pi at different intervals, using text files. Now, a Pot can be offline for days and we would like _some_ of those those tags to have a value of system dig state "Shutdown" for all the duration that the Pot is offline and the other tags still receiving data.
Here is an example of the input file.
We tried something like this.
But none of this worked.
I know how to do it using the StoreInPi function, but BatchFL mode does not seam to work the same way.
According to my understanding what you are trying to achieve should work with PI Interface for Batch File. Please search the manual for "Field Four – Optional".
If this doesn't help, please contact the colleagues from Technical Support for troubleshooting.
Here is how tech support worded it.
"...just attach the status code at the very end.
you need to set a time when the status should be written the value will be ignored when a status is at the end of the input line the status is entered positive (because of compatibility to the original BatchFL interface)..."
Thanks to all of you for your time.
Good to see your issue is resolved. Thank you for sharing the solution with the community.
Retrieving data ...