Toshiba T2N Instruction Manual

Toshiba T2N Instruction Manual

Cpu module ethernet port
Hide thumbs Also See for T2N:
Table of Contents

Advertisement

Quick Links

T2N Ethernet Port
Instruction Manual
REQUIREMENTS
Keep this instruction manual where it can be easily
referred to by users and those responsible for the
equipment.
Read this instruction manual carefully before using
the equipment.
After this instruction manual has been read, keep it
beside the equipment.
Main Menu
Contents
July, 1998
TOSHIBA CORPORATION
6 F 3 B 0 3 6 2
UM-TS02N**-E006

Advertisement

Table of Contents
loading

Summary of Contents for Toshiba T2N

  • Page 1 T2N Ethernet Port Instruction Manual REQUIREMENTS Keep this instruction manual where it can be easily referred to by users and those responsible for the equipment. Read this instruction manual carefully before using the equipment. After this instruction manual has been read, keep it beside the equipment.
  • Page 2 Corporation be responsible or liable for either indirect or consequential damage or injury that may result from the use of this equipment. No patent liability is assumed by Toshiba Corporation with respect to the use of information, illustration, circuits equipment, or application examples in this publication.
  • Page 3: Safety Precautions

    Safety Precautions Thank you for purchasing the Toshiba PU235N/245N CPU module, which is for use with the T2N programmable controller. This document describes the usage and handling of the PU235N/245N built-in Ethernet Port and presents important cautionary items. To use the PU235N/245N Ethernet Port safely, please read this document and all other related documentation thoroughly and acquire thorough knowledge of the equipment and points that require care before installing, operating, maintaining, or inspecting the PU235N/245N.
  • Page 4 Safety Precautions (continued) [Warning indications] This instruction manual provides important information to allow these products to be used safely and correctly, to prevent in advance dangers to people managing or using this equipment or other persons, and to prevent in advance losses to property. Be sure you thoroughly understand the displays and symbols described below and follow the cautionary items and warnings included in this document carefully.
  • Page 5 RUN (operate) or HALT (stop) modes. Equipment can be damaged and breakdowns can be caused by operating this equipment incorrectly. WARNING T2N User's Manual - Hardware 3. Preparing for Operation (Hardware) CAUTION T2N User's Manual - Hardware Program Operation Manual 3.
  • Page 6 Connecting to the network Do not connect or disconnect cables when either the T2N or HUB power supply is turned on. This can damage the PU235N/245N or cause it to malfunction. When installing a 10BASE-T network, the cabling must be laid with adequate safety precautions and in accordance with all applicable standards.
  • Page 7 Installation environment and base unit mounting Only use this equipment in the environment described in the T2N User's Manual - Hardware. Use in any other environment can cause electrical shocks, fires, failures, and malfunctions.
  • Page 8 Using the module in an abnormal state can lead to malfunctions, breakdowns, and electrical shock. In such cases, immediately turn of all power and contact your local Toshiba dealer or service representative. Customers should never attempt repairs or modifications to this equipment themselves: repair and modification operations are extremely dangerous.
  • Page 9: Usage Recommendations

    Do not exceed the maximum cable length (100 m) in systems using 10BASE-T. Ethernet Port registration Before performing the settings described in this chapter, register the Ethernet Port as T2N I/O. The I/O type is ETHER (PU235N) or E/S (PU245N).
  • Page 10 Usage Recommendations 5.1 Computer Link Protocol Transmission 5.3 PC Link Protocol Transmission (Data write) 5.4 PC Link Protocol Transmission (Data read) Usage Recommendations Appendix 4 Limitations on the T2N SEND and RECV Instructions 6 F 3 B 0 3 6 2...
  • Page 11: Before Reading This Document

    The PU235N has Ethernet Port and the PU245N has Ethernet and TOSLINE-S20LP Port. The T2N Ethernet Port is built-in a T2N and the T3H Ethernet module is independent module. It is called “port” with this manual and called “station” with Ethernet Module EN311 for T3H Instruction Manual are same meaning.
  • Page 12 Presents request code, completion status value, and error code tables and describes the minimum transmission delay times and execution times for each instruction. Note that in addition to this manual, Toshiba also provides a T2N User's Manual - Basic Hardware and Function, a T-series Instruction Set, and a T-series Computer Link Operation Manual.
  • Page 13: Table Of Contents

    Contents Safety Precautions Usage Recommendations Before Reading This Document 1. Ethernet Port Overview 1.1 System Configuration Using the Ethernet Port 1.2 LAN Standards and Terminology 1.3 Basic Functionality 1.4 Ethernet Port Specifications 1.5 Software Organization 2. PU235N/245N Parts and Functions 2.1 Front Panel 2.2 Component Functions 3.
  • Page 14 9.1 Installation Environment and Base Unit Mounting 9.2 Network Wiring Appendix Appendix 1 Maintenance and Inspection Appendix 2 Request Code Table Appendix 3 Status Table Appendix 4 Limitations on the T2N SEND and RECV Instructions 6 F 3 B 0 3 6 2...
  • Page 15: Ethernet Port Overview

    PROSEC T2N programmable controller as the T2N, and the Ethernet Port as the PU235N/245N Ethernet Port. The Ethernet Port is a communication port for connecting a T2N system to a 10BASE-T (Twisted pair Ethernet) LAN (local area network). It is operated a T2N option module. The T2N connects to the above mentioned LAN through the Ethernet Port and exchanges data with host computers (workstations or personal computers) or other programmable controllers on the LAN.
  • Page 16: Lan Standards And Terminology

    1.2 LAN Standards and Terminology The LANs commonly referred to as Ethernet LANs are defined by two standards, the Ethernet version 2.0 standard (DIX) developed by DEC, Intel, and Xerox, and the ISO 8802-3 standard (IEEE 802.3), which is an international version of the DIX standard. Since the ISO 8802-3 includes the DIX standard, network equipment built to those standards will be basically compatible.
  • Page 17: Basic Functionality

    The host machine can upload or download user programs, execute control commands, and read or write register data to a T2N on the 10BASE-T LAN using the T series computer link protocol. This function can be used simply by making basic settings on the Ethernet Port from the T2N;...
  • Page 18 T series/PC link protocol transmission The T2N can use the T series/PC link protocol to read or write register data on another T2N on the 10BASE-T LAN. While T2N user programs for reading and writing are necessary to use the host functions, only the basic Ethernet Port settings performed from the T2N are required to use the slave functions, and no special user programs are required on the T2N.
  • Page 19 This is a standard communications technique used on engineering workstations and similar computers. Transmission between user programs on the T2N and host machines is possible using the socket interface. There are eight sockets on an Ethernet Port and the transmission protocol (TCP/IP or UDP/IP) can be specified for each socket.
  • Page 20 This function is under development, but is currently not supported. Toshiba plans to add support to the T2N for a gateway function between the Ethernet Port and the TOSLINE-S20LP Port. This function will allow access to stations (PROSEC-T3H/T2N) on the TOSLINE-S20LP from ports on the 10BASE-T LAN using the computer link protocol.
  • Page 21 Support for 10BASE-T Network The Ethernet Port can connect to a 10BASE-T network 10BASE-T is a LAN technology that uses baseband transmission, provides a data transmission rate of 10 Mbps, and supports single segments of up to 100 meters in length. This network uses 10BASE-T (Twisted pair cable) as the transmission cable.
  • Page 22: Ethernet Port Specifications

    T2N interface buffer memory, MAC address 2. Test functions accessible from user programs • Remote port verification request • Remote port loopback test (Between T2N and T2N/T3H systems) 3. Data provided by RAS data readout • Event trace • LAN controller (network) information •...
  • Page 23: Software Organization

    Retransferring Window (flow) control Segment division Reporting of the maximum receivable segment length The Ethernet Port does not support the reset bit (RST). T2N user program SEND/RECV instruction T2N firmware Computer link/PC link/socket interface T2N internal bus Ethernet Port interface...
  • Page 24 UDP (User datagram protocol) Transfers data with the remote port in datagram units. Provides high-speed transfers since a connection is not used, but does not have control functions that assure reliability, as does TCP. Thus it requires support from a higher level protocol. The Ethernet Port supports the: the UDP checksum function.
  • Page 25: Pu235N/245N Parts And Functions

    2. Ethernet Port Parts and Functions This chapter describes the sections of the Ethernet Port and their functions. 2.1 Front Panel ERUN ET/R SRUN SONL STNH STNL OTR1 OTR2 Figure 2.1 EACC Ethernet Port LED Display SACC TOSLINE-S20LP (PU245N only) 10BASE-T Ethernet Port 10BASE-T connector for connecting...
  • Page 26: Component Functions

    Off... Data is not being transmitted or received. sion / Receive) EACC Indicates whether or not the T2N is accessing the Ethernet Port. On... The T2N is accessing the Ethernet Port. (Ether Access) Off... The T2N is not accessing the Ethernet Port.
  • Page 27: Preparing For Operation (Hardware)

    3. Preparing for Operation (Hardware) This section presents the Ethernet Port setup. 1. Build emergency stop, interlock, and similar circuits outside the PU235N/245N. If a breakdown or malfunction occurs in the PU235N/245N, there is the danger that someone could be hurt or fatally injured.
  • Page 28: Connecting To The Network

    3.1 Connecting to the Network The Ethernet Port supports 10BASE-T network. Connection to a 10BASE-T Network This section describes the connection procedure starting from the state where the 10BASE-T twisted pair cable is already supplied and ready to be connected. See section 9.2, "Network Wiring", for details on wiring the 10BASE-T twisted pair cable.
  • Page 29: Network Wiring Equipment

    3.2 Network Wiring Equipment This section describes the wiring and related equipment that makes up the network to which the Ethernet Port is connected. Since the Ethernet Port conforms to the ISO 8802-3 (IEEE 802.3) standard, users should select equipment to be used in the network that also conforms to this standard.
  • Page 30 10BASE5 Coaxial cable Catalog no. Standard outside diameter Manufacturer Plugs Catalog no. Manufacturer Terminators Catalog no. Manufacturer Adapters Catalog no. Manufacturer Grounding clamps Catalog no. Manufacturer AUI cable Catalog no. Standard outside diameter Length Manufacturer Catalog no. Standard outside diameter Length Manufacturer Catalog no.
  • Page 31 10BASE2 Coaxial cable Catalog no. Standard outside diameter Manufacturer BNC plugs Catalog no. Manufacturer T connectors Catalog no. Manufacturer Adapters Catalog no. Manufacturer Terminators Catalog no. Manufacturer When installing a 10BASE5, 10BASE2 or 10BASE-T network, the cabling must be laid with adequate safety precautions and in accordance with all applicable standards.
  • Page 32: Preparing For Operation (Software)

    Specify the Ethernet Port operating mode from the T2N. Figure 4.1 Before performing the settings described in this chapter, register the PU235N/245N as T2N I/O. The I/O type is ETHER or E/S. CAUTION There are two ways to reset the Ethernet Port: Turn on the T2N power.
  • Page 33: Ethernet Port Instruction Specifications

    SEND and RECV instructions, which are the instructions that are used to control the Ethernet Port from T2N user programs. Ethernet Port control and transmission control (PC link protocol transmission and socket interface transmission) are performed solely using the SEND and RECV instructions.
  • Page 34 Time set request Sets the Ethernet Port internal clock Time information for event trace (RAS information) Register read request Reads register data from remote T2N into registers in the local (PC link function) T2N. Register write request Writes register data from the local T2N to registers in remote (PC link function) T2N.
  • Page 35 There are eight sockets, and each can independently accept and execute a class ® instruction. g. If the T2N switches from the run to the halt state and then back to the run state while an instruction is executing, it is possible that the Ethernet Port could execute the request issued immediately prior to the halt state.
  • Page 36 Status (B) The status during the execution of a SEND or RECV instruction and after that instruction terminates is stored in the register shown at B. When TermSTS = 0BH, the detailed information (Ethernet Port error information) will be loaded into the registers indicated at location B + 1. Figure 4.3 shows the structure of the status information.
  • Page 37 No I/O response • Occurs if the T2N cannot access the Ethernet Port. (Reserved) Send data capacity • Occurs if a request is discarded when a T2N internal resource insufficiency exceeded • Occurs if a T2N retransmission times out. (Reserved) Table 4.4...
  • Page 38 Parameter setup, b. MAC address setup, c. Reset Occurs if the MAC address or IP address is not set up. • Occurs if a PC link request was issued from the T2N in run mode in the message transmission prohibited state.
  • Page 39 MAC address specification error 00B0H 00B1H Resource shortage error 00C0H Receive request from the T2N 00C1H 00C2H Description Occurs if the Ethernet Port internal OS fails to allocate memory. Occurs if computer link or PC link socket identifier acquisition fails.
  • Page 40: Ethernet Port Reset

    See section 4.5, "Operating Mode Control Requests", for more information on the Ethernet Port operating modes. T2N power on When power is applied to the T2N, power is also applied to the Ethernet Port, and the PU235N/245N performs its reset processing sequence. 6 F 3 B 0 3 6 2...
  • Page 41 Reset request from the T2N It is possible to initiate reset processing from user programs on the T2N. T2N can execute the reset processing instruction on standby mode (See section 4.5). This section describes the format of the reset processing instruction.
  • Page 42: Parameter Setup Request

    4.4 Parameter Setup Request This section describes the procedure for Ethernet Port parameter setup in the Ethernet Port from a T2N user program. The Ethernet Port parameters consist of the following: (1) Local port IP address (2) UDP port number for computer link and PC link transmission Here we first describe the IP address, subnet mask, and port number, which are the parameters required for TCP/IP and UDP/IP transmission.
  • Page 43 Notes on IP addresses The following IP addresses cannot be used with the Ethernet Port, both for the local port and for remote port addresses. Addresses starting with 127 (7FH). Addresses in which the network address is all zeros or all ones. Addresses in which the host address is all zeros or all ones.
  • Page 44 Port number An IP address identifies a particular port on a network. However, since, on any given port, there will be multiple applications using TCP/IP or UDC/IP to communicate with applications on other ports, the question of to which application the data should be passed arises. UDP ports have the role of acting as the point of contact between UDP and applications that transfer data using UDP.
  • Page 45 UDP port number specified at A+4, the Ethernet Port/T2N will process the received data in the order received and send the result from one of the message transmission send ports. (See figure 4.5.)
  • Page 46 This program is executed by turning on the R0502 A contact. Parameters: 12544:3100H, 00018:0012H 29061:7185H, 02658:0A62H |R0502 1|-| |-----------------------------------------------------------( )--| /* Parameter setup request */ |R0602 2|-| |-+[ 12544 MOV RW000][ 00018 MOV RW001]--------------------------| /* Designates the module and sets the CMD number. */ +[ 29061 MOV RW002][ 02658 MOV RW003][ 01025 MOV RW004]--------| /* Sets the IP address, Port number.
  • Page 47: Operating Mode Control Requests

    Once the Ethernet Port enters the down state, it can only be restored by turning the power off (power cycling) and then on again. The details of the down mode state can be verified by reading the data in the T2N interface buffer memory.
  • Page 48 6 F 3 B 0 3 6 2 Figure 4.6 shows the Ethernet Port mode transitions. Power down Power applied Self check completes normally Initialization Standby Reset request Standby request Power on/off/on Self check terminates cycle Run request in an error state. Unrecoverable error Down Unrecoverable error...
  • Page 49 This section describes the operating mode control request instruction format. Operating mode control request (using the SEND instruction) Function This is a request from a user program that controls the Ethernet Port operating mode. Transfer parameters 3100H CMD = 0013H Specified information Specified information STBY...
  • Page 50 Important items Values other than 1010H, 1020H, 1030H, and 2000H may not be specified for the specification information. Status: Transmission error (TermSTS = 0BH) Detailed information: Incorrect control request specification (0083H) Simultaneous run mode and standby mode requests (30x0H) cannot be executed. Status: Transmission error (TermSTS = 0BH) Detailed information: Incorrect control request specification (0083H) A mode that has already been established cannot be requested.
  • Page 51: Computer Link Protocol And The Pc Link Protocol Transmission

    T series computer link protocol. When a T2N and a host computer communicate over an Ethernet Port using the computer link protocol, they use UDP/IP as the transmission protocol.
  • Page 52: Sample Computer Link Protocol Program

    This section presents a sample program that runs on the host computer (a personal computer or workstation) and that uses computer link protocol transmission. This program issues a read/write request for 32 words from the start of the T2N D registers. Operating environment...
  • Page 53 /**********************************************************************/ Sample program implementing register read and write processing using the computer link protocol. This program is a sample program designed to verify the T2N Ethernet port computer link function. This program issues read and write requests to the specified T2N registers.
  • Page 54 /*---------------------------*/ /* Prototype declarations /*---------------------------*/ cl_send( int ); void main() ists; isdp ; struct sockaddr_in Soc; WORD wVersionRequested = (0,1); WSADATA WsaDtata ; ists = 0 ; ists = WSAStartup( wVersionRequested, &WsaDtata ) ; if( ists == 0 ){ isdp = socket(AF_INET, SOCK_DGRAM, 0); if( isdp != INVALID_SOCKET ){ Soc.sin_family = AF_INET;...
  • Page 55 /* SLW */ /**********************************************************************/ cl_send - Register read/write processing /**********************************************************************/ Calling sequence cl_send(); /* Arguments: Isdp : int ists : int /**********************************************************************/ int cl_send( int Isdp ) j, k ists = 0 ; iret ircvsiz isndsiz icunt idat char csnd[ 1000 ] ; char crcv[ 1000 ] ;...
  • Page 56 sprintf( &csnd[ strlen( csnd ) ], "%02d", idat ) ; sprintf( &csnd[ strlen( csnd) ], "," ) ; icunt = 0 ; for( j = 0, k = 0; k < DATASIZ; k++ ){ sprintf( &csnd[ strlen( csnd) ], "%04X", k ) ; j = j + 4 ;...
  • Page 57 idat = DATASIZ ; sprintf( &csnd[ strlen( csnd ) ], "%02d", idat ) ; sprintf( &csnd[ strlen( csnd )], ")¥r" ) ; isndsiz = strlen(csnd) ;/* Set up the data transmission length. ists = sendto( Isdp, csnd, isndsiz, 0, (struct sockaddr *)&Snd,sizeof( Snd ) ); if( ists == isndsiz ){ memset(&ibits,0x00,sizeof(fd_set));...
  • Page 58: Pc Link Protocol Transmission (Data Write)

    5.3 PC Link Protocol Transmission (Data write) The T series PC link protocol allows one T2N on a network to write register data to another T2N or T3H. As is the case with the computer link protocol, the PC link protocol uses UDP/IP as its transmission protocol.
  • Page 59 0004H D register Figure 5.1 *1 Includes the expansion F registers. One bank has 8k words (0 to 8191). Bank number ... 00H: T2N internal registers 01H to 03H: Expansion F registers Meaning F register (0 - 8191) F register (0 - 65535)
  • Page 60 The write operation is not synchronized with the remote port T2N/T3H scan operation. If synchronization is necessary, applications must perform synchronization processing, such as transferring the data to a separate registers at the start of the T2N scan. The command number (0021H) is the same as the "Data Read".
  • Page 61 Write protection can be specified for each register type on the local T2N by using the special coil settings described below. In this case, a memory write protect error (TermSTS = 04H) will occur. SW C SW067 Special registers Counter registers...
  • Page 62: Pc Link Protocol Transmission (Data Read)

    5.4 PC Link Protocol Transmission (Data read) The T series PC link protocol allows a T2N on the network to read register data from another T2N or T3H port's registers into its own registers. As is the case with the computer link protocol, the PC link protocol uses UDP/IP as its transmission protocol.
  • Page 63 The read operation is not synchronized with the remote port T2N/T3H scan operation. If synchronization is necessary, applications must perform synchronization processing, such as transferring the data to a separate registers at the start of the T2N scan. The command number (0021H) is the same as the "Data Write".
  • Page 64 Read protection can be specified for each register type on the local T2N by using the special coil settings described below. In this case, a memory write protect error (TermSTS = 04H) will occur.
  • Page 65: Sample Pc Link Protocol Transmission Program

    5.5 Sample PC Link Protocol Transmission Program This section presents a sample program that uses PC link protocol transmission. This program creates increment data within the local port and writes it to the remote port's registers. Next it reads out the same area and compares it with the data within the local port to check that the function succeeded.
  • Page 66 |R0520 1|-| |------------------------------------------------------------( )--| |/* PC link preparation */ |R0520 2|-| |---|^|-+[ 01000 MOV RW090][ 00000 MOV RW091][ 00400 MOV RW092]---| /* Number of executions, Operation on error |occurrence, Transfer data length */ +[ 00004 MOV RW093][ 01000 MOV RW094]---------------------| /* Transmission source register type, start number +[ 00004 MOV RW095][ 02000 MOV RW096]---------------------| /* Transfer destination register type, start number */...
  • Page 67 |/* Register write */ |R0092 4|-| |-+[12544 MOV W0903][00033 MOV W0904]----------------------------| | /* Designates the module and sets the CMD number. */ +[RW092 MOV W0905]--------------------------------------------| | /* Sets the transfer register data length. +[RW093 MOV W0906][RW094 MOV W0907]----------------------------| | /* Sets the transmission source register type, start number. */ +[RW095 MOV W0908][RW096 MOV W0909]----------------------------| | /* Sets the transfer destination register type, start number.
  • Page 68 |/* Comparison check */ |R0094 6|-| |-+[00001 MOV W0940]------+[00001 MOV W0941][00980 MOV W0942]-------| +-|^|--[RW094 RW093 DMOV W0948 W0947][RW098 RW097 DMOV W0950 W0949]| |R0095 +-|/|---|^|-+[W0947 XFER W0940 -> W0941]--------------------------| +[W0949 XFER W0940 -> W0943]---------------------( )--| |R0096 +-| |-+[W0980 = W0981][ +1 RW190]---------------------------------| +[W0980 <>...
  • Page 69: Socket Interface Communication

    Chapter 6 presents information related to using the functions provided by the Ethernet Port from a T2N, including the instruction (request) format, important items that require attention, and sample programs. That chapter also presents items considered necessary when using the Ethernet Port.
  • Page 70 Differences between the UDP socket interface and the TCP socket interface UDP socket interface (See figure 6.2.) Provides an in/out port (socket) for data communication between a transmission source port and a transmission destination port. Data for the transmission source and transmission destination (IP addresses and port numbers) is specified in the send/receive data.
  • Page 71 TCP socket interface (See figures 6.3 and 6.4.) In TCP communication, a pipe-like virtual communications line (connection) is established between sockets on two ports that are communicating (sending and receiving), and since the protocol handles control of reception verification and retransmission processing, it provides a highly reliable communication.
  • Page 72 Client side (Active open) Closed state Connection establishment request Active open Connection established Data transmission Data transmission Acknowledge response (ACK) Next data transmission Next data transmission Data transmission Acknowledge response (ACK) Data reception Data transmission Acknowledge response (ACK) Data reception Data transmission Close request Closed state...
  • Page 73: Ethernet Port Socket Interface Usage Notes

    Data handling and data segmentation in UDP socket interface transmission and reception In UDP socket interface transmission, data sent in a single transmission is handled by the receiving Ethernet Port as a single data unit, and that data is transmitted to the T2N in a batch operation by a receive request.
  • Page 74 The T2N receives the data which specifies the size of reception data in the transfer parameter from the Ethernet Port. Allocate an area one word larger than the transmitted data size as the T2N register area that will hold the received data. As the result of a receive request, information indicating the size of the transmitted data for the single operation plus the data transmitted in the single operation will be stored in that area.
  • Page 75 In the Ethernet Port TCP socket interface, up to 4380 bytes of received data can be stored per socket. Also note that up to 2000 bytes of data can be transferred to the T2N for a single receive request from the T2N. For example, if the remote port sends 800 bytes at a time, then the amount of received data per socket may be either 800, 1600, 2400, 3200, or 4000 bytes.
  • Page 76 A data item consisting of A and B will be passed to the requester. ° If B was not received, another receive request can be issued from the T2N to acquire B. 6 F 3 B 0 3 6 2...
  • Page 77 When the transmission data is fragmented as discussed above, the amount of data transferred to the T2N in a TCP socket interface receive request differs depending both on the timing with which the T2N issues the receive request and the timing with which the data arrives at the Ethernet Port.
  • Page 78 Packets traveling on the transmission path (72 to 1526 IP datagram bytes) (46 to 1500 bytes) Data fields in the packets traveling on the transmission path Figure 6.8 Preamble (7 bytes) Signal used to synchronize reception SFD (Start Frame Delimiter) (1 byte) Remote port address (6 bytes) Local port address (6 bytes) Ethernet type (2 bytes)
  • Page 79 TCP sockets, this buffer of about 60k bytes do not become full. In the case of UDP socket, the amount of reception data is no limit. So, if the T2N does not receive the reception data in the socket, the common transfer/reception buffer may become full. In this case, new incoming data will be discarded and the T2N can not transmit data, either (the send request is insufficient resources error).
  • Page 80 TCP receive request If this time limit is exceeded, a "timeout" error is issued. In particular, the Ethernet Port reports the timeout error to the T2N. The Ethernet Port uses a priority ordering in processing sockets 1 through 8. Therefore, systems constructed so that socket 1 is activated frequently may not be able to process socket 8, resulting in "Transmission completion timeout"...
  • Page 81 When the Ethernet Port issues a close request first, the Ethernet Port waits 10 seconds. If the T2N using the same port number reopen request during waiting for 10 seconds, the T2N becomes “LAN controller driver error”.
  • Page 82 (acknowledge response) to the port that sent the data. Since an ACK will not be sent to the sending port if the received data remains in the Ethernet Port if the T2N does not read out that received data, the sending port will resend the data. If this state continues for a predetermined period, the sending port may will decide that the TCP connection is abnormal and close the connection.
  • Page 83: Socket Interface Information

    The information for the eight socket interface sockets held by the Ethernet Port can be read out with the T2N READ instruction. The Ethernet Port holds five words of socket status information for each socket. User programs should access this information as necessary when using socket interface transmission.
  • Page 84 Condition under which the bit is set to 1 TCP used by the socket UDP used by the socket AOPEN TCP socket in active open state POPEN TCP socket in passive open state or UDP socket in open state CONN TCP connection established Received text present RCLOSE...
  • Page 85: Using The Ethernet Port Socket Interface

    6.4 Using the Ethernet Port Socket Interface This section describes the requests used by T2N user programs to use UDP and TCP sockets. There are eight types of request as listed below. UDP socket (open request, send request, receive request, close request)
  • Page 86 TCP port number. An error will occur if the port number overlaps. Status: Transmission error (TermSTS = 0BH) Detailed information: Already open (0080H) If the T2N internal completion wait time limit (2 seconds) is exceeded for this request, the error listed below is returned. Status: Send completion timeout (TermSTS = 06H) In this case, first verify that the Ethernet Port is not in the down state by checking the station status, and then verify the open/closed state of the socket in the socket status.
  • Page 87 UDP open processing example Ladder program flowchart UDP open processing start Socket status read/verify Are bits C and D both 0? (Closed state?) Execute a UDP open request (CMD = 0031H). Hold the input of function block in the on state until the SEND instruction completes.
  • Page 88 UDP send request/broadcast send request (using the SEND instruction) Function This request sends local port register data using an open UDP socket. Amount of data sent: 1 to 1000 words Transfer parameters 3100H CMD = 0032H SportNO DIPAddress D_UDP_PORTNO WordSize SRID StreqNOD Transmission data storage register type code: Type code for the register that holds the...
  • Page 89 Status: Boundary error (TermSTS = 0AH) If the T2N internal completion wait time limit (2 seconds) is exceeded for this request, the error listed below is returned.
  • Page 90 UDP transmission processing example Ladder program flowchart UDP transmission processing start Socket status read/verify Are bits C and E both 1? (Opened state?) Execute a UDP send request (CMD = 0032H). Hold the input of function block in the on state until the SEND instruction completes.
  • Page 91 UDP receive request/broadcast receive request (using the RECV instruction) Function If an opened UDP socket receives data, read the received data into registers on the local port. If no data has been received, wait until data arrives (the wait time can be set) and then, after reception, read the received data into the local port registers.
  • Page 92 Reception data count (bytes) Reception data The T2N checks for register area allocation of the reception data size plus one word and returns an error if the register area does not exist. Status: Boundary error (TermSTS = 0AH) In this case, data is not transferred to the register area, and the data is discarded.
  • Page 93 Status: Transmission error (TermSTS = 0BH) Detailed information: Insufficient data size(00C1H) If this error is occurred, a reception data storage register of the T2N enters the data following below. The data of slash bar is not received to T2N and discarded.
  • Page 94 UDP reception processing example (Socket status monitoring type) Ladder program flowchart UDP reception processing start Socket status read/verify Are bits C and E both 1? (Opened state?) Is bit A set to 1? (Reception text present.) Execute a UDP receive request (CMD = 0033H).
  • Page 95 UDP reception processing example (Receive request issued first type) Ladder program flowchart UDP reception processing start Socket status read/verify Are bits C and E both 1? (Opened state?) Execute a UDP receive request (CMD = 0033H). Hold the input of function block in the on state until the RECV instruction completes.
  • Page 96 Ethernet Port, the result is a send request timeout even if the instruction was a RECV instruction. If the T2N internal completion wait time limit (2 seconds) is exceeded for this request, the error listed below is returned.
  • Page 97 UDP close processing example Ladder program flowchart UDP close processing start Socket status read/verify Are bits C and E both 1? (Opened state?) Execute a UDP close request (CMD = 0034H). Hold the input of function block in the on state until the SEND instruction completes.
  • Page 98 TCP open request (using the SEND instruction) Function This request opens (active/passive) any of the eight sockets. Transmission protocol: TCP/IP Transfer parameters 3100H CMD = 0035H SportNO Kind DIPAddress DTCP_PORTNO STCP_PORTNO TimeCNT Open type (1 or 2) 1: Active open (client side) 2: Passive open (server side) Open wait timeout time: specified in 0.1 second units.
  • Page 99 Not only must the specified socket TCP port number on the local port not overlap with any TCP port number already in use in a local port socket, but it also must not overlap with any UDP port numbers or UDP port numbers used for message transmission. An error will occur if the port number overlaps.
  • Page 100 TCP open processing example Ladder program flowchart TCP open processing start Socket status read/verify Are bits C and D both 0? (Closed state?) Execute a TCP open request (CMD = 0035H). Active or passive open Hold the input of function block in the on state until the SEND instruction completes.
  • Page 101 TCP send request (using the SEND instruction) Function This request sends local port register data using an open TCP socket. Amount of data sent: 1 to 1000 words Transfer parameters 3100H CMD = 0037H SportNO WordSize SRID StreqNOD Transmission data storage register type code: Transmission data storage register number: Status (See figure 4.3 for details on bits C, D, E and F.) Detailed information (Only valid when TermSTS = 0BH.)
  • Page 102 Power may have been lost. The remote ports and/or local port may have become disconnected from the network. If the T2N internal completion wait time limit (2 seconds) is exceeded for this request, the error listed below is returned. Status: Send completion timeout (TermSTS = 06H) In this case, first verify that the Ethernet Port is not in the down state by checking the station status, and then perform the required error handling.
  • Page 103 The Ethernet Port uses a priority ordering in processing sockets 1 through 8. Therefore, systems constructed so that socket 1 is activated frequently may not be able to process socket 8, resulting in the following error response: Status: Send completion timeout (TermSTS = 06H) When constructing a system, take the socket utilization conditions into account when allocating sockets.
  • Page 104 TCP transmission processing example Ladder program flowchart TCP transmission processing start Socket status read/verify Are bits B and F both 1? (Is a connection established?) Are bits 8 and 9 both 0? (In neither the RCLOSE nor NOACK state?) Execute a TCP send request (CMD = 0037H).
  • Page 105 TCP receive request (using the RECV instruction) Function If an opened TCP socket receives data, read the received data into registers on the local T2N. If no data has been received, wait until data arrives (the wait time can be set) and then, after reception, read the received data into the local T2N registers.
  • Page 106 The T2N checks for register area allocation of the reception data size plus one word and returns an error if the register area does not exist. Status: Boundary error (TermSTS = 0AH) In this case, data is not transferred to the register area, and the data is discarded. The data is not retained in the Ethernet Port either.
  • Page 107 (acknowledge response) to the port that sent the data. Since an ACK will not be sent to the sending port if the received data remains in the Ethernet Port if the T2N does not read out that received data, the sending port will resend the data. If this state continues for a predetermined period, the sending port may will decide that the TCP connection is abnormal and close the connection.
  • Page 108 TCP reception processing example (Socket status monitoring type) Ladder program flowchart TCP reception processing start Socket status read/verify Are bits B and F both 1? (Is a connection established?) Is bit 9 set to 0? (In the state other than RCLOSE?) Is bit A set to 1? (Reception text present.) Execute a TCP receive request...
  • Page 109 TCP reception processing example (Receive request issued first type) Ladder program flowchart TCP reception processing start Socket status read/verify Are bits B and F both 1? (Is a connection established?) Is bit 9 set to 0? (In the state other than RCLOSE?) Execute a TCP receive request (CMD = 0038H).
  • Page 110 Status: Transmission completion timeout (TermSTS = 06H) Supplement: The T2N sees its requests (module control and socket interface transmission) to the Ethernet Port as being "transmission" requests. As a result, when a request is forcibly terminated and a response is not received from the Ethernet Port, the result is a send request timeout even if the instruction was a RECV instruction.
  • Page 111 If the T2N executes a open request in the same port number while the Ethernet Port is waiting for a close request from a remote port, a open request will result in an error being returned.
  • Page 112 e. TCP close processing example Ladder program flowchart TCP close processing start Socket status read/verify Are bits B and F both 1? (Is a connection established?) Execute a TCP close request (CMD = 0039H). Hold the input of function block in the on state until the SEND instruction completes.
  • Page 113: Sample Programs

    6.5 Sample Programs This section presents sample programs using UDP and TCP sockets. UDP sockets This is a sample program that issues the requests used with UDP sockets. It assumes that the parameter set up and operating mode control requests (run mode/socket interface transmission enable) have already completed.
  • Page 114 UDP close request This program issues a UDP close request for socket number 2 on the Ethernet Port. This ladder program is executed by turning on the A contact on the R0623. Parameters: 12544: 3100H, 00052: 0034H /* UDP close request: executed when R0623 is set on. */ |R0623 1|-| |-+[12544 MOV RW000][00052 MOV RW001]----------------------------| /* Module designation, CMD number setup...
  • Page 115 UDP send request This program issues a UDP send request for socket number 2 on the Ethernet Port. This ladder program is executed by turning on the A contact on the R0622. Parameters: 12544: 3100H, 00050: 0032H 0341995909: 14627185H Transmission destination IP address: 133.113.98.20 Transmission destination object socket UDP port number: 3000 Transmission data word count: 1000 Transmission data storage registers: D1000 and above...
  • Page 116 UDP receive request This program issues a UDP send request for socket number 2 on the Ethernet Port. This ladder program is executed by turning on the A contact on the R0621. Parameters: 12544: 3100H, 00051: 0033H 0341995909: 14627185H Transmission source IP address: 133.113.98.20 Transmission source object socket UDP port number: 3000 Reception data word count: 1000 Reception data storage registers: D2500 and above...
  • Page 117 TCP sockets This is a sample program that issues the requests used with TCP sockets. It assumes that the parameter set up and operating mode control requests (run mode/socket interface transmission enable) have already completed. TCP open request (passive) This program issues a TCP open request (passive) for socket number 8 on the Ethernet Port. This ladder program is executed by turning on the A contact on the R0630.
  • Page 118 TCP open request (active) This program issues a TCP open request (active) for socket number 8 on the Ethernet Port. This ladder program is executed by turning on the A contact on the R0640. Parameters: 12544: 3100H, 00053: 0035H 341995909: 14627185H Remote port IP address: 133.113.98.20 Remote port object socket TCP port number: Local port specified socket TCP port number:...
  • Page 119 TCP close request This program issues a TCP close request for socket number 8 on the Ethernet Port. This ladder program is executed by turning on the A contact on the R0633. Parameters: 12544: 3100H, 00057: 0039H /* TCP close request: executed when R0633 is set on. */ |R0633 1|-| |-+[12544 MOV RW000][00057 MOV RW001]----------------------------| /* Module designation, CMD number setup...
  • Page 120 TCP send request This program issues a TCP send request for socket number 8 on the Ethernet Port. This ladder program is executed by turning on the A contact on the R0632. Parameters: 12544: 3100H, 00055: 0037H Transmission data word count: 1000 Transmission data storage registers: D1000 and above /* TCP send request: executed when R0632 is set on.
  • Page 121 TCP receive request This program issues a TCP receive request for socket number 8 on the Ethernet Port. This ladder program is executed by turning on the A contact on the R0631. Parameters: 12544: 3100H, 00056: 0038H Reception data word count: RW103 Reception data storage registers: D4000 and above Reception data transfer destination registers: D1001 and above Reception timeout time: 1800 seconds...
  • Page 122 /* TCP fragmented data reception processing */ |R0635 R063D 2|-| |-+-|/|--[RW000 RECV RW010][SET R063D]----------------------------| /* Request setup |R063D +-| |-+-|^|--[RTR1D4000]----------------------------------------| /* Reception data count conversion (bytes to |words) */ |R063E +-|/|-+[RW021 XFER RW025 /* Reception data transfer (D4001 to D1001) */ +[ +1 RW009][ +1 RW022][ +1 RW024]------------------| /* Increment address and pointer.
  • Page 123: Ras Information

    This chapter describes the following RAS functions provided by the Ethernet Port. Chapter 7 presents information related to using the functions provided by the Ethernet Port from a T2N, including the instruction (request) format, important items that require attention, and sample programs.
  • Page 124: T2N Special Relays And Registers

    Name S000B Ethernet Port error (warning) Special registers T2N read out the internal station status of Ethernet Port and copy the SW register (the renewing cycle of 100 ms). Station status format DOWN STBY Bit F: DOWN (down)...1: Down mode, 0: Other than down mode Bit E: INZ (initialization) ...1: Initialization in progress...
  • Page 125 Operation mode and station status of Ethernet Port Each bit of station status has the following mean. If you want to judge the mode (initialize mode/ run mode/ standby mode), look at the value of the register. The mode of Ethernet Port During initialize (Power on / Reset request) Standby mode (initialize processing normally complete) Run mode : Allows the message transmission...
  • Page 126: Down Information

    7.2 Down Information When an Ethernet Port goes to down mode, the factor that caused that transition is stored in the T2N interface buffer as one word of data. This data can be read by the T2N with the READ instruction.
  • Page 127: Remote Port Verification Request

    7.3 Remote Port Verification Request This request verifies the existence of the specified remote port, and corresponds to the UNIX ping command. This request can be issued when the Ethernet Port operating mode is either run or standby mode. The Ethernet Port will respond to this request if its operating mode is either run or standby mode.
  • Page 128 Sample program This sample ladder program issues a remote port verification request to the Ethernet Port. This program is executed by turning on the R0504 A point. Parameters: 12544:3100H, 00020:0014H, 341995909;14627185H 85H. 71H. 62H. 14H 133. 113. 98. 20 |R0504 1|-| |-----------------------------------------------------------( )--| /* Remote port verification request */ |R0604...
  • Page 129: Remote Port Loopback (For An Ethernet Port)

    This request cannot be executed unless message transmission is enabled with an operating mode control request. In response to a request from a user program, the T2N OS performs the processing using the Ethernet Port PC link protocol. User programs on the loopback destination do not take part in this operation.
  • Page 130: Time Setting

    +[W0903 SEND W0914][RST R0092]---------------------------------| /* Sets the request. */ 7.5 Time Setting The Ethernet Port internal time is set from the T2N. This information is used as the time information in the Ethernet Port event trace. SW C RW LW W XW/YW...
  • Page 131: July

    This request can be executed in run or standby mode. The time set here is updated by the Ethernet Port internal timer, and thus may get out of synchronization with the T2N time. We recommend setting the Ethernet Port time once a day.
  • Page 132 Sample program This sample ladder program issues a time set request to the Ethernet Port. This program is executed by turning on the R0508 A point. Parameters: 12544:3100H, 00024:0018H, 01942:0796H, 05124:1404H, 00048:0030H |R0508 1|-| |-----------------------------------------------------------( )--| /* Time set request */ |R0608 2|-| |-+[12544 MOV RW000][00024 MOV RW001]----------------------------| /* Designates the module and sets the CMD number.
  • Page 133: Ras Information Readout

    7.6 RAS Information Readout This request reads out the Ethernet Port RAS information (internal error information and phenomenon history) from a user program. RAS information readout request (using the RECV instruction) Function This request reads out the Ethernet Port RAS information from a user program. Transfer parameters 3100H CMD = 0015H...
  • Page 134 Status (See figure 4.3 for details on bits C, D, E and F.) Detailed information (Only valid when TermSTS = 0BH.) Important items This request can be used in run and standby modes. The read out RAS information is stored in the specified register area as shown below. RAS information Specified register start address word count...
  • Page 135 Sample program This sample ladder program issues a RAS information readout to the Ethernet Port. This program is executed by turning on the R0505 A contact. Parameters: 12544:3100H, 00021:0015H RAS storage registers: Starting at D0000. RAS request type: Event trace information, reads out 30 items starting with the most recent data.
  • Page 136 RAS information details (1) RAS counters...LAN controller (line) information Reads out 128 words of data using RAS information readout. Table 7.2 Symbol Description RAS_CNT [0] Normal reception count RAS_CNT [1] Bus read error (reception buffer read failure) count RAS_CNT [2] Remote reset packet reception count (Packets whose Ethernet header type was set to 0900H.) RAS_CNT [3]...
  • Page 137 (3) MIB information: MIB_IP...IP protocol information Reads out 17 words of data using RAS information readout. Symbol Description MIB_IP [0] Indicate IP gateway in action or not action MIB_IP [1] Default TTL (Time to Live) of IP packet MIB_IP [2] Total number of IP datagrams received from the interface MIB_IP [3] Number of IP datagrams discarded due to format errors...
  • Page 138 (5) MIB information: MIB_UDP ... UDP protocol information Reads out 4 words of data using RAS information readout. Table 7.6 Symbol Description MIB_UDP [0] Number of UDP datagrams transferred upstream MIB_UDP [1] Number of datagrams addressed to unused ports MIB_UDP [2] Number of datagrams discarded due to format errors MIB_UDP [3] Number of datagrams transferred from upstream...
  • Page 139 6 F 3 B 0 3 6 2 Content Initialization error NMI occurrence factor Start type Mode change (station status) Instruction storage buffer allocation error Transmission prohibit T2N driver reception or response code error T2N-Ethernet Port interface completion error Message transmission completion error Socket transmission completion error...
  • Page 140 Packets traveling on the transmission path (72 to 1526 IP datagram bytes) (46 to 1500 bytes) Data fields in the packets traveling on the transmission path Figure 7.1 Preamble (7 bytes) Signal used to synchronize reception SFD (Start Frame Delimiter) (1 byte) Remote port address (6 bytes) Local port address (6 bytes) Ethernet type (2 bytes)
  • Page 141: Error Handling

    8. Error Handling This chapter describes the error analysis and recovery procedures for errors that occur while using the Ethernet Port. Also refer to the T2N user's manual when recovering from Ethernet Port-related errors. 8.1 LED Display The Ethernet Port indicates its Ethernet Port status in the ERUN, ET/R and EACC LEDs.
  • Page 142 Down mode due to the occurrence of an error during self diagnostics at power on. Possible causes of the Ethernet Port going down LAN controller check error ROM BCC check found a discrepancy System RAM area check error T2N interface buffer check error Down information error code 0010 0020 0030...
  • Page 143 If this LED does not light after power is turned on: Verify that the T2N is correctly connected to the base unit. If this LED does not light at above, then the T2N itself is defective. Replace the T2N. Supplement: We recommend keeping spares on hand to minimize the time required to determine the location of the fault using and to minimize the time required for recovery.
  • Page 144: Status (Error Status)

    If a SEND/RECV instruction does not complete normally, refer to the detailed information (Ethernet Port error response) and the status and review the instruction word format at the T2N and Ethernet Port states (operating modes). The detailed information is stored in the register following the completion status when the completion status TermSTS value indicates a transmission error (0BH).
  • Page 145 • Occurs if the Ethernet Port returns an error response. • Occurs if the T2N cannot access the Ethernet Port. No I/O response (Reserved) • Occurs if a request is discarded when a T2N internal resource insufficiency Send data capacity exceeded • Occurs if a T2N retransmission times out.
  • Page 146 Parameter setup, b. MAC address setup, c. Reset Occurs if the MAC address or IP address is not set up. • Occurs if a PC link request was issued from the T2N in run mode in the message transmission prohibited state.
  • Page 147: T2N Special Relays And Registers

    8.3 T2N Special Relays and Registers The Ethernet Port status information is reflected in the T2N special relays and special registers. Special relays Special relay Name S000B Ethernet Port error (warning) Special registers Station status format DOWN STBY Bit F: DOWN (down)...1: Down mode, 0: Other than down mode Bit E: INZ (initialization) ...1: Initialization in progress...
  • Page 148: Socket Interface Information

    The information for the eight socket interface sockets held by the Ethernet Port can be read out with the T2N READ instruction. (See Section 6.3 Socket Interface Information.) The Ethernet Port holds five words of socket status information for each socket.
  • Page 149: Troubleshooting

    If the Ethernet Port is functional, then the Ethernet Port can be initialized and brought to the standby state (with the ERUN LED lit) by applying power or by issuing a reset request. START Is power supplied to the T2N power supply module? Is the T2N correctly mounted in the base unit? Replace the PU235N/245N.
  • Page 150 If the Ethernet Port fails to enter run mode This section assumes that the Ethernet Port has come up normally up to this point. Note that the parameters must be set up with a parameter setup request before issuing the operating mode control request used to switch the Ethernet Port from standby mode to run mode.
  • Page 151 Operating mode control request START Is an operating mode control request executed? Does the SEND instruction complete? Have the parameters not been set up yet? Check the status and resolve the error. Set up correct specification information and issue an operating mode control request. Verify the status using the procedure described in the item 3 "...
  • Page 152 If computer link protocol transmission fails Host computer side (main port) START Is the transmission destination IP address set to that of the slave Ethernet Port? Is the transmission destination message transmission UDP port number correct? Did the computer link protocol return without errors? Does a response come back if a ping is issued to the slave Ethernet...
  • Page 153 Ethernet Port side (slave port) START Is the station status such that run + message transmission is enabled? Does a response come back if a ping is issued to the host computer? Is the error counter read out from the RAS information constant (i.e., not being incremented)? (Use RAS information readout to determine this.)
  • Page 154 If PC link protocol transmission fails Main port side Ethernet Port START Does the SEND/RECV instruction complete? Was there a response timeout? (TermSTS = 02H) Is the transmission destination IP address set to that of the slave Ethernet Port? Is the slave port message transmission UDP port correct? Does a response come back if a ping is issued to the slave Ethernet...
  • Page 155 Ethernet Port side (slave port) START Is the station status such that run + message transmission is enabled? Does a response come back if a ping is issued to the main Ethernet Port? Is the error counter read out from the RAS information constant (i.e., not being incremented)? (Use RAS information readout to...
  • Page 156 If transmission using UDP sockets fails Open and close requests START Does the SEND instruction complete? Is the station status such that run + socket transmission is enabled? Check the status and resolve the error. Verify the status using the procedure described in the item 3 "...
  • Page 157 Send request START Does the SEND instruction complete? Is the station status such that run + socket transmission is enabled? Is the transmission destination IP address set to that of the remote Ethernet Port? Are the UDP ports on the local and remote ports opened? Does the sta tus indicate normal...
  • Page 158 Receive request START Did the RECV instruction complete? Did the instruction time out? TermSTS = 0BH Details = 0020H ¬ Resolve the problem by referring to the status. Is the remote port Transmit a message at the transmitting? remote port. Are the remote port IP Verify the remote port IP address and UDP port address and UDP port...
  • Page 159 If Transmission Using TCP Sockets Fails When troubleshooting TCP sockets, also refer to the section "TCP socket interface notes" in section 6.2, Ethernet Port Socket Interface Usage Notes. Open request START Did the SEND instruction complete? Did the instruction time out? TermSTS = 0BH Details = 0020H ¬...
  • Page 160 Close request START Does the SEND instruction complete? Is the station status such that run + socket transmission is enabled? Resolve the problem by referring to the status. Verify the status using the procedure described in the item 3 " If a SEND or RECV instruction fails complete"...
  • Page 161 Send request START Verify the status using the procedure described in the Does the SEND instruction item 3 " If a SEND or RECV instruction fails complete" complete? on page 148. Is the station status such that Set the Ethernet Port to run + socket transmission run + socket transmission is enabled using an operating mode control request.
  • Page 162 Receive request START Did the RECV instruction complete? Did the instruction time out? TermSTS = 0BH Details = 0020H ¬ Resolve the problem by referring to the status. Is the remote port Transmit a message at the transmitting? remote port. 1.
  • Page 163 Network check items (Ethernet Port) Check items Transmission 1. Is the twisted pair cable connected medium between the Ethernet Port and HUB? installation 2. How long (in meters) are the twisted pair 10BASE-T cable (i.e. segment lengths)? Network cable 1. Do all ports on the network respond to ping check correctly? 2.
  • Page 164: Installation And Wiring

    4.1, "Installation Environment." Only use this equipment in the environment described in the T2N User's Manual - Hardware. Use in any other environment can cause electrical shocks, fires, failures, and malfunctions.
  • Page 165: Network Wiring

    9.2 Network Wiring See section 3.2, "Network Wiring Equipment," for details on the equipment that makes up the network. This section presents an outline of the wiring laid inside the control panel and outside the control panel. This section also presents individual notes on the twisted pair cables used, the coaxial cables, the AUI cables, and the MAUs.
  • Page 166 Overview of wiring without protective pipes (1) To protect the cables, cables should be passed through flooring ducts or wire protecting cable covers should be used. Note that these cables should not be laid adjacent to cables carrying high currents. (2) Lay cables in gaps in the walls so that they will not be damaged, and run cables under the flooring under equipment so that electromagnetic interference will not occur.
  • Page 167 Considering resistance to noise, we recommend using either covered metal cable ducts or protective steel pipe. Table 9.3 lists the recommended minimum separations for parallel lines in this case. Table 9.3 Recommended Minimum Separation Distance (Covered metal ducts and metal pipe) (Units: mm) Cable installation method Covered metal ducts or metal pipe Parallel separation...
  • Page 168 Wiring routes The desirable routes for laying the transmission cable can be ordered as follows. (1) Using a dedicated route (2) Using a route dedicated to computer system related lines (3) Using a route dedicated to general measurement equipment (4) Using a route dedicated to plant control related lines Overview of panel internal wiring When 10BASE-T is used with the Ethernet Port, twisted pair cable is connected to the Ethernet Port.
  • Page 169 Notes on laying and wiring AUI cable When connecting the AUI cable to the MAU connectors, use the slide latches to secure the connectors firmly. Contact the manufacturer of the cable with regard to the physical characteristics value of the AUI cable allowable minimum bending radius.
  • Page 170: Appendix 1 Maintenance And Inspection

    Check the following items periodically, once every six months. Also, check these points if any surrounding conditions or any aspect of the environmental changes. Inspection item Inspection Power supply systems Measure the power-supply (T2N power supply/MAU voltage at the power-supply power supply) terminals. Check for loose screws at the power-supply terminals.
  • Page 171 Using the module in an abnormal state can lead to malfunctions, breakdowns, and electrical shock. In such cases, immediately turn of all power and contact your local Toshiba dealer or service representative. Customers should never attempt repairs or modifications to this equipment themselves: repair and modification operations are extremely dangerous.
  • Page 172: Appendix 2 Request Code Table

    Reads register data from remote T2N into registers (PC link function) in the local T2N. Register write request Writes register data from the local T2N to registers (PC link function) in remote T2N. Remote port loopback Performs a loopback test with another Ethernet request Port on the network.
  • Page 173: Appendix 3 Status Table

    Appendix 3 Status Table Figure a.1 lists the completion status and detailed information stored in the specified registers during SEND/RECV instruction execution or at instruction completion. Tables A.3 and A.4 list the contents of the TermSTS completion status, and table A.5 lists the contents of the detailed information (the Ethernet Port error response) loaded into the next register after the register used for the completion status.
  • Page 174 No I/O response • Occurs if the T2N cannot access the Ethernet Port. (Reserved) Send data capacity • Occurs if a request is discarded when a T2N internal resource insufficiency exceeded • Occurs if a T2N retransmission times out. (Reserved) Details on the Ethernet Port error response when a transmission error (0Bh) occurs are stored in the register following the status.
  • Page 175 Parameter setup, b. MAC address setup, c. Reset Occurs if the MAC address or IP address is not set up. • Occurs if a PC link request was issued from the T2N in run mode in the message transmission prohibited state.
  • Page 176: Appendix 4 Limitations On The T2N Send And Recv Instructions

    When transmissions using the Ethernet Port occur with high frequency, the T2N internal processing load increases and it is possible for this to interfere with the T2N periodic interrupts and other internal operations. For example, the T2N processing load increase greatly when requests from other ports and requests from the local port occur at the same time in a single Ethernet Port.
  • Page 177 PU245N Conditions for the above table: For the T2N configuration, this table assumes the configuration of figure A.3, in which T2N (PU235N/245N) is mounted in the main base unit. Refer to the T2N User's Manual - Hardware for the processing times for the instructions.
  • Page 178 5 ms (maximum) Conditions for the above table: For the T2N configuration, this table assumes the configuration of figure A.4, in which T2N (PU235N/245N) is mounted in the main base unit. Refer to the T2N User's Manual - Hardware for the processing times for the instructions.
  • Page 179 5 ms (maximum) Conditions for the above table: For the T2N configuration, this table assumes the configuration of figure A.5, in which T2N (PU235N/245N) is mounted in the main base unit. Refer to the T2N User's Manual - Hardware for the processing times for the instructions.

This manual is also suitable for:

Pu235nPu245n

Table of Contents