Data Type E_Cx81X0_Led; Function F_Cx81Xx_Address - Beckhoff CX8190 Manual

Embedded pc with ethernet
Table of Contents

Advertisement

Programming
7.2.2
Function F_CX81x0_LED_ERR
Since the CX8190 supports different protocols, the two LEDs WD and ERR on the CX8190 are not used by
the firmware. This allows the user to create his own diagnosis messages. The LEDs can be used to indicate,
for example, whether the CX8190 has received an IP address from the DHCP server or whether devices are
exchanging data.
The function F_CX8190 CX8190 _LED_ERR controls the ERR LED on the CX8190. Various color and
flashing modes can be used here. The possible LED colors are red and green.
VAR_INPUT
VAR_INPUT
    eMode      : E_CX81x0_LED;
END_VAR
eMode [} 52]: way in which the LED lights up.
VAR_OUTPUT
F_CX8190_LED_ERR     : INT;
F_CX8190_LED_ERR: -1, non-implemented flash code, 0 OK
Requirements
Development environ-
ment
TwinCAT v3.1 Build
4022.30
7.2.3

Data type E_CX81x0_LED

TYPE E_CX81x0_LED : (
    eCX81x0_LED_GREEN_OFF,
    eCX81x0_LED_GREEN_ON,
    eCX81x0_LED_GREEN_FLASHING_Quick,
    eCX81x0_LED_GREEN_FLASHING_200ms,
    eCX81x0_LED_GREEN_FLASHING_500ms,
    eCX81x0_LED_GREEN_FLASHING_Pulse,
    eCX81x0_LED_RED_OFF:=20,
    eCX81x0_LED_RED_ON,
    eCX81x0_LED_RED_FLASHING_Quick,
    eCX81x0_LED_RED_FLASHING_200ms,
    eCX81x0_LED_RED_FLASHING_500ms,
    eCX81x0_LED_RED_FLASHING_Pulse,
    eCX81x0_LED_GREEN_RED_OFF:=100,
    eCX81x0_LED_GREEN_RED_FLASHING_200ms,
    eCX81x0_LED_GREEN_RED_FLASHING_500ms
);
END_TYPE
7.3

Function F_CX81xx_ADDRESS

This function reads the position of the DIP switch of the CX8190. One possible application is that you can
activate different program parts in the PLC depending on the switch position.
52
Target platform
ARM
Version: 1.5
Hardware
CX8190
PLC libraries to include
Tc2_SystemCX
CX8190

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents