1/18/2008 11:18 AM | |
Posts: 1776 Rating:
|
Hi, http://support.automation.siemens.com/WW/view/en/26729255 |
2/4/2008 2:01 PM | |
Joined: 12/8/2006 Last visit: 2/27/2020 Posts: 170 Rating:
|
hi soepie, =============================== (1) "pragma ...." =============================== more information about "pragma" you will find in http://support.automation.siemens.com/WW/view/en/8301801 or in the wincc information system "WinCC" Information System > Working with WinCC > ANSI-C for Creating Functions and Actions > Use of DLLs in Functions and Actions" The function "GetLocalTime" is a windows system function. This function is stored in the "kernel32 .dll". #pragma code ("kernel32.dll"); VOID GetLocalTime (SYSTEMTIME *lpst); //declaration #pragma code (); - "VOID"//type of return value ==> function does not returns a value - "GetLocalTime"//name of function - "SYSTEMTIME *" //data type of the (first) parameter //pointer to a tag of SYSTEMTIME; //(the character "*" indicates a pointer) //==> the function "GetLocalTime"stores the local time at this adress - "lpst" //name of the parameter, (user-defined) =============================== (2) data type "SYSTEMTIME" =============================== differentdata types: - sql data type "datetime" - C-Datatype "SYSTEMTIME" and - C-string-datatype http://support.automation.siemens.com/WW/view/en/22115636 |
2/4/2008 3:28 PM | |
Posts: 13 Rating:
|
Thanks ateam, I'll dig into it when I find the time for it. |
Follow us on