1 Reply Latest reply on Jun 8, 2018 5:36 PM by jspann

    UFL StoreInPI is not converting SECONDS_GMT to timestamp

    Guilherme Ferreira

      Hi folks!

       

      I am trying to configure a UFL Interface to read data from a csv file with timestamp in SECONDS_GMT format.

      However I only get "[Error] Set PI time, argument out of range."

       

      I have notice in the log that timestamp is not being converted.

      "Write to PI : SINUSOID : time = 1528340400., value = 13., status = 0, flags = ."

       

      However, when I print the timestamp prior to sending to PI, it is correctly converted.

      "[Print] 07-Jun-2018 03:00:00.0000."

       

      My ini file looks like:

           [FIELD]

           Field(1).NAME="Timestamp"

           Field(1).TYPE="DateTime"

           Field(1).FORMAT="SECONDS_GMT"

           ...

           ...

           PRINT(TAG)

           PRINT(Timestamp)

           PRINT(Valor)

           PRINT(Status)

       

           StoreInPI(TAG, ,Timestamp,Valor,Status, )

       

      And the log is:

       

           07-Jun-2018 19:18:20 [PI_UFL] [Info] [Print] SINUSOID.

           07-Jun-2018 19:18:20 [PI_UFL] [Info] [Print] 07-Jun-2018 03:00:00.0000.

           07-Jun-2018 19:18:20 [PI_UFL] [Info] [Print] 13..

           07-Jun-2018 19:18:20 [PI_UFL] [Info] [Print] 0.

           07-Jun-2018 19:18:20 [PI_UFL] [Info] Write to PI : SINUSOID : time = 1528340400., value = 13., status = 0, flags = .

           07-Jun-2018 19:18:20 [PI_UFL] [Line 63] [StoreInPI] [Error] Set PI time, argument out of range.

       

      Am I missing any configuration?

       

      Regards