User guide

27
VTB USER GUIDE
6.7 System Variables
Variables of type System are variables already defined by operative system, therefore we must not to declare them but
they can be used as commen variables. This is the list of the SYSTEM VARIABLES available. There are more system
variables but reserved to the system.
NAME
TYPE
R/W
DESCRIPTION
_SYSTEM_PXC
LONG
R/W
They are used in systems with NGM13 and contain . Contengono the double value of
the number of steps generated by the four axis step controller.
_SYSTEM_PYC
LONG
R/W
_SYSTEM_PZC
LONG
R/W
_SYSTEM_PAC
LONG
R/W
_SYSTEM_ACT_PAGE
INT
R
It contains the page number currently loaded/displayed.
_SYSTEM_OLD_PAGE
INT
R
It contains the page number previously loaded/displayed.
_SYSTEM_STRING(128)
CHAR
R
Array of 128 elements containing the string read by the function Get_TabStr(…..)
_SYSTEM_LINGUA
CHAR
R/W
It contains the number of LANGUAGE currently used by application. It is a number from
0 to 127 which select the messages from the relative table.
_SYSTEM_EMCY(8)
CHAR
R
It contains the data frame of Emergency Object of CanOpen. It is updated calling the
function read_emcy().
_SYSTEM_SDOAC0
LONG
R
These variables form the 8 byte of the eventual SDO ABORT CODE sended by a slave
CANOPEN as a result of a call to the functions pxco_sdodl(...) or pxco_sdoul(...). If the
retur value is 2, the variables _SYSTEM_SDOAC0 and _SYSTEM_SDOAC1 represent the
error code.
_SYSTEM_SDOAC1
LONG
R
_SYSTEM_TLUCE
LONG
R/W
It contains the response time in milliseconds of the automatic turn off of the background
light in devices with HMI.
_SYSTEM_PLC_ACT_TIME
UINT
R
It is the actual elapsed time of TASK PLC in CPU units. DEBUG application displays it in
milliseconds. It useful for test to understand the stress of CPUin TASK PLC. This time
should be less than 30% of the sample time (set in general options) to avoid the other
tasks run slowly.
_SYSTEM_PLC_MAX_TIME
UINT
R
It's similar to the previous but it contains the maximum value latched.
_SYSTEM_CARD_TYPE
INT
R
If there is present an internal SSD this variable contains its dimension in Mbyte (8, 16,
32, 64, 128, etc.).
_SYSTEM_VER
INT
R
It is the firmware version. Ex. 10317 Vers. 1.03.17
_SYSTEM_CANERR_CNT0
LONG
R/W
Error counter of the Canopen channel 1. It is updated each sample of TASK PLC testing
the hardware interface.
_SYSTEM_CANERR_CNT1
LONG
R/W
It's tha same as the previous one but it refers to channel 2.
_SYSTEM_ECERR_CNT
LONG
R/W
Error counter of the ETHERCAT line.
_SYSTEM_STDINP_DN
INT
R
It contains the code of a key when it is pressed.
_SYSTEM_STDINP_UP
INT
R
It contains the code of a key when it is released.