This functionality is only available for certain module packages.

You are here: Reference > Formula Language > Formulas > Methods for PLC addresses > addressAdd(String Address, Integer Increment, Integer Startbit, Integer Bitsize)

addressAdd(String Address, Integer Increment, Integer Startbit, Integer Bitsize)

Adds the number of Increment bits to a PLC address that is specified with Address.

addressAdd(String Address, Integer Increment, Integer Startbit, Integer Bitsize)
Arguments String Address Start value in the notation Byte.Bit. The value for bit has to be greater than or equal to the value for the start bit.
Integer Increment Number of increments by which the bit is increased, relative to the start value.
Integer Startbit Number of the bit with which each byte begins. The counting begins at 0. Values greater than 0 means that correspondingly many bits at the beginning of each byte are not occupied.
Integer Bitsize Number of the used bits per byte. Typically: Bit size = Byte size - Start bit. In order not to occupy bits at the end of each byte, the value for the bit size is however selected lower.
Return value String Resulting address