Download "user manual"
Transcript
130 Practical Industrial Data Communications 7b.4.9 MAC address of a device not known to user The MAC address of a device, such as a PLC, is normally displayed on a sticker attached to the body. If the MAC address of the device is not known, it can be pinged by its IP address (for example, ping 101.3.4.5) whereafter the MAC address can be obtained by displaying the ARP cache on the machine that did the ping. This is done by means of the arp – a command. 7b.4.10 IP address of a device not known to user On a computer, this is not a problem since the IP address can simply be looked up in the TCP/IP configuration screen. Alternatively, the IP address can be displayed by commands such as winipcfg (Windows 95/98) or ipconfig /all (Windows 98/NT). On a PLC, this might not be so easy unless the user knows how to attach a terminal to the COM (serial) port on the PLC and has the configuration software handy. An easier approach to confirm the IP address setup on the PLC (if any) is to attach it to a network and run a utility such as WebBoy or EtherBoy. The software will pick up the device on the network, regardless of its NetID, and display the IP address. 7b.4.11 Wrong IP address It is possible that all devices on a network could have valid and correct IP addresses but that a specific host fails to respond to a message sent to it by a client program residing on another host. A typical scenario could be a supervisory computer sending a command to a PLC. Before assuming that the PLC is defective, one has to ascertain that the supervisory computer is in fact using the correct IP address when trying to communicate with the PLC. This can only be ascertained by using a protocol analyzer and capturing the communication or attempt at communication between the computer and the PLC. The packets exchanged between the computer and the PLC can be identified by means of the MAC addresses in the appropriate Ethernet headers. It then has to be confirmed that the IP headers carried within these frames do in fact contain the correct IP addresses. 7b.5 Transport layer problems A detailed treatment of the TCP protocol is completely beyond the scope of this course but there are a few simple things that even a relatively inexperienced user can check. 7b.5.1 No connection established Before any two devices can communicate using TCP/IP, they need to establish a so-called triple handshake. This will be clearly indicated as a SYN, ACK / SYN, ACK sequence to the relevant port. Without a triple handshake the devices cannot communicate at all. To confirm this, simply try to establish a connection (for example, by using an FTP client to log into an FTP server) and use a protocol analyzer to capture the handshake. 7b.5.2 Incorrect port number TCP identifies different programs (processes) on a host by means of so-called port numbers. For example, an FTP server uses ports 21 and 22, a POP3 server (for e-mail) uses port 110 and a web server (HTTP) uses port 80. Any other process wishing to