Default system variables

The default system variables for
Micro800
controllers are available in the global variables grid.
Default system variables
Variable Name
Type
Read/Write
Description
__SYSVA_ABORT_CYCLE
BOOL
Read
Canceling cycle.
__SYSVA_CCEXEC
BOOL
Read/Write
Execute one cycle when the application is in cycle-to-cycle mode.
__SYSVA_CYCLECNT
DINT
Read
Cycle counter.
__SYSVA_CYCLEDATE
TIME
Read
Time stamp of the beginning of the cycle in milliseconds.
__SYSVA_FIRST_SCAN
BOOL
Read
First scan bit. True only on the first scan after that go to run.
__SYSVA_KVBCERR
BOOL
Read/Write
Kernel variable binding consuming error or consumption error.
__SYSA_KVBPERR
BOOL
Read
Kernel variable binding producing error or production error.
__SYSVA_MAJ_ERR_HALT
BOOL
Read
Fault indicator.
__SYSVA_POWERUP_BIT
BOOL
Read
Power up bit.
True only in the first scan after a power-up or running a new ladder for the first time.
__SYSVA_PROJ_INCOMPLETE
UDINT
Read
Project incomplete.
BIT 0:
  • Set when the Run Mode Change process starts.
  • Cleared once the Run Mode Change is written permanently to the controller after completion of Accept Changes or Undo Changes.
BIT 1:
  • Set if an error occurs while saving the changes to flash or an integrity check fails during Run Mode Change.
  • Cleared on the next successful Run Mode Change.
__SYSVA_REMOTE
BOOL
Read
Indicates the switch position of the remote switch.
__SYSVA_RESMODE
SINT
Read
Resource execution mode. Possible modes are:
-1: Fatal error.
-2: Resource is stopped in stepping mode after exception.
-3: Resource is stopped in stepping mode after division by zero exception.
-4: Resource is stopped in stepping mode after bound check exception.
-5: Maximum negative value for stepping.
1: Stored resource available.
2: Ready to run.
3: Run in real time.
4: Run in cycle by cycle.
5: Run with breakpoint encountered.
7: Stopped in stepping mode.
8:
Micro800
programming mode.
9:
Micro800
suspend mode.
10:
Micro800
download mode - no program is loaded.
__SYSVA_RESNAME
STRING
Read
System variable showing controller model name. For example,
Micro810
. (max length = 255).
__SYSVA_SCANCNT
DINT
Read
Input scan counter.
__SYSVA_SUSPEND_ID
UINT
Read
Suspend ID for SUS instruction block.
_SYSVA_TCYCURRENT
TIME
Read
Current cycle time.
Current cycle time and maximum cycle time fluctuate due to variabilities in the project such as user program and communications.
__SYSVA_TCYCYCTIME
TIME
Read/Write
Programmed cycle time.
Programmed cycle time is implemented in a resolution of 10 ms. If the entered value is not a multiple of 10, it will be rounded up to the next multiple of 10.
__SYSVA_TCYMAXIMUM
TIME
Read
Maximum cycle time since last start.
Current cycle time and maximum cycle time fluctuate due to variabilities in the project, such as user program and communications.
__SYSVA_TCYOVERFLOW
DINT
Read
Number of cycle overflows.
Micro810
system variable values cannot be retained during a power down. To save system variable values, they must be copied to a retained user variable.
The value of _SYSVA_TCYOVERFLOW increases when (SYSVA_TCYCYCTIME)-(actual scan time) is smaller than or equals 10 ms.
__SYSVA_TCYWDG
UDINT
Read/Write
Watchdog timeout.
User Program watchdog timeout don't configured more than 2.55 seconds.
__SYSVA_USER_DATA_LOST
BOOL
Read/Write
User data lost.
True when Retentive User Data is cleared. Remains True until cleared by user or on a new User Program download. User Data Lost is TRUE when the controller powers up with certain Hard Faults and is only able to restore the User Program but not the Retentive User Data.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal