GETSYSINFO
Function - Returns system information.
Inputs
Input |
Data type |
Description |
INFO |
DINT |
Identifier of the requested information. |
Outputs
Output |
Data type |
Description |
Q |
DINT |
Value of the requested information or 0 if error. |
Remarks
The INFO parameter can be one of the following predefined values:
Value |
Description |
_SYSINFO_TRIGGER_MICROS |
Programmed cycle time in micro-seconds. |
_SYSINFO_TRIGGER_MS |
Programmed cycle time in milliseconds. |
_SYSINFO_CYCLETIME_MICROS |
Duration of the previous cycle in micro-seconds. |
_SYSINFO_CYCLETIME_MS |
Duration of the previous cycle in milliseconds. |
_SYSINFO_CYCLEMAX_MICROS |
Maximum detected cycle time in micro-seconds. |
_SYSINFO_CYCLEMAX_MS |
Maximum detected cycle time in milliseconds. |
_SYSINFO_CYCLESTAMP_MS |
Time stamp of the current cycle in milliseconds (OEM dependent). |
_SYSINFO_CYCLEOVERFLOWS |
Number of detected cycle time overflows. |
_SYSINFO_CYCLECOUNT |
Counter of cycles. |
_SYSINFO_APPVERSION |
Version number of the application. |
_SYSINFO_APPSTAMP |
Compiling date stamp of the application. |
_SYSINFO_CODECRC |
CRC of the application code. |
_SYSINFO_DATACRC |
CRC of the application symbols. |
_SYSINFO_FREEHEAP |
Available space in memory heap (bytes) |
_SYSINFO_DBSIZE |
Space used in RAM (bytes) |
_SYSINFO_ELAPSED |
Seconds elapsed since startup |
_SYSINFO_CHANGE_CYCLE |
Indicates a cycle just after an Online Change |
_SYSINFO_WARMSTART |
Non zero if RETAIN variables were loaded at the last start |
_SYSINFO_NBLOCKED |
Number of locked variables |
_SYSINFO_NBBREAKPOINTS |
Number of installed breakpoints |
_SYSINFO_BIGENDIAN |
Non zero if the Runtime Service processor is big endian |
_SYSINFO_DEMOAPP |
Non zero if the application was compiled in DEMO mode |
_SYSINFO_SIMULATION |
Returns 0 in case of a normal Runtime Service. Returns 1 in case of a simulator. |
_SYSINFO_WSTRINGOVERFLOW |
Non zero if the result last WSTRING operation has exeeded 32000 characters and thus was truncated. |
In LD language, the operation is executed only if the input rung (EN) is TRUE. The output rung (ENO) keeps the same value as the input rung.
ST Language
Q := GETSYSINFO (INFO);
FBD Language
LD Language
The function is executed only if EN is TRUE.
ENO keeps the same value as EN.
GETSYSINFO |
IEC 61131-3 Automation platform > Programming - Reference guide > Advanced operations > GETSYSINFO |
Created with the Personal Edition of HelpNDoc: Easily create EBooks