Description
Returns the CPU status (running/stopped).
Declaration
int GetPlcStatus(int *Status);
Parameters
|
|
Type |
Dir. |
|
|
Status |
Pointer to Integer |
In |
Address of Status variable. |
Status values
|
|
Value |
|
|
S7CpuStatusUnknown |
0x00 |
The CPU status is unknown. |
|
S7CpuStatusRun |
0x08 |
The CPU is running. |
|
S7CpuStatusStop |
0x04 |
The CPU is stopped. |
Return value
· 0 : The function was accomplished with no errors.
· Other values : see the Errors Code List.