Data Types; Plcappsysteminfo - Beckhoff CX8110 Manual

Embedded pc with ethercat
Hide thumbs Also See for CX8110:
Table of Contents

Advertisement

7.1.2

Data types

E_S_UPS_Mode
With the mode selected in the function block you can specify what should happen in the case of a power
failure.
eSUPS_WrPersistData_Shutdown: Writing of persistent data and then a QuickShutdown
eSUPS_WrPersistData_NoShutdown: Only writing of the persistent data (no QuickShutdown)
eSUPS_ImmediateShutdown: Only QuickShutdown (no writing of persistent data)
eSUPS_CheckPowerStatus: Only check status (neither writing of persistent data nor a QuickShutdown)
E_S_UPS_State
The internal state of the function block can be read with E_S_UPS_State.
eSUPS_PowerOK:
in all modes: Power supply is OK
eSUPS_PowerFailure: 
in all modes: Power supply is faulty (only shown for one PLC cycle)
eSUPS_WritePersistentData: 
in mode eSUPS_WrPersistData_Shutdown: Writing of persistent data is active
in mode eSUPS_WrPersistData_NoShutdown: Writing of persistent data is active
eSUPS_QuickShutdown: 
in mode eSUPS_WrPersistData_Shutdown: QuickShutdown ist active
in Mode eSUPS_ImmediateShutdown: QuickShutdown is active
eSUPS_WaitForRecover: 
in mode eSUPS_WrPersistData_NoShutdown: Wait for the reestablishment of the power supply
in mode eSUPS_CheckPowerStatus: Wait for the reestablishment of the power supply
eSUPS_WaitForPowerOFF: 
in mode eSUPS_WrPersistData_Shutdown: Wait for switching off of the PC by the UPS
in mode eSUPS_ImmediateShutdown: Wait for switching off of the PC by the UPS
7.1.3

PlcAppSystemInfo

Each PLC contains an instance of type 'PlcAppSystemInfo' with the name '_AppInfo'.
The corresponding namespace is 'TwinCAT_SystemInfoVarList'. This must be specified for use in a library,
for example.
TYPE PlcAppSystemInfo
STRUCT
     ObjId              : OTCID;
     TaskCnt            : UDINT;
     OnlineChangeCnt    : UDINT;
     Flags              : DWORD;
     AdsPort            : UINT;
     BootDataLoaded     : BOOL;
     OldBootData        : BOOL;
     AppTimestamp       : DT;
     KeepOutputsOnBP    : BOOL;
     ShutdownInProgress : BOOL;
     LicensesPending    : BOOL;
     BSODOccured        : BOOL;
     TComSrvPtr         : ITComObjectServer;
     AppName            : STRING(63);
     ProjectName        : STRING(63);
END_STRUCT
END_TYPE
CX8110
Version: 1.4
Programming
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx8180

Table of Contents