Function F_CX81xx_ADDRESS

This function reads the position of the address selection switch of the CX8180. One possible application is that you can activate different program parts in the PLC depending on the switch position.

Function F_CX81xx_ADDRESS 1:

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 environment

Target platform

Hardware

PLC libraries to include

TwinCAT v3.1 Build 4022.30

ARM

CX8180

Tc2_SystemCX