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 environment | Target platform | Hardware | PLC libraries to be linked |
---|---|---|---|
TwinCAT v2.11.0 build 2220 or higher (R3) | ARM | CX80xx | TcSystemCX80xx.lib |