Function description

This function block allows the entry of the TCP/ IP address for function blocks READ_REG, CREAD_REG, WRITE_REG and CWRITE_REG. The address is transferred as a data structure.

EN and ENO can be configured as additional parameters.

NOTE: You must be familiar with your network when programming the TCP_IP_ADDR function block. A complete description of the TCP/IP routing is provided in the Quantum using EcoStruxure™ Control Expert, TCP/IP Configuration, User Manual.

Representation in FBD

Representation:

Representation in LD

Representation:

Representation in IL

Representation:

CAL TCP_IP_ADDR_Instance (MAP_IDX:=MapIndex,
    SLOT_ID:=NOEModuleSlot, IP_B4:=Byte4OfIPAddress,
    IP_B3:=Byte3OfIPAddress, IP_B2:=Byte2OfIPAddress,
    IP_B1:=Byte1OfIPAddress,
    ADDRFLD=>DataStructureTCP_IPAddress)

Representation in ST

Representation:

TCP_IP_ADDR_Instance (MAP_IDX:=MapIndex,
    SLOT_ID:=NOEModuleSlot, IP_B4:=Byte4OfIPAddress,
    IP_B3:=Byte3OfIPAddress, IP_B2:=Byte2OfIPAddress,
    IP_B1:=Byte1OfIPAddress,
    ADDRFLD=>DataStructureTCP_IPAddress) ;

Parameter description

Description of input parameters:

Parameters

Data type

Description

MAP_IDX

BYTE

Map index

MBP on Ethernet Transporter (MET) mapping index

Slot_ID

BYTE

Slot ID

Slot of the NOE module

IP_B4

BYTE

Byte 4 (MSB) of the 32-bit destination IP address

IP_B3

BYTE

Byte 3 of the 32-bit destination IP address

IP_B2

BYTE

Byte 2 of the 32-bit destination IP address

IP_B1

BYTE

Byte 1 (LSB) of the 32-bit destination IP address

NOTE: For the Slot_ID parameter: when using an integrated Ethernet CPU module such as the 140 CPU 651 •0, the slot ID must be 254 (FE hex) regardless of the CPU slot.

Description of output parameters:

Parameters

Data type

Description

ADDRFLD

WordArr5

Data structure used to transfer the TCP/IP address