30
RabbitCore RCM2200
4.7 How to Set IP Addresses in the Sample Programs
Most of the sample programs such as shown in the example below use macros to define the
IP address assigned to the board and the IP address of the gateway, if there is a gateway.
#define MY_IP_ADDRESS "216.112.116.155"
#define MY_NETMASK "255.255.255.248"
#define MY_GATEWAY "216.112.116.153"
In order to do a direct connection, the following IP addresses can be used for the RCM2200:
#define MY_IP_ADDRESS "10.1.1.2"
#define MY_NETMASK "255.255.255.248"
// #define MY_GATEWAY "216.112.116.153"
In this case, the gateway is not used and is commented out. The IP address of the board is
defined to be 10.1.1.2. The IP address of you PC can be defined as 10.1.1.1.
Содержание RCM2000 Series
Страница 1: ...RabbitCore RCM2200 C Programmable Module with Ethernet Getting Started Manual 019 0096 020208 E...
Страница 18: ...14 RabbitCore RCM2200...
Страница 26: ...22 RabbitCore RCM2200...
Страница 38: ...34 RabbitCore RCM2200...
Страница 40: ...36 RabbitCore RCM2200...
Страница 43: ...C NONE...
Страница 46: ......