| gclib 1.35.5 Communications API for Galil controllers and PLCs |

## ◆ IP_Assigner()

static int IP_Assigner | ( | gclib | gclib,
|  | string | serial_num,
|  | byte | address
| ) |  |
| inline static

Assigns controller an IP Adress given a serial number and a 1 byte address.

Parameters

  gclib | A gclib object.
  serial_num | The serial number of a Galil controller.
  address | A 1 byte value to be added to the new IP Address.

Returns
  The success status or error code of the function.

This function will listen on the network for controllers requesting an IP Address.
If a detected controller matches the serial number provided by the user, a new IP Address will be assigned based on the first 3 bytes of the detected IP Address combined with the user defined 1 byte address.
See ip_assigner_example.cs for an example.

For VB.NET, see definition in file ip_assigner.vb

Definition at line 36 of file ip_assigner.cs.

References Examples.GALIL_EXAMPLE_ERROR, and Examples.GALIL_EXAMPLE_OK.

Referenced by IP_Assigner_Example.Main().