GetAddress¶
-
virtual std::string IController::GetAddress() = 0¶
Gets the address of the controller.
- Returns
std::string – Address of the controller.
- Throws
CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CObjectDestroyedException
– Object is destroyed.
- Remarks
The string format depends on the communication method: * Ethernet (IPv4): Dotted decimal notation with port number, d.d.d.d:port. * EtherCAT: EtherCAT:d with d equal to the sub-controller position on the bus. * FPGA: FPGA:d with d equal to the sub-controller position on the bus. * IOBus: IOBus:d with d equal to the sub-controller position on the bus.