GetSysInfo
Function
A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Get system information.
Inputs
|
Input |
Data Type |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
INFO |
DINT |
N/A |
N/A |
N/A |
Identifier of the requested information. |
Outputs
|
Output |
Data Type |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Q |
DINT |
|
|
Value of the requested information or 0 (zero) if error. |
Remarks
The INFO parameter can be one of these predefined values:
|
Value |
Definition |
|---|---|
|
_SYSINFO_APPSTAMP |
Compiling date stamp of the application. |
|
_SYSINFO_BIGENDIAN |
Non zero if the runtime |
|
_SYSINFO_CHANGE_CYCLE |
Indicates a cycle just after an Online Change |
|
_SYSINFO_CODECRC |
|
|
_SYSINFO_CYCLECOUNT |
Counter of cycles. |
|
_SYSINFO_CYCLEMAX_MICROS |
Maximum detected cycle time in micro-seconds. |
|
_SYSINFO_CYCLEMAX_MS |
Maximum detected cycle time in milliseconds. |
|
_SYSINFO_CYCLEOVERFLOWS |
Number of detected cycle time overflows. |
|
_SYSINFO_CYCLESTAMP_MS |
Timestamp |
|
_SYSINFO_CYCLETIME_MICROS |
Duration of the previous cycle in micro-seconds. |
|
_SYSINFO_CYCLETIME_MS |
Duration of the previous cycle in milliseconds. |
|
_SYSINFO_DATACRC |
CRC of the application symbols. |
|
_SYSINFO_DBSIZE |
Space used in RAM (bytes). |
|
_SYSINFO_DEMOAPP |
Non zero if the application was compiled in DEMO mode. |
|
_SYSINFO_ELAPSED |
Seconds elapsed since startup. |
|
_SYSINFO_FREEHEAP |
Available space in memory heap (bytes). |
|
_SYSINFO_NBBREAKPOINTS |
Number of installed breakpoints. |
|
_SYSINFO_NBLOCKED |
Number of locked variables. |
|
_SYSINFO_TRIGGER_MICROS |
Programmed cycle time in micro-seconds. |
|
_SYSINFO_TRIGGER_MS |
Programmed cycle time in milliseconds. |
|
_SYSINFO_WARMSTART |
Non zero if RETAIN variables were loaded at the last start. |
FBD Language
FFLD Language
- In the FFLD 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.
- The function is executed only if EN is TRUE.
- ENO keeps the same value as EN.
IL Language
- In the IL
"Instruction list"
This is a low-level language and resembles assembly language, the input must be loaded in the current result before calling the function.
Op1: LD"Ladder diagram" Ladder logic is a method of drawing electrical logic schematics. It is now a very popular graphical language for programming Programmable Logic Controllers (PLCs). It was originally invented to describe logic made from relays. The name is based on the observation that programs in this language resemble ladders, with two vertical "rails" and a series of horizontal "rungs" between them INFO
GETSYSINFO
ST Q
ST Language
Q := GETSYSINFO (INFO);





