gclib examples  0
Example Projects for the Communications API for Galil controllers and PLCs
ip_assigner_example.cpp File Reference
#include "examples.h"
#include <iostream>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Main function for IP Assigner Example. More...
 

Detailed Description

See ip_assigner() for implementation of logic

Concepts

This example demonstrates:

  • How to issue basic commands.
  • How to listen on the network for Galil Controllers requesting an IP Address.
  • How to assign a Galil Controller an IP Address.
  • How to connect to a controller via IP Address.
  • How to get information on a connected controller such as MAC Address and Serial Number.

Prerequisites

A Galil controller connected to the same network as the host computer.

Definition in file ip_assigner_example.cpp.