Sei sulla pagina 1di 3

New functions of Kinco HMIware V2.

2build140805
1 Component Improvement
1.1 Page display function for Trig Report
In the new version, Page display function is added for Data Report Display-Trig Report. Users could
set Number of items per page.

Then total page number will be written into TotalPage Addr.

Users could change page numbers to check sampled data.

Page display Setting


Detailed descriptions of page display
Number of items per page

Maximum items displayed in one page

TotalPage Addr

Total page number is calculated according to inquiry time: total


page=number of total items/Number of items per page

PageNumber Addr

Users could inquiry by page numberRange:0~(total page-1)0


indicates the first page.

Offline simulation:

Change page number for paging display.

2 New functions
2.1 Access Sql database interface functions via macrocode
The new interface functions for accessing Sql database are added in macrocode. By these new
functions, users could flexibly modify data of the sampled database, and inquire sampled data for
complex conditional judgement.
Interface functions are as follows:
SqlExe(file, cmd)
Execute Sql instructionfile indicates DB file name; cmd indicates character strings for executing
command.
SqlSelect(file, cmd, pResult, nRow, nCol)
Inquire DB databasefile indicates DB file name; cmd indicates character strings for executing
command; pResult indicates buffer area for inquired data(system allocated); nRow indicates number of
output lines; nCol indicates numbers of output columns.
SqlFree(buf)
Release system allocated inquiry buffer area.
1.

Returned values of SqlExe and SqlSelect: 1 indicates success, 0 indicates fail.

2.

Returned value of SqlSelect is saved in character string array pointed by *pResult,


arranging in rows*nCol items per row, *nRow rows in total. The first row is for titles, so
the total character strings equal to*nCol*(*nRow+1).

3.

The inquiry buffer area should be released by calling SqlFree(*pResult) otherwise it


will cause memory leak(memory leak occurs if system crash or just exit inquiry
operation before the release
maintain the buffer by GUI.

the inquiry buffer area). Later RD will consider

2.2 New added system reserved registers


Address

Description

W/R

LW.B9512.0

Set to ON to support online added user name in Unicode

W/R

LB9400

Data sampling special values displayed empty. Set ON to display empty,

W/R

when data sampling the special values which is 0xFFFF or 0xFFFFFFFF

Potrebbero piacerti anche