F_CX81xx_ADDRESS

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.
Return value
F_CX80xx_ADDRESS : INT;
Name |
Type |
Description |
---|---|---|
F_CX80xx_ADDRESS |
INT |
Position of the address selection switch; |
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 |