Programming
5.3.2
Data types
TYPE E_CX8090_LED
TYPE E_CX8090_LED : (
eLED_GREEN_OFF,
eLED_GREEN_ON,
eLED_GREEN_FLASHING_Quick,
eLED_GREEN_FLASHING_200ms,
eLED_GREEN_FLASHING_500ms,
eLED_GREEN_FLASHING_Pulse,
eLED_RED_OFF:=20,
eLED_RED_ON,
eLED_RED_FLASHING_Quick,
eLED_RED_FLASHING_200ms,
eLED_RED_FLASHING_500ms,
eLED_RED_FLASHING_Pulse,
eLED_GREEN_RED_OFF:=100,
eLED_GREEN_RED_FLASHING_200ms,
eLED_GREEN_RED_FLASHING_500ms
);
END_TYPE
5.4
Diagnostics
5.4.1
FUNCTION F_CX80xx_ADDRESS
With this function the address selection switch or the DIP switch of the CX80xx device can be read out.
Here, for example, you can activate different parts of the program depending on the address by reading the
switch position.
VAR_INPUT
VAR_INPUT
iCX_Typ : INT;
END_VAR
iCX_Typ
: The CX type used is entered here - just the number without the designation CX: for
example, CX8031 is then entered as 8031.
VAR_OUTPUT
F_CX80xx_ADDRESS : INT;
F_CX80xx_ADDRESS
: -1, non-implemented CX, address of the switch
Prerequisites
Development environ-
ment
Target platform
Hardware
PLC libraries to be
linked
TwinCAT v2.11.0 build
2220 or higher (R3)
ARM
CX80xx
TcSystemCX80xx.lib
CX8080
41
Version: 1.0.0