You are on page 1of 1

RA_ADDR_STRING_TO_OCTETS UDFB

This UDFB converts a ‘www.xxx.yyy.zzz’ type address string into a 4-octet USINT
array (www, xxx, yyy, zzz). Setting ReverseOrder to TRUE will reverse the order of
the values in the output array (zzz, yyy, xxx, www).

FB Inputs Data Type Input Data Range Description


FBEN BOOL TRUE/FALSE When preceding rung conditions are TRUE, function
block is enabled.
AddressString STRING 123.123.123.123 Typically either an IP Address, Subnet Mask or
Gateway Address string.
ReverseOrder BOOL TRUE/FALSE Reverse order of values in octet array if TRUE.

FB Outputs Data Type Description


FBENO BOOL When function block is enabled, this output is enabled (TRUE).
AddressOctets USINT[0..3] Address string converted into a 4-octet USINT array.

You might also like