Upload Data Format; Time/Date Handling - GSE 60 SERIES Technical Reference Manual

Programmable process controllers
Table of Contents

Advertisement

After the data for all of the stored rows has been sent, the end of the
transmission is indicated by the transmission of a row with only
"ENDofDB" (without quotation marks).
The units for weight data is strictly in default weight units, as defined in
the setup mode, P150, of the controller. However, the units
descriptors, such as "lb" or "kg," are not sent along with the data.
All of the transmitted data consists of ASCII characters, that can be
printed as text, but no graphics.
Most parameters are downloaded just as they would be viewed. However,
the time/date is handled differently.
The data sent for the time/date parameter is the ASCII representation of
the numeric value of the number of seconds elapsed since midnight on
January 1, 1970. This is the simplest form to allow calculations on
time/date to be performed in other spreadsheet and database programs.
Some programs might require some manipulation of this value so the
time/date data is usable.
For instance, Lotus 1-2-3 requires the time/date data as the number of
days elapsed since the year 1900, with the hours, minutes, and seconds
represented as the fractional portion of that value. To achieve this format,
the numeric time value received from the controller must be divided by
86400 (number of seconds per day) and then add to 25569 (number of
days between the years 1900 and 1970). This value can then be displayed
in one of the six display formats depending on the requirements. Format 1
for instance, would produce the date in the form "02-Apr-92" while format 6
would display the time in the "12:05:47 pm" format.
A sample of a database download file is shown below.
"12-345-67","Transistor",0,0,702059963
"32-20-3929","Capacitor",0,0,702029168
"398-002","Resistor",0,0,702029188
"939-9-321","Diode",0,0,702029210
"24-3456-78","Microprocessor",0,0,702039779
U
D
F
PLOAD
ATA
The same rules for the format of a downloaded file apply to a file being
uploaded into the controller database. However, the alpha parameters are
not required to be enclosed in double quotation marks (" ").
Before you can load any database into a 60 Series database, the setup
must be established to match that of the file. If the uploaded file has more
columns than the database setup in the controller, the additional columns
being uploaded will be ignored. If the uploaded file has fewer columns,
then the additional columns will be cleared out.
T
/D
H
IME
ATE
ANDLING
When parameter 11, the current time/date parameter, is selected to be a
column in a database, then whenever a row is created or updated, the
current time/date is copied into that row from parameter 11. However,
when a recall is performed, the recalled time/date is not copied to
parameter 11 as this would disrupt the current time/date of the controller.
ORMAT
60 Series Technical Reference Manual
Database 11-21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents