EasyManua.ls Logo

Scanlab RTC6 PCIe Board - Eth_Set_Static_Ip

Scanlab RTC6 PCIe Board
1004 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
383
innovators for industry
Ctrl Command eth_set_static_ip
Function Writes a static IP address, a subnet mask and also a gateway address onto the
RTC6 Ethernet Board.
Call
Result = eth_set_static_ip( Ip, NetMask, Gateway )
Parameters
Ip
Static IP address in Big Endian byte order.
As an unsigned 32-bit value.
NetMask
Subnet mask in Big Endian byte order.
As an unsigned 32-bit value.
Gateway
Address of the gateway in Big Endian byte order.
As an unsigned 32-bit value.
Result Error code.
As an unsigned 32-bit value.
0: Success: OK.
1: Error: No access to the RTC6 Ethernet Board.
get_last_error return code
RTC6_ACCESS_DENIED
.
2: Error: No RTC6 Ethernet Board.
get_last_error return code
RTC6_TYPE_REJECTED
.
3: Error: Programming the Flash Memory is not possible.
The RTC6 Ethernet Board is possibly busy.
get_last_error return code
RTC6_BUSY
or
RTC6_FLASH_ERROR
.
Comments Prerequisites for eth_set_static_ip:
No list must currently be executed on the RTC6 Ethernet Board.
The RTC6 Ethernet Board must be entered in the RTC6 board management.
The RTC6 Ethernet Board must have been acquired.
If no gateway is to be used, then
Gateway
must be set to 0.
To convert from usual dotted decimal notation to Big Endian byte order,
eth_convert_string_to_ip can be used. See also Chapter 16.5.1 ”Notes on Working
with IP Addresses”, page 904.
RTC4RTC6 New command.
RTC5RTC6 New command.
Version info Available as of DLL 606, OUT 606, RBF 611.
References eth_convert_string_to_ip, eth_get_static_ip

Table of Contents