9 Replies Latest reply on Mar 21, 2013 4:29 PM by Gregor

    Writing System Didgtal State using PI UFL in BatchFL mode.

    Valtor

      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) ?

       

      Thanks,

       

      Patrick

        • Re: Writing System Didgtal State using PI UFL in BatchFL mode.
          xwang

          Hi Ptrick,

           

          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.

            • Re: Writing System Didgtal State using PI UFL in BatchFL mode.
              Valtor

              They are floating point tags and we would like to write the System Status "Shutdown" instead of a value when the equipment is offline.

                • Re: Writing System Didgtal State using PI UFL in BatchFL mode.

                  Hello Patrick,

                   

                  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?

                    • Re: Writing System Didgtal State using PI UFL in BatchFL mode.
                      Valtor

                      I think I will open up a ticket for this.

                       

                      Thank you for time.

                       

                      Patrick

                        • Re: Writing System Didgtal State using PI UFL in BatchFL mode.

                          Hello Patrick,

                           

                          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 (3.2.13.17).

                           

                          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”  

                            • Re: Writing System Didgtal State using PI UFL in BatchFL mode.
                              Valtor

                              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.

                               

                              INC:PTRM:LA:A211:LPDH.AE_Last_AE_MaxVoltage.DAY,19-Mar-2013 00:00:00.000,19.6616

                               

                              INC:PTRM:LA:A211:LPDH.AE_LowerThresholdCtr.DAY,19-Mar-2013 00:00:00.000,0

                               

                              INC:PTRM:LA:A211:LPDH.AE_UpperThresholdCtr.DAY,19-Mar-2013 00:00:00.000,0

                               

                              INC:PTRM:LA:A211:LPDH.Fed_Num_Line_Breaks.DAY,19-Mar-2013 00:00:00.000,3

                               

                              We tried something like this.

                               

                              INC:PTRM:LA:A211:LPDH.AE_Last_AE_MaxVoltage.DAY,19-Mar-2013 00:00:00.000,Shutdown

                               

                              INC:PTRM:LA:A211:LPDH.AE_Last_AE_MaxVoltage.DAY,19-Mar-2013 00:00:00.000,"Shutdown"

                               

                              INC:PTRM:LA:A211:LPDH.AE_Last_AE_MaxVoltage.DAY,19-Mar-2013 00:00:00.000,'Shutdown'

                               

                              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.

                               

                              Thanks,

                               

                              Patrick