Page 2 - © Copyright 1998 by Toshiba Corporation Tokyo, Japan; Important Information
1 6 F 3 B 0 3 6 2 © Copyright 1998 by Toshiba Corporation Tokyo, Japan Toshiba Corporation reserves the right to make changes and improvements to thispublication and/or related products at any time without notice. No obligation shall beincurred, except as noted in this publication. This publicat...
Page 3 - Safety Precautions
2 6 F 3 B 0 3 6 2 Safety Precautions Thank you for purchasing the Toshiba PU235N/245N CPU module, which is for use with the T2Nprogrammable controller. This document describes the usage and handling of the PU235N/245N built-in Ethernet Port andpresents important cautionary items. To use the PU23...
Page 5 - Precautions for operation; WARNING; Program Operation Manual
4 6 F 3 B 0 3 6 2 Safety Precautions (continued) • Precautions for operation WARNING 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. Also,...
Page 6 - Mounting in the base unit; Mounting in the Base Unit; Connecting to the network; CAUTION; can damage the PU235N/245N or cause it to malfunction.
5 6 F 3 B 0 3 6 2 Safety Precautions (continued) • Mounting in the base unit CAUTION 1. The Ethernet Port is built-in the PU235N/245N. Do not remove the Ethernet Port from a PU235N/245N. 2. The PU235N/245N itself should only be mounted or removed when all power is turned off. Similarly, connecti...
Page 7 - be reviewed carefully before use in an actual system.; Installation environment and base unit mounting; Installation Environment and Base Unit Mounting
6 6 F 3 B 0 3 6 2 Safety Precautions (continued) Concerning: • Preparing for operation (software) • Computer link protocol and the PC link protocol transmission • Socket interface communication • RAS information CAUTION 1. Chapters 4 - 7 present information related to using the functions provide...
Page 8 - Basic points in laying out a network; precautions and standards.; Maintenance; authorized Toshiba service representative.
7 6 F 3 B 0 3 6 2 Safety Precautions (continued) • Basic points in laying out a network CAUTION 1. When laying network cable, take adequate safety measures and perform all operations in accordance with the relevant standards. See the ISO/IEC8802-3 standard for details on laying networks. 2. We s...
Page 9 - Support for 10BASE-T network; Usage Recommendations; Basic Functionality; Ethernet Port registration; Usage Recommendations; Restrictions on subnet masks; Usage Recommendations; in systems that operate a subnetwork.
8 6 F 3 B 0 3 6 2 Usage Recommendations This section collects the knowledge and operations that should be known by all users of thisequipment. Read this section carefully in conjunction with the safety precautions, thoroughlymaster knowledge of the equipment, safety information, and the items th...
Page 10 - Computer link protocol transmission; Computer Link Protocol Transmission; Limitations on the T2N SEND and RECV instructions; Appendix 4 Limitations on the T2N SEND and RECV Instructions
9 6 F 3 B 0 3 6 2 Usage Recommendations (continued) • Computer link protocol transmission Usage Recommendations 1. Since UDP/IP does not provide control functions to guaranteed communication reliability, higher level protocols (such as retry) are required. 2. No processing is performed if a comp...
Page 11 - Before Reading This Document; Chapter 1: Ethernet Port Overview
10 6 F 3 B 0 3 6 2 Before Reading This Document Thank you for purchasing a Toshiba PROSEC T2N multi-purpose programmable controller. This manual describes the T2N Ethernet Port specifications and usage, and presents sampleprograms for the Ethernet Port used with the PROSEC T2N. The PU235N has Et...
Page 12 - and Function; Registered trademarks:; Ethernet is a registered trademark of Xerox Corporation.
11 6 F 3 B 0 3 6 2 Chapter 9: Installation and Wiring Describes the procedures for installing the Ethernet Port (and T2N), procedures for layingtransmission cable, and the nature of the construction required. Appendix Presents request code, completion status value, and error code tables and desc...
Page 13 - Contents
12 6 F 3 B 0 3 6 2 Contents Safety Precautions ………………………………………………………………………… 2 Usage Recommendations ………………………………………………………………… 8 Before Reading This Document …………………………………………………………… 10 1. Ethernet Port Overview ………………………………………………………………… 14 1.1 System Configuration Using the Ethernet Port ……………………...
Page 14 - Appendix
13 6 F 3 B 0 3 6 2 6. Socket Interface Communication ……………………………………………………… 68 6.1 Overview ………………………………………………………………………… 68 6.2 Ethernet Port Socket Interface Usage Notes ………………………………………… 72 6.3 Socket Interface Information ……………………………………………………… 82 6.4 Using the Ethernet Port Socket Interface ………...
Page 15 - Ethernet Port Overview; System Configuration Using the Ethernet Port; HUB; Host machine
14 6 F 3 B 0 3 6 2 1. Ethernet Port Overview 1.1 System Configuration Using the Ethernet Port This section describes the systems that can be configured using the PU235N/245N Ethernet Portfor the PROSEC T2N programmable controller. The remainder of this document refers to thePROSEC T2N programmab...
Page 16 - LAN Standards and Terminology; Table 1.1 Networking Terminology Correspondences; Ethernet is a registered trademark of Xerox, Corporation.
15 6 F 3 B 0 3 6 2 1.2 LAN Standards and Terminology The LANs commonly referred to as Ethernet LANs are defined by two standards, the Ethernetversion 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 stand...
Page 17 - The Ethernet Port has the following main features.; T series computer link protocol transmission (slave port); Computer link protocol uses UDP/IP as the transmission protocol.
16 6 F 3 B 0 3 6 2 1.3 Basic Functionality The Ethernet Port has the following main features. 1. T series computer link protocol transmission (slave port) The host machine can upload or download user programs, execute control commands, and read orwrite register data to a T2N on the 10BASE-T LAN ...
Page 18 - T series/PC link protocol transmission; User datagram protocol/Internet protocol .; Figure 1.3 T Series/PC Link Protocol Transmission
17 6 F 3 B 0 3 6 2 2. 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 the10BASE-T LAN. While T2N user programs for reading and writing are necessary to use the host functions, only thebasic Ethernet Port settin...
Page 19 - Socket interface support; Figure 1.4 Socket Interface
18 6 F 3 B 0 3 6 2 3. Socket interface support This is a standard communications technique used on engineering workstations and similarcomputers. Transmission between user programs on the T2N and host machines is possible usingthe socket interface. There are eight sockets on an Ethernet Port and...
Page 20 - PC (programmable controller) gateway function; Figure 1.5 Gateway Function
19 6 F 3 B 0 3 6 2 4. PC (programmable controller) gateway function ∗ 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 theTOSLINE-S20LP Port. This function will allow access to station...
Page 21 - Support for 10BASE-T Network; The Ethernet Port can connect to a 10BASE-T network
20 6 F 3 B 0 3 6 2 5. 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 transmissionrate of 10 Mbps, and supports single segments of up to 100 meters in length. This network uses 10BASE-T...
Page 22 - Ethernet Port Specifications; Table 1.2 Functional Specifications; Item
21 6 F 3 B 0 3 6 2 1.4 Ethernet Port Specifications Table 1.2 lists the Ethernet Port specifications. The general specifications of the Ethernet Portconform to those of the T2N main unit. Table 1.2 Functional Specifications Item Specification Module type PU235N/245N (Ethernet Port is built-in) T...
Page 23 - Software Organization; Ethernet Port interface; Figure 1.7 Software Organization; The Ethernet Port supports the following:
22 6 F 3 B 0 3 6 2 1.5 Software Organization The Ethernet Port transmission functions (computer link protocol transmission, PC link protocoltransmission and socket interface transmission) are implemented with the software organizationshown in the figure. T2N user program T2N firmware Computer li...
Page 25 - Ethernet Port Parts and Functions; Port parts
24 6 F 3 B 0 3 6 2 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 EACC SRUN SONL SACC STNH STNL OTR1 OTR2 TOSLINE-S20LP Port parts (PU245N only) 10BASE-T Ethernet Port 10BASE-T connector for connecting ...
Page 26 - Component Functions; Indicators that display the Ethernet Port operating state.; LED display; Content Displayed; Table 2.1 LED Display Content; ERUN
25 6 F 3 B 0 3 6 2 2.2 Component Functions (1) LED Display Indicators that display the Ethernet Port operating state. ERUN ET/R EACC LED display (All LED’s color is green) Figure 2.2 LED’s display and name Content Displayed Table 2.1 LED Display Content LED Content ERUN (Ether Run) Indicates whe...
Page 27 - This section presents the Ethernet Port setup.
26 6 F 3 B 0 3 6 2 3. Preparing for Operation (Hardware) This section presents the Ethernet Port setup. WARNING 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 hur...
Page 28 - Connecting to the Network; The Ethernet Port supports 10BASE-T network.; Ethernet Port; Figure 3.1 Connection to a twisted pair cable; performed by a qualified professional.
27 6 F 3 B 0 3 6 2 3.1 Connecting to the Network The Ethernet Port supports 10BASE-T network. (1) Connection to a 10BASE-T Network This section describes the connection procedure starting from the state where the 10BASE-Ttwisted pair cable is already supplied and ready to be connected. See secti...
Page 29 - Network Wiring Equipment; Twisted pair cable; Manufacturer
28 6 F 3 B 0 3 6 2 3.2 Network Wiring Equipment This section describes the wiring and related equipment that makes up the network to which theEthernet 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 netwo...
Page 30 - mm diameter, with terminators at both ends; Length
29 6 F 3 B 0 3 6 2 (2) 10BASE5 • Coaxial cable • Plugs • Terminators • Adapters • Grounding clamps • AUI cable • MAU Catalog no. EEA-9202- ¨ M+TMJ x 2 ¨ : Length Standard outsidediameter 10.3 mm diameter, with terminators at both ends Manufacturer Showa Electric Wire & Cable Co., Ltd. Catalo...
Page 31 - mm diameter, with BNC plugs at both ends
30 6 F 3 B 0 3 6 2 (3) 10BASE2 • Coaxial cable • BNC plugs • T connectors • Adapters • Terminators CAUTION 1. 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. Installation and wiring...
Page 32 - There are two ways to reset the Ethernet Port:
31 6 F 3 B 0 3 6 2 4. Preparing for Operation (Software) This section describes setting up the Ethernet Port software for operation. CAUTION 1. Chapter 4 presents information related to using the functions provided by the Ethernet Port from a T2N, including the instruction (request) format, impo...
Page 33 - Ethernet Port Instruction Specifications; Figure 4.2 shows the formats of the SEND and RECV instructions.; Operand; Register; Input
32 6 F 3 B 0 3 6 2 4.2 Ethernet Port Instruction Specifications Before discussing the software side of the Ethernet Port setup procedure, this section presents anoverview of the SEND and RECV instructions, which are the instructions that are used to controlthe Ethernet Port from T2N user program...
Page 36 - Normal complete
35 6 F 3 B 0 3 6 2 (3) Status (B) The status during the execution of a SEND or RECV instruction and after that instructionterminates 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 ...
Page 40 - Ethernet Port Reset
39 6 F 3 B 0 3 6 2 4.3 Ethernet Port Reset This section describes the Ethernet Port reset procedures. There are two ways to reset an EthernetPort as follows: (1) T2N power on (2) Reset by a user program running on the T2N In Ethernet Port reset processing, when one of the above resets occurs, th...
Page 41 - Reset request (using the SEND instruction); Function; Reset request from a user program to an Ethernet Port.; Transfer parameters; Module designation; Important items; An error will occur if the Ethernet Port is in run mode or down mode.; Sample program; This program is executed by turning on the R0501 A contact.
40 6 F 3 B 0 3 6 2 (2) Reset request from the T2N It is possible to initiate reset processing from user programs on the T2N. T2N can execute the resetprocessing instruction on standby mode (See section 4.5). This section describes the format of thereset processing instruction. Reset request (usi...
Page 42 - Parameter Setup Request; (2) UDP port number for computer link and PC link transmission; IP address format; Class A; Figure 4.4 IP Address Class Divisions; IP address acquisition
41 6 F 3 B 0 3 6 2 4.4 Parameter Setup Request This section describes the procedure for Ethernet Port parameter setup in the Ethernet Port from aT2N 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 tr...
Page 43 - Notes on IP addresses; Addresses in which the network address is all zeros or all ones.; Broadcast addresses; Table 4.7 Relationship between the Local IP Address; cannot be used in systems that operate a subnetwork.
42 6 F 3 B 0 3 6 2 c. Notes on IP addresses The following IP addresses cannot be used with the Ethernet Port, both for the local port and forremote port addresses. • Addresses starting with 127 (7FH). • Addresses in which the network address is all zeros or all ones. • Addresses in which the hos...
Page 44 - Parameter setup request (using the SEND instruction)
43 6 F 3 B 0 3 6 2 (3) Port number An IP address identifies a particular port on a network. However, since, on any given port, therewill be multiple applications using TCP/IP or UDC/IP to communicate with applications on otherports, the question of to which application the data should be passed ...
Page 45 - Message transmission UDP port number
44 6 F 3 B 0 3 6 2 • Message transmission UDP port number As described in chapter 1, UDP/IP is used for both computer link and PC link protocoltransmission, which are collectively referred to as message transmission. These techniques usededicated UDP sockets that are separate from those used by ...
Page 46 - This program is executed by turning on the R0502 A contact.
45 6 F 3 B 0 3 6 2 This program is executed by turning on the R0502 A contact. Parameters: 12544:3100H, 00018:0012H 29061:7185H, 02658:0A62H |R0502 R0602 | 1|-| |-----------------------------------------------------------( )--| | /* Parameter setup request */ |R0602 | 2|-| |-+[ 12544 MOV RW000][...
Page 47 - Operating Mode Control Requests; The Ethernet Port has the following operating modes:
46 6 F 3 B 0 3 6 2 4.5 Operating Mode Control Requests This section describes the Ethernet Port operating modes and the procedures for controlling theEthernet Port operating mode from user programs on the T2N. The Ethernet Port has the following operating modes: (1) Initialization mode • This mo...
Page 48 - Figure 4.6 shows the Ethernet Port mode transitions.; Figure 4.6 Ethernet Port Mode Transitions
47 6 F 3 B 0 3 6 2 Figure 4.6 shows the Ethernet Port mode transitions. Figure 4.6 Ethernet Port Mode Transitions Run request Self check completes normally Unrecoverable error Self check terminatesin an error state. Power on/off/on cycle Reset request Power applied Down Run Standby Initializatio...
Page 49 - Operating mode control request (using the SEND instruction); Specified information
48 6 F 3 B 0 3 6 2 This section describes the operating mode control request instruction format. Operating mode control request (using the SEND instruction) a. Function This is a request from a user program that controls the Ethernet Port operating mode. b. Transfer parameters A 3100H Module des...
Page 50 - No execution is possible in down mode.; This program is executed by turning on the R0503 A point.
49 6 F 3 B 0 3 6 2 d. Important items • Values other than 1010H, 1020H, 1030H, and 2000H may not be specified for thespecification information. → Status: Transmission error (TermSTS = 0BH) Detailed information: Incorrect control request specification (0083H) • Simultaneous run mode and standby m...
Page 51 - Operating mode control (message transmission permission); point other than a message transmission UDP socket.
50 6 F 3 B 0 3 6 2 5. Computer Link Protocol and the PC Link Protocol Transmission CAUTION 1. Chapter 5 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 pro...
Page 52 - Sample Computer Link Protocol Program; ΙΙΙ
51 6 F 3 B 0 3 6 2 5.2 Sample Computer Link Protocol Program This section presents a sample program that runs on the host computer (a personal computer orworkstation) and that uses computer link protocol transmission. This program issues a read/write request for 32 words from the start of the T2...
Page 58 - other than a message transmission UDP socket.; Register write request (using the SEND instruction)
57 6 F 3 B 0 3 6 2 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 T2Nor T3H. As is the case with the computer link protocol, the PC link protocol uses UDP/IP as itstransmission protocol. The PC link main ...
Page 59 - For the T/C registers, the data length will be between 1 and 323 words.; RID; 1H to 03H: Expansion F registers
58 6 F 3 B 0 3 6 2 For the T/C registers, the data length will be between 1 and 323 words. (2) Local port register type code This code indicates the type of register in which the local port transmission source data isstored. See figure 5.1 for the codes that can be specified. (3) Local port regi...
Page 60 - *3 The T and C registers hold data that has flags attached.; TermSTS
59 6 F 3 B 0 3 6 2 *2 Includes the expansion F registers(Only T3H). One bank has 64K words (0 to 65535). F 7 0 06 *3 The T and C registers hold data that has flags attached. Supplement: The transfer data length has a maximum of 323 words when data is transferred over theEthernet. For the T regis...
Page 61 - SW C
60 6 F 3 B 0 3 6 2 • Write protection can be specified for each register type on the local T2N by using the specialcoil settings described below. In this case, a memory write protect error (TermSTS = 04H) willoccur. F 9 8 7 6 5 4 3 2 1 0 SW067 SW C T F D RW LW W XW/YW • When PC link transmission...
Page 62 - Register read request (using the RECV instruction)
61 6 F 3 B 0 3 6 2 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 T2Nor 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...
Page 65 - Sample PC Link Protocol Transmission Program
64 6 F 3 B 0 3 6 2 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'sregisters. Next it reads out the same area and compares ...
Page 69 - Socket Interface Communication; Positioning and functionality; Figure 6.1 shows the positioning of the socket interface.; Figure 6.1 Positioning of the Socket Interface
68 6 F 3 B 0 3 6 2 6. Socket Interface Communication CAUTION 1. 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 prese...
Page 70 - Figure 6.2 UDP Sockets; Transmission destination port
69 6 F 3 B 0 3 6 2 2. Differences between the UDP socket interface and the TCP socket interface a. UDP socket interface (See figure 6.2.) • Provides an in/out port (socket) for data communication between a transmission source portand a transmission destination port. • Data for the transmission s...
Page 72 - Figure 6.4 TCP Connection Communication Procedure (Overview)
71 6 F 3 B 0 3 6 2 Figure 6.4 TCP Connection Communication Procedure (Overview) Closed state Closed state Passive open Active open Connection established Connection established Data transmission Data reception Next data transmission Data transmission Data reception Next data transmission Data re...
Page 73 - Ethernet Port Socket Interface Usage Notes
72 6 F 3 B 0 3 6 2 6.2 Ethernet Port Socket Interface Usage Notes This section presents points that require attention when using the socket interface on the EthernetPort for data transmission. 1. Data handling and data segmentation in UDP socket interface transmission and reception a. In UDP soc...
Page 79 - TCP send and close requests
78 6 F 3 B 0 3 6 2 3. Socket interface port numbers a. Set the port numbers for local TCP and UDP sockets to values in the range 1024 to65535. The Ethernet Port will issue an error if any other values are used. This is because theport numbers from 1 to 1023 are allocated for UNIX workstation sta...
Page 80 - (Interval between requests to the same socket); UDP socket interface notes
79 6 F 3 B 0 3 6 2 If the timeout time expires, the "transmission complete timeout (no instruction response)"error is issued. Since this error has the same code as module failure errors, first check whetheror not the Ethernet Port has failed before attempting to recover from the error. h...
Page 81 - TCP socket interface notes
80 6 F 3 B 0 3 6 2 6. TCP socket interface notes a. When a passive open is executed, the specified socket is put in the active open wait state. Ifthe remote IP address (DIPAddress) and the remote port object socket TCP port number(DTCP_PORTNO) values are set to 0, the socket will be able to hand...
Page 83 - Socket Interface Information; Remote port TCP/UDP port number; Table 6.1 Socket Interface Information; The socket status has the following structure.
82 6 F 3 B 0 3 6 2 RCLOSE CONN 6.3 Socket Interface Information The information for the eight socket interface sockets held by the Ethernet Port can be read outwith the T2N READ instruction. The Ethernet Port holds five words of socket status informationfor each socket. User programs should acce...
Page 84 - Socket interface information readout program
83 6 F 3 B 0 3 6 2 Bit no. Bit Condition under which the bit is set to 1 Condition under which the bit is reset to 0 F TCP TCP used by the socket The socket closed in response to a close request E UDP UDP used by the socket The socket closed in response to a close request D AOPEN TCP socket in a...
Page 85 - Using the Ethernet Port Socket Interface; UDP open request (using the SEND instruction); This request opens any of the eight sockets.
84 6 F 3 B 0 3 6 2 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) • TCP socket (open ...
Page 88 - Amount of data sent: 1 to 1000 words; Transmission data storage register type code:
87 6 F 3 B 0 3 6 2 2. UDP send request/broadcast send request (using the SEND instruction) a. Function This request sends local port register data using an open UDP socket. Amount of data sent: 1 to 1000 words b. Transfer parameters A 3100H Module designation, 1: channel number A+1 CMD = 0032H C...
Page 91 - Reception data length:
90 6 F 3 B 0 3 6 2 3. UDP receive request/broadcast receive request (using the RECV instruction) a. 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, ...
Page 92 - Methods for storing reception data; Reception data
91 6 F 3 B 0 3 6 2 d. Methods for storing reception data • Allocate a reception data storage register area with a size equal to the size of the reception dataplus one word. The reception data count (the size of the transmission data for a singleoperation) and the transmission data for a single o...
Page 96 - UDP close request (using the SEND instruction); Close the open UDP socket.
95 6 F 3 B 0 3 6 2 4. UDP close request (using the SEND instruction) a. Function Close the open UDP socket. Release the (unlimited wait state) receive request and terminate the UDP socket. b. Transfer parameters A 3100H Module designation A+1 CMD = 0034H Command number A+2 SportNO Socket identif...
Page 98 - TCP open request (using the SEND instruction); Transmission protocol:; Open wait timeout time:
97 6 F 3 B 0 3 6 2 5. TCP open request (using the SEND instruction) a. Function This request opens (active/passive) any of the eight sockets. Transmission protocol: TCP/IP b. Transfer parameters A 3100H Module designation A+1 CMD = 0035H Command number A+2 SportNO Socket identifier (1 to 8) A+3 ...
Page 99 - An error will be returned if the open timeout time is exceeded.; The passive open timeout
98 6 F 3 B 0 3 6 2 • Not only must the specified socket TCP port number on the local port not overlap with anyTCP port number already in use in a local port socket, but it also must not overlap with anyUDP port numbers or UDP port numbers used for message transmission. An error willoccur if the ...
Page 101 - TCP send request (using the SEND instruction)
100 6 F 3 B 0 3 6 2 6. TCP send request (using the SEND instruction) a. Function This request sends local port register data using an open TCP socket. Amount of data sent: 1 to 1000 words b. Transfer parameters A 3100H Module designation A+1 CMD = 0037H Command number A+2 SportNO Socket identifi...
Page 105 - TCP receive request (using the RECV instruction)
104 6 F 3 B 0 3 6 2 7. TCP receive request (using the RECV instruction) a. 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, afterreception, read the r...
Page 110 - TCP close request (using the SEND instruction); Close the open TCP socket.
109 6 F 3 B 0 3 6 2 8. TCP close request (using the SEND instruction) a. Function Close the open TCP socket. Release the (unlimited wait state) receive request and terminate the TCP socket. b. Transfer parameters A 3100H Module designation A+1 CMD = 0039H Command number A+2 SportNO Socket identi...
Page 112 - e. TCP close processing example; Ladder program flowchart
111 6 F 3 B 0 3 6 2 e. TCP close processing example Ladder program flowchart Error result TCP close processing start Socket status read/verify Are bits B and F both 1? (Is a connection established?) Yes Execute a TCP close request (CMD = 0039H). Hold the input of function block in the on state u...
Page 113 - This section presents sample programs using UDP and TCP sockets.; UDP sockets; UDP open request
112 6 F 3 B 0 3 6 2 6.5 Sample Programs This section presents sample programs using UDP and TCP sockets. 1. UDP sockets This is a sample program that issues the requests used with UDP sockets. It assumes that theparameter set up and operating mode control requests (run mode/socket interface tran...
Page 114 - UDP close request
113 6 F 3 B 0 3 6 2 b. 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. */ | ...
Page 115 - UDP send request; Transmission destination object socket UDP port number: 3000
114 6 F 3 B 0 3 6 2 c. 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: 0032H0341995909: 14627185H Transmission destination IP address: 133....
Page 116 - UDP receive request; Transmission source object socket UDP port number: 3000
115 6 F 3 B 0 3 6 2 d. 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.1...
Page 117 - TCP sockets; Remote port object socket TCP port number:
116 6 F 3 B 0 3 6 2 2. TCP sockets This is a sample program that issues the requests used with TCP sockets. It assumes that theparameter set up and operating mode control requests (run mode/socket interface transmissionenable) have already completed. a. TCP open request (passive) This program is...
Page 119 - TCP close request
118 6 F 3 B 0 3 6 2 c. 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. */ | ...
Page 120 - TCP send request; Transmission data word count: 1000
119 6 F 3 B 0 3 6 2 d. 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 r...
Page 121 - TCP receive request; Reception data word count: RW103
120 6 F 3 B 0 3 6 2 e. 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 ...
Page 124 - T2N Special Relays and Registers; Special relays (the renewing cycle of 100 ms); Special relay; Special registers; Station status format; : Initialization completed
123 6 F 3 B 0 3 6 2 7.1 T2N Special Relays and Registers The Ethernet Port status information is reflected in the T2N special relays and special registers. a. Special relays (the renewing cycle of 100 ms) Special relay Name Function S000B Ethernet Port error(warning) 1: The installed Ethernet Po...
Page 125 - Operation mode and station status of Ethernet Port
124 6 F 3 B 0 3 6 2 d. 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 The station status During initialize ...
Page 126 - Down information readout
125 6 F 3 B 0 3 6 2 7.2 Down Information When an Ethernet Port goes to down mode, the factor that caused that transition is stored in theT2N interface buffer as one word of data. This data can be read by the T2N with the READinstruction. Table 7.1 lists the down information error codes and the f...
Page 127 - Remote Port Verification Request; Remote port verification request (using the SEND instruction); If the remote port exists:
126 6 F 3 B 0 3 6 2 7.3 Remote Port Verification Request This request verifies the existence of the specified remote port, and corresponds to the UNIX pingcommand. This request can be issued when the Ethernet Port operating mode is either run orstandby mode. The Ethernet Port will respond to thi...
Page 128 - This program is executed by turning on the R0504 A point.
127 6 F 3 B 0 3 6 2 e. 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 R060...
Page 129 - Remote port loopback request (using the SEND instruction)
128 6 F 3 B 0 3 6 2 7.4 Remote Port Loopback (for an Ethernet Port) This request sends test data to the specified remote Ethernet Port (T2N/T3H) and verifies thattransmission is being performed correctly by receiving that data looped back from the remote port.A user program must compare the tran...
Page 130 - This program is executed by turning on the R0092 A point.
129 6 F 3 B 0 3 6 2 • For data storage registers, a boundary error (TermSTS = 0AH) occurs if the specified area(start register + register range) does not exist in the local port. • A response timeout error (TermSTS = 02H) occurs if the loopback response time exceeds thetime specified by the time...
Page 131 - Time set request (using the SEND instruction); This request can be executed in run or standby mode.
130 6 F 3 B 0 3 6 2 Time set request (using the SEND instruction) a. Function This request sets the Ethernet Port internal time from a user program. b. Transfer parameters A 3100H Module designation A+1 CMD = 0018H CMD number A+2 Month Year A+3 Hour Day A+4 Seconds Minute • Enter the year, month...
Page 132 - This program is executed by turning on the R0508 A point.
131 6 F 3 B 0 3 6 2 e. 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 R0608 | 1|-| |----------------------------...
Page 133 - RAS Information Readout; RAS information readout request (using the RECV instruction); (1) RAS information storage register type code
132 6 F 3 B 0 3 6 2 7.6 RAS Information Readout This request reads out the Ethernet Port RAS information (internal error information andphenomenon history) from a user program. RAS information readout request (using the RECV instruction) a. Function This request reads out the Ethernet Port RAS i...
Page 134 - This request can be used in run and standby modes.; RAS information
133 6 F 3 B 0 3 6 2 c. Status (See figure 4.3 for details on bits C, D, E and F.) F E D C B A 9 8 7 6 5 4 3 2 1 0 B 0 0 0 0 TermSTS B+1 Detailed information (Only valid when TermSTS = 0BH.) d. Important items • This request can be used in run and standby modes. • The read out RAS information is ...
Page 135 - This program is executed by turning on the R0505 A contact.
134 6 F 3 B 0 3 6 2 e. 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 informa...
Page 136 - RAS information details; Reads out 128 words of data using RAS information readout.; Table 7.2 RAS Counters; Reads out 13 words of data using RAS information readout.; Symbol
135 6 F 3 B 0 3 6 2 f. RAS information details (1) RAS counters ...........................LAN controller (line) information Reads out 128 words of data using RAS information readout. Table 7.2 RAS Counters Symbol Description RAS_CNT [0] Normal reception count RAS_CNT [1] Bus read error (recepti...
Page 137 - Reads out 17 words of data using RAS information readout.; Restoring data to its original form from fragmented IP datagrams; Reads out 10 words of data using RAS information readout.
136 6 F 3 B 0 3 6 2 (3) MIB information: MIB_IP .......IP protocol information Reads out 17 words of data using RAS information readout. Table 7.4 MIB_IP 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 ...
Page 138 - Reads out 4 words of data using RAS information readout.; Number of UDP datagrams transferred upstream; to verify the 160 most recent event trace records.
137 6 F 3 B 0 3 6 2 (5) MIB information: MIB_UDP ... UDP protocol information Reads out 4 words of data using RAS information readout. Table 7.6 MIB_UDP Symbol Description MIB_UDP [0] Number of UDP datagrams transferred upstream MIB_UDP [1] Number of datagrams addressed to unused ports MIB_UDP [...
Page 139 - Table 7.7 Event Trace Items
138 6 F 3 B 0 3 6 2 • Event trace item: See table 7.7 Table 7.7 Event Trace Items Eventcode Detail information 1 (H) Detail information 2 (H) Detail information 3 (H) Detail information 4 (H) Content 0001H ROM error (0160) RAM error (0260)DPRAM error (0360) Initialization error 0002H Program add...
Page 141 - Ethernet Port that fail (go to the down state) should be replaced.; Table 8.1 States Indicated by the ERUN LED
140 6 F 3 B 0 3 6 2 8. Error Handling This chapter describes the error analysis and recovery procedures for errors that occur while usingthe Ethernet Port. Also refer to the T2N user's manual when recovering from Ethernet Port-relatederrors. 8.1 LED Display The Ethernet Port indicates its Ethern...
Page 143 - The EACC LED indicates when the T2N is accessing the Ethernet Port.; Table 8.3 States Indicated by the EACC LED; Indicates whether or not the T2N is accessing the Ethernet Port.
142 6 F 3 B 0 3 6 2 The EACC LED indicates when the T2N is accessing the Ethernet Port. Table 8.3 States Indicated by the EACC LED LED display State EACC (Access) Indicates whether or not the T2N is accessing the Ethernet Port. • Lit ........ The T2N is accessing the Ethernet Port. • Off ..........
Page 147 - T2N Special Relays and Registers; Special relays
146 6 F 3 B 0 3 6 2 8.3 T2N Special Relays and Registers The Ethernet Port status information is reflected in the T2N special relays and special registers. 1. Special relays Special relay Name Function S000B Ethernet Port error(warning) 1: The installed Ethernet Port unit is down. (The T2N conti...
Page 148 - Socket Interface Information; Table 8.7 Socket Interface Information; Condition under which the bit is set to 1
147 6 F 3 B 0 3 6 2 RCLOSE NOACK CONN RCV 8.4 Socket Interface Information The information for the eight socket interface sockets held by the Ethernet Port can be read outwith the T2N READ instruction. (See Section 6.3 Socket Interface Information.) The Ethernet Portholds five words of socket st...
Page 150 - If the Ethernet Port fails to enter run mode; Parameter setup request
149 6 F 3 B 0 3 6 2 4. 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 theparameters must be set up with a parameter setup request before issuing the operating modecontrol request used to switch the Etherne...
Page 151 - Operating mode control request; Have the parameters not been
150 6 F 3 B 0 3 6 2 b. Operating mode control request START Set up correct specification information and issuean operating mode control request. No Is an operating mode control request executed? Yes Verify the status using the procedure described inthe item 3 " If a SEND or RECV instruction ...
Page 152 - If computer link protocol transmission fails; Did the computer link protocol
151 6 F 3 B 0 3 6 2 5. If computer link protocol transmission fails a. Host computer side (main port) START Verify the slave Ethernet Port transmissiondestination IP address. No Is the transmission destination IP address set to that of the slave Ethernet Port? Yes Check the network verificationi...
Page 154 - If PC link protocol transmission fails; Main port side Ethernet Port
153 6 F 3 B 0 3 6 2 6. If PC link protocol transmission fails a. Main port side Ethernet Port START Verify the status using the procedure described in theitem 3 " If a SEND or RECV instruction fails complete"on page 148. No Does the SEND/RECV instruction complete? Yes No Was there a resp...
Page 156 - If transmission using UDP sockets fails; Open and close requests
155 6 F 3 B 0 3 6 2 7. If transmission using UDP sockets fails a. Open and close requests START Verify the status using the procedure described inthe item 3 " If a SEND or RECV instruction failscomplete" on page 148. No Yes Does the SEND instruction complete? Set the Ethernet Port to run...
Page 157 - Send request; Does the sta
156 6 F 3 B 0 3 6 2 b. Send request START Verify the status using the procedure described inthe item 3 " If a SEND or RECV instruction failscomplete" on page 148. No Yes Does the SEND instruction complete? Set the Ethernet Port to run + sockettransmission enabled using an operating modec...
Page 158 - Receive request
157 6 F 3 B 0 3 6 2 c. Receive request START Resolve the problem by referringto the status. Transmit a message at theremote port. Verify the status using theprocedure described in the item3 " If a SEND or RECVinstruction fails complete" onpage 148. No Did the RECV instruction complete? Y...
Page 159 - If Transmission Using TCP Sockets Fails; Open request
158 6 F 3 B 0 3 6 2 8. If Transmission Using TCP Sockets Fails When troubleshooting TCP sockets, also refer to the section "TCP socket interface notes" insection 6.2, Ethernet Port Socket Interface Usage Notes. a. Open request START Resolve the problem by referringto the status. Decide w...
Page 160 - Close request
159 6 F 3 B 0 3 6 2 b. Close request START Verify the status using the procedure described in theitem 3 " If a SEND or RECV instruction failscomplete" on page 148. No Does the SEND instruction complete? Yes Set the Ethernet Port to run + socket transmissionenabled using an operating mode...
Page 164 - Installation and Wiring
163 6 F 3 B 0 3 6 2 9. Installation and Wiring 9.1 Installation Environment and Base Unit Mounting The PU235N/245N must be used in the installation environment described in section 4.1,"Installation Environment," of the T2N User's Manual - Hardware. Also, the PU235N/245N panelmust be ins...
Page 165 - Overview of wiring outside the control panel; Layout environment and required work; Table 9.1 Wiring Environment and Work Operations
164 6 F 3 B 0 3 6 2 9.2 Network Wiring See section 3.2, "Network Wiring Equipment," for details on the equipment that makes up thenetwork. This section presents an outline of the wiring laid inside the control panel and outside thecontrol panel. This section also presents individual note...
Page 166 - Overview of wiring without protective pipes; covers should be used.; Notes on piped cabling; Table 9.2 Recommended Minimum Separation Distance
165 6 F 3 B 0 3 6 2 b . 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 gap...
Page 167 - Levels exceeding the above At least 500; Figure 9.1 Duct Internal Layout Example
166 6 F 3 B 0 3 6 2 Considering resistance to noise, we recommend using either covered metal cable ducts orprotective steel pipe. Table 9.3 lists the recommended minimum separations for parallel lines inthis case. Table 9.3 Recommended Minimum Separation Distance (Covered metal ducts and metal p...
Page 168 - Wiring routes; (2) Using a route dedicated to computer system related lines; Overview of panel internal wiring; Wiring path; Notes on laying and wiring 10BASE2 and 10BASE5 coaxial cable; Connect terminators to both ends of the coaxial cable.
167 6 F 3 B 0 3 6 2 e. 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...
Page 169 - Notes on laying and wiring AUI cable; Attach MAUs at the 2.5-meter separated marks on the coaxial cable.
168 6 F 3 B 0 3 6 2 5. Notes on laying and wiring AUI cable a. When connecting the AUI cable to the MAU connectors, use the slide latches to secure theconnectors firmly. b. Contact the manufacturer of the cable with regard to the physical characteristics value of theAUI cable allowable minimum b...
Page 170 - Appendix 1 Maintenance and Inspection; Periodic Inspection; Table A.1 Periodic Inspection Items; Installation state
169 6 F 3 B 0 3 6 2 Appendix 1 Maintenance and Inspection Periodic Inspection Check the following items periodically, once every six months. Also, check these points if anysurrounding conditions or any aspect of the environmental changes. Table A.1 Periodic Inspection Items Inspection item Inspe...
Page 172 - Appendix 2 Request Code Table; Request; Reference
171 6 F 3 B 0 3 6 2 Appendix 2 Request Code Table This table lists the request codes (CMD) used with SEND/RECV instructions sent to the EthernetPort. Refer to the section/item indicated in the reference column in the table for detailedexplanations of the request codes. Table A.2 Instructions (Re...
Page 173 - Appendix 3 Status Table; Figure A.1 Status Structure
172 6 F 3 B 0 3 6 2 Socket identifier:Only valid for socket interface transmission instructions. ("0" for other instructions) status 0: Initial state1: While send requesting2: Send complete and while waiting response 3: Complete Appendix 3 Status Table Figure a.1 lists the completion sta...
Page 176 - Appendix 4 Limitations on the T2N SEND and RECV Instructions; set the fixed period interrupt programs.; (1) When using the PC link protocol with the Ethernet Port; Figure A.2 Word Counts Considered with the PC Link Protocol
175 6 F 3 B 0 3 6 2 Appendix 4 Limitations on the T2N SEND and RECV Instructions When transmissions using the Ethernet Port occur with high frequency, the T2N internalprocessing load increases and it is possible for this to interfere with the T2N periodic interruptsand other internal operations....
Page 177 - Port; Conditions for the above table:; Figure A.3 T2N Configuration when Using the PC Link Protocol
176 6 F 3 B 0 3 6 2 Table A.6 Number of Words that can be Transmitted Using PC Link Protocol with the Ethernet Port [When TCP/UDP socket transmission is not used] Module classification Processing time for function instructions Maximum specifiable number of transmission words for local T2N SEND i...
Page 178 - Figure A.4 T2N Configuration when Using the Socket Interface
177 6 F 3 B 0 3 6 2 (2) When using socket transmission (TCP or UDP) with the Ethernet Port Table A.7 Number of Words that can be Transmitted Using TCP/UDPSocket Transmission with the Ethernet Port [When the PC link protocol is not used] Module classification Processing time for function instruct...
Page 179 - Figure A.5 T2N Configuration when Using the PC Link Protocol
178 6 F 3 B 0 3 6 2 (3) When using the PC link protocol and socket transmission (TCP or UDP) with the Ethernet Port. Table A.8 Number of Words that can be Transmitted Using PC Link Protocol andTCP/UDP Socket Transmission with the Ethernet Port with EthernetPort. [When PC link transmission and TC...