Function F_Cx81Xx_Address; Real Time Clock (Rtc) - Beckhoff CX8110 Manual

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

Advertisement

Programming
ObjId
TaskCnt
OnlineChangeCnt
Flags
AdsPort
BootDataLoaded
OldBootData
AppTimestamp
KeepOutputsOnBP
ShutdownInProgress
LicensesPending
BSODOccured
TComSrvPtr
AppName
ProjectName
7.2

Function F_CX81xx_ADDRESS

This function reads the position of the DIP switch of the CX8110. One possible application is that you can
activate different program parts in the PLC depending on the switch position.
VAR_INPUT
VAR_INPUT
    iCX_Typ      : INT;          (* Use product code without 'CX' e.g.: CX8180 -> 8180 *)
END_VAR
VAR_OUTPUT
F_CX80xx_ADDRESS     : INT;
F_CX80xx_ADDRESS                       : -1, non-implemented CX, address of the switch
Requirements
Development environ-
ment
TwinCAT v3.1 Build
4022.30
7.3

Real Time Clock (RTC)

The real-time clock (RTC) is read out via the function blocks FB_LocalSystemTime and can be set with the
function block NT_SetLocalTime (see TcUtilities.lib). The RTC is supplied by the battery and can thus
continue to run in the power-off state.
54
Object ID of the PLC project instance
Number of tasks in the runtime system
Number of online changes since the last complete download
Reserved
ADS port of the PLC application
PERSISTENT variables: LOADED (without error)
PERSISTENT variables: INVALID (the back-up copy was loaded, since no
valid file was present)
Time at which the PLC application was compiled
The flag can be set and prevents that the outputs are zeroed when a
breakpoint is reached. In this case the task continues to run. Only the
execution of the PLC code is interrupted.
This variable has the value TRUE if a shutdown of the TwinCAT system is in
progress. Some parts of the TwinCAT system may already have been shut
down.
This variable has the value TRUE if not all licenses that are provided by
license dongles have been validated yet.
This variable has the value TRUE if Windows is in a BSOD.
Pointer to the TcCOM object server
Name generated by TwinCAT, which contains the port.
Name of the project
Target platform
ARM
Version: 1.4
Hardware
CX8110
PLC libraries to include
Tc2_SystemCX
CX8110

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx8180

Table of Contents