F_CX81xx_ADDRESS

F_CX81xx_ADDRESS 1:

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

F_CX81xx_ADDRESS 2: Return value

F_CX80xx_ADDRESS     : INT;

Name

Type

Description

F_CX80xx_ADDRESS

INT

Position of the address selection switch;
If -1, CX not implemented,

F_CX81xx_ADDRESS 3: Inputs

VAR_INPUT
    iCX_Typ      : INT;          (* Use product code without 'CX' e.g.: CX8180 -> 8180 *)
END_VAR

Name

Type

Description

iCX_Typ

INT

 

Requirements

Development environment

Target platform

Hardware

PLC libraries to include

TwinCAT v3.1 Build 4022.30

Arm®

CXxxxx

Tc2_SystemCX