Omron CS CJ1W-ETN21 Manuale Utente

Navigare online o scaricare Manuale Utente per Networking Omron CS CJ1W-ETN21. Omron CS CJ1W-ETN21 User's Manual Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 242
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti

Sommario

Pagina 1 - OPERATION MANUAL

OPERATION MANUALEthernet UnitsConstruction of ApplicationsSYSMAC CS and CJ SeriesCS1W-ETN21 (100Base-TX)CJ1W-ETN21 (100Base-TX)Cat. No. W421-E1-03

Pagina 2 - Construction of Applications

xiiRelevant ManualsThe following table lists CS- and CJ-series manuals that contain information relevant to Ethernet Units.Manual numberModel Name Con

Pagina 3 - Visual Aids

76Using FTP Commands Section 4-5typeFormattype data_typeFunctionSpecifies the file data type. The following data types are supported:ascii: Files are

Pagina 4

77Using FTP Commands Section 4-5Any existing file with the same name in the remote host (Memory Card or EMFile Memory) will be overwritten by the cont

Pagina 5 - TABLE OF CONTENTS

78Using FTP Commands Section 4-54-5-3 Error Messages and FTP StatusError MessagesThe error messages returned by the Ethernet Unit are listed in the fo

Pagina 6

79Checking FTP Status Section 4-6PPP: Path nameXXX: IP addressYY: Port numberMM: FINS error codeNN: Socket error code4-6 Checking FTP Status4-6-1 FTP

Pagina 7

80Using File Memory Section 4-74-7 Using File MemoryThere are two media that can be used to store files in memory for CS/CJ-series PLCs: •Memory Cards

Pagina 8

81Using File Memory Section 4-7File Names Handled by CPU UnitThe files described in the following table can be read or written by the CPUUnit.Note 1.

Pagina 9 - About this Manual:

82Using File Memory Section 4-74-7-3 Initializing File Memory4-7-4 I/O Memory Data Format IOM FormatThe IOM format is a data format used for binary d

Pagina 10 - Relevant Manuals

83Using File Memory Section 4-7 CSV FormatThe CSV format is a data format (using comma delimiters) that is specified byladder instructions, READ DATA

Pagina 11

84Using File Memory Section 4-7Note FREAD(700) will not be able to read the last byte in a file that has been writtento the Memory Card if the file co

Pagina 12

85FTP File Transfer Time Section 4-84-8 FTP File Transfer TimeFile transfers using FTP can require 30 or 40 minutes depending on thecapacity of the fi

Pagina 13 - LIMITATIONS OF LIABILITY

xiii W394 CS1G/H-CPU@@HCS1G/H-CPU-@@V1CJ1G/H-CPU@@HCJ1G-CPU@@Programmable Con-trollers Program-ming ManualDescribes programming, tasks, file memory, a

Pagina 14 - Application Considerations

86UNIX Application Example Section 4-94-9 UNIX Application ExampleThe following procedure provides an example of FTP operations from a UNIXworkstation

Pagina 15 - Disclaimers

87UNIX Application Example Section 4-94. Change to the MEMCARD directory.5. Change data type to binary.6. Transfer the file RESULT.IOM to the workstat

Pagina 16

88UNIX Application Example Section 4-9

Pagina 17 - Unit Versions of CS/CJ-series

89SECTION 5Automatic Clock Adjustment FunctionThis section provides an overview of the automatic clock adjustment function, including details on speci

Pagina 18 - Unit Versions and Lot Numbers

90Overview Section 5-15-1 Overview5-1-1 OverviewThe Ethernet Unit can obtain the clock information from the SNTP server (seenote 1) at a particular ti

Pagina 19 - PRECAUTIONS

91Using the Automatic Clock Adjustment Function Section 5-25-1-2 Specifications5-2 Using the Automatic Clock Adjustment Function 5-2-1 ProcedureItem S

Pagina 20 - 3 Safety Precautions

92Using the Automatic Clock Adjustment Function Section 5-25-2-2 Settings Required for Automatic Clock Adjustment FunctionThe following settings must

Pagina 21 - Safety Precautions 3

93Using the Automatic Clock Adjustment Function Section 5-25-2-3 Auto Adjust TimeThe contents in the CPU Bus Unit System Setup that are set for using

Pagina 22 - 5 Application Precautions

94Automatic Clock Adjustment Switch Section 5-35-3 Automatic Clock Adjustment SwitchThe Automatic Clock Adjustment Switch is allocated in the CIO Area

Pagina 23 - Application Precautions 5

95Automatic Clock Adjustment Error Processing Section 5-4Note For details on other error log information, refer to the Operation Manual, Con-struction

Pagina 25 - Introduction

96Automatic Clock Adjustment Error Processing Section 5-4Note (1) For details on other error log information, refer to the Operation Manual,Constructi

Pagina 26

97SECTION 6Socket ServicesThis section describes the functionality provided by the Ethernet Unit via the socket services.6-1 Overview of Socket Commun

Pagina 27 - 1-3 Table of Protocols

986-8 Using Socket Services with CMND(490) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366-8-1 Using Socket Service . . . . . . . . . .

Pagina 28 - 1-4 Common Protocol Settings

99Overview of Socket Communications from Ethernet Units Section 6-16-1 Overview of Socket Communications from Ethernet Units6-1-1 What are Sockets?Soc

Pagina 29 - 1-4-2 POP

100Protocol Overview Section 6-26-2 Protocol Overview6-2-1 Differences between TCP and UDPThere are differences in the socket services between TCP and

Pagina 30 - 1-4-3 DNS

101Protocol Overview Section 6-2 Passive OPEN and Active OPEN An open command is executed for a node to establish a connection. The openmethod differ

Pagina 31

102Protocol Overview Section 6-26-2-3 Fragmentation of Send DataThe Ethernet Unit fragments data for TCP transmission into units of 1,024bytes and dat

Pagina 32

103Overview Section 6-33. Data A and Data B are sent consecutively.4. When the receiving user program sends a request to receive 1,984 bytesof data, D

Pagina 33 - Mail Send Function

104Overview Section 6-3The two methods of using the socket services are as follows:• Dedicated Control Bits (Socket Service Request Switches)Requests

Pagina 34 - 2-1-1 Introduction

105Overview Section 6-3reception, data is received to the send/receive data addresses set in theparameter area.6-3-3 Using Socket Services with CMND(4

Pagina 35 - ■ Send Mail Conditions

xvRead and Understand this ManualPlease read and understand this manual before using the product. Please consult your OMRON representative if you have

Pagina 36 - 2-2-1 Contents of E-mail Body

106Socket Service Function Guide Section 6-46-3-5 Differences with Previous ModelsCompared with the socket service functions of previous models (CS1W-

Pagina 37 - 2-2-2 Contents of E-mail Body

107Using Socket Service Functions Section 6-56-5 Using Socket Service Functions6-5-1 Procedure6-5-2 Settings Required for Socket Service FunctionThe f

Pagina 38

108Using Socket Service Functions Section 6-56-5-3 Setup TabThe CPU Bus Unit System Setup, which is set when using socket services, isshown in the CX-

Pagina 39 - 2-2-3 Attached File Details

109Using Socket Service Functions Section 6-5IP Router Table Set when the Ethernet Unit will communi-cate with nodes in other IP network seg-ments via

Pagina 40

110Socket Service Status Section 6-66-6 Socket Service Status6-6-1 CIO Area AllocationsThe following CIO Area words are allocated in the CPU Bus Unit

Pagina 41 - 2-3-1 Function Specifications

111Socket Service Status Section 6-66-6-2 DM Area AllocationsThe following DM Area words are allocated in the CPU Bus Unit Area in theDM Area. The beg

Pagina 42 - 2-4-1 Procedure

112Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Up to 4,096 bytes of data are stored in the reception buffer, but the value

Pagina 43

113Using Socket Services by Manipulating Dedicated Control Bits Section 6-72. Turn ON the Socket Service Request Switches in the CPU Bus Unit Areain t

Pagina 44

114Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Check TCP Connection/UDP Open Flag. The specified UDP socket is already ope

Pagina 45 - 2-4-4 Send Mail

115Using Socket Services by Manipulating Dedicated Control Bits Section 6-76-7-3 Socket Service ParametersThe Socket Service Parameter Areas in which

Pagina 46

xviApplication ConsiderationsSUITABILITY FOR USE OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to

Pagina 47

116Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Parameter SettingsThe following table shows the parameters that are require

Pagina 48

117Using Socket Services by Manipulating Dedicated Control Bits Section 6-7R: Read by user for results at completion---: Not used.6-7-4 Parameters So

Pagina 49

118Using Socket Services by Manipulating Dedicated Control Bits Section 6-7If the Remote IP Address is set to 0, a connection can be made to any remot

Pagina 50 - 2-6 I/O Memory Data Formats

119Using Socket Services by Manipulating Dedicated Control Bits Section 6-76-7-5 Socket Service Request SwitchesDedicated control bits can be manipula

Pagina 51

120Using Socket Services by Manipulating Dedicated Control Bits Section 6-7As shown in the above table, the Request Switches are turned OFF by theEthe

Pagina 52 - 2-8 Mail Send Function Errors

121Using Socket Services by Manipulating Dedicated Control Bits Section 6-7UDP Socket Send RequestUDP Socket Close Request1103 The bit number in the S

Pagina 53

122Using Socket Services by Manipulating Dedicated Control Bits Section 6-7TCP Socket Passive Open RequestNote These response codes will be returned o

Pagina 54 - 2-9 Example Application

123Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Note These response codes will be returned only on large, multilevel networ

Pagina 55

124Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Note These response codes will be returned only on large, multilevel networ

Pagina 56

125Using Socket Services by Manipulating Dedicated Control Bits Section 6-7TCP Socket Close Request6-7-7 Timing ChartsThe timing of flags for socket s

Pagina 57 - Receive Mail Function

xviiDisclaimersCHANGE IN SPECIFICATIONS Product specifications and accessories may be changed at any time based on improvements and other reasons.It i

Pagina 58 - 3-1-1 Introduction

126Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Close Request SwitchThe processing results are stored as the response code

Pagina 59

127Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Note The Open Flag will not turn ON at all if a force-close request is made

Pagina 60 - 3-2-1 Function Specifications

128Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Program Memory Map The send and receive data and bits (flags) used by the p

Pagina 61 - Response E-mail

129Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Programming ExampleWhen the TCP Closing Flag (CIO 000201) turns ON, the fol

Pagina 62 - 3-3-1 Procedure

130Using Socket Services by Manipulating Dedicated Control Bits Section 6-7TCP ReceiveIf the Send Request Switch (CIO 151903) turns OFF while the TCP

Pagina 63

131Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Note When using the above programming example, change the bit and wordaddre

Pagina 64 - 3-3-3 Receive Mail Tab

132Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Basic Operations• CIO 000000 is turned ON to request opening a UDP socket f

Pagina 65 - Receive Command Setting

133Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Programming ExampleIf the Close Request Switch (CIO 151905) turns OFF while

Pagina 66 - 3-4-1 Format

134Using Socket Services by Manipulating Dedicated Control Bits Section 6-7UDP ReceiveWhen the UDP Receive Bit (CIO 000003) turns ON, the UDP Receive

Pagina 67 - FileWrite (File Write)

135Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Note When using the above programming example, change the bit and wordaddre

Pagina 69 - FileDelete (File Delete)

136Using Socket Services with CMND(490) Section 6-86-8 Using Socket Services with CMND(490)6-8-1 Using Socket ServiceEach Ethernet Unit has eight TCP

Pagina 70 - FileList (File List Read)

137Using Socket Services with CMND(490) Section 6-84. When the process has been completed, the result is stored in the resultsstorage area defined in

Pagina 71 - UMBackup (User Memory Backup)

138Using Socket Services with CMND(490) Section 6-86-8-3 Basic FINS Command FormatThe basic format for FINS commands used for socket services is shown

Pagina 72 - Response Format

139Using Socket Services with CMND(490) Section 6-8Note If there is more than one Communications Unit mounted to the PLC, the FINSnetwork address must

Pagina 73 - IOMWrite (I/O Memory Write)

140Using Socket Services with CMND(490) Section 6-8 CLOSE REQUEST SEND REQUEST RECEIVE REQUEST CLOSE REQUEST command receivedError endCLOSE REQUE

Pagina 74

141Using Socket Services with CMND(490) Section 6-8 CLOSE REQUEST during RECEIVE REQUESTNote The timing shown in the above diagram occurs if a CLOSE

Pagina 75 - IOMRead (I/O Memory Read)

142Using Socket Services with CMND(490) Section 6-8Data FlowThe data will flow between the CPU Unit, Ethernet Unit, and host computer asshown in the f

Pagina 76

143Using Socket Services with CMND(490) Section 6-8Program Memory MapsThe send and receive data and bits (flags) used by the program are shown inthe f

Pagina 77

144Using Socket Services with CMND(490) Section 6-8Number bytes to receive: 4 bytes000CH 0004H 0001H 0110H 0000H 0032H0123456789D00030CMND(490) contro

Pagina 78 - ErrorLogRead (Error Log Read)

145Using Socket Services with CMND(490) Section 6-82713H 0001H 820BHC200H0123456789D020002714H0123456789D01040D010500064HTCP CLOSE REQUEST responseRe-

Pagina 79

xixUnit Versions of CS/CJ-seriesUnit Versions A “unit version” has been introduced to manage Units in the CS/CJ Seriesaccording to differences in func

Pagina 80 - MailLogRead (Mail Log Read)

146Using Socket Services with CMND(490) Section 6-8CIO Area76543210CIO 0000CIO 000115 to 8CIO 0002TCP Send BitTCP Close BitTCP Open BitTCP Receive Err

Pagina 81 - MailLogClear (Mail Log Clear)

147Using Socket Services with CMND(490) Section 6-8Programming ExampleIf the Port Enabled Flag (A20200) turns ON and the Clos-ing Flag (CIO 150903) tu

Pagina 82 - Test (Mail Test)

148Using Socket Services with CMND(490) Section 6-8Note When using the above programming example, change the bit and wordaddresses as necessary to avo

Pagina 83 - 3-4-2 Response List

149Using Socket Services with CMND(490) Section 6-86-8-9 UDP/IP Communications Programming ExampleThe following programming example illustrates transf

Pagina 84 - I/O memory contents

150Using Socket Services with CMND(490) Section 6-8Program Memory MapsThe send and receive data and bits (flags) used by the program are shown inthe f

Pagina 85

151Using Socket Services with CMND(490) Section 6-82701H0123456789D01010Re-sponse codeStores the response after command execution.UDP OPEN response012

Pagina 86

152Using Socket Services with CMND(490) Section 6-8CIO Area2702H 0001H 820FHB400H0123456789D040002703H0123456789D03000D030100064H 0000HUDP SEND REQUES

Pagina 87

153Using Socket Services with CMND(490) Section 6-8Programming ExampleIf the Port Enabled Flag (A20200) turns ON and the Clos-ing Flag (CIO 150103) tu

Pagina 88

154Using Socket Services with CMND(490) Section 6-8Note When using the above programming example, change the bit and wordaddresses as necessary to avo

Pagina 89 - 3-9 Example Application

155Precautions in Using Socket Services Section 6-96-9 Precautions in Using Socket Services6-9-1 UDP and TCP Socket Services• If a short response moni

Pagina 90

xxUsing Unit Version Label The following unit version label is provided with the Ethernet Unit.This label can be attached to the front of the Ethernet

Pagina 91 - FTP Server

156Precautions in Using Socket Services Section 6-9• Data can remain in a buffer at the local node if the remote TCP socketcloses during communication

Pagina 92 - 4-1 Overview

157Precautions in Using Socket Services Section 6-96-9-5 Maximum Transmission Delays (Ignoring other Network Delays)The transmission delays for socket

Pagina 93 - : root

158Precautions in Using Socket Services Section 6-9Note 4: When the CPU Unit cycle time is less than 2 ms, A = 27, and when itis 2 ms or more, A = 53N

Pagina 94 - 4-3-1 Procedure

159SECTION 7Using FINS Communications to Create Host ApplicationsThis section provides information on communicating on Ethernet Systems and interconne

Pagina 95 - 4-3-3 Setup Tab

160Overview of FINS Communications Section 7-17-1 Overview of FINS Communications7-1-1 Communications On an Ethernet NetworkData is sent and received

Pagina 96 - 230 Guest logged in

161Overview of FINS Communications Section 7-17-1-2 Using the FINS/UDP and FINS/TCP MethodsIt is recommended that FINS/UDP and FINS/TCP be used as fol

Pagina 97 - 4-5 Using FTP Commands

162FINS Frames Section 7-27-2 FINS FramesThe FINS communications service is carried out through the exchange ofFINS command frames and their correspon

Pagina 98

163FINS/UDP Method Section 7-3RSV (Reserved by System)Set to 00 (Hex).GCT (Permissible Number of Gateways)Set to 02 (Hex).DNA (Destination Network Add

Pagina 99

164FINS/UDP Method Section 7-3The FINS/UDP method has the following features:• Because FINS/UDP is a connectionless protocol, there is no limit to the

Pagina 100

165FINS/UDP Method Section 7-3The UDP port number for the host application (e.g., personal computer) func-tions differently from the ports that can be

Pagina 101

xxiPRECAUTIONSThis section provides general precautions for using the CS1W-ETN21 and CJ1W-ETN21 Ethernet Units (100Base-TX).The information contained

Pagina 102 - Error Messages

166FINS/UDP Method Section 7-3It is not necessary to set routing tables if one Communications Unit ismounted to the PLC and the nodes are connected as

Pagina 103 - FTP Status Flag

167FINS/UDP Method Section 7-3UDP port number: FINS UDP port number (Ethernet Unit of relay node)FINS addresses (Remote node CPU Unit):Network address

Pagina 104 - 4-7 Using File Memory

168FINS/UDP Method Section 7-3Sample Program1 #include <errno.h> 2 #include <stdio.h> 3 #include <sys/types.h> 4 #include <sys/so

Pagina 105 - Using File Memory Section 4-7

169FINS/UDP Method Section 7-332 /* 33 bzero((char *) & s_addr,sizeof(ws_addr)); 34 ws_addr.sin_family = AF_INET; 35 ws_addr.sin_addr.s_a

Pagina 106 - .IOM file contents

170FINS/UDP Method Section 7-385 /* RECEIVE FINS RESPONSE*/86 addrlen = sizeof(cs_addr); 8788 if ((recvlen = recvfrom(sockfd,fins_resp,MAX_MSG,0,

Pagina 107

171FINS/TCP Method Section 7-47-4 FINS/TCP Method7-4-1 OverviewFINS/TCP FeaturesThe FINS/TCP method is a FINS communications method that uses the TCP/

Pagina 108

172FINS/TCP Method Section 7-4• Once a FINS/TCP connection (connection number, remote IP address)has been set in the Unit Setup, it can be dynamically

Pagina 109 - 4-8 FTP File Transfer Time

173FINS/TCP Method Section 7-4FINS/TCP Connection Status (Word n+23)While a connection with a remote node is established, the bit corresponding tothe

Pagina 110 - FTP started

174FINS/TCP Method Section 7-4• If there is no response from the client when the keep-alive function is ineffect.• If a command other than FINS FRAME

Pagina 111 - FTP ended

175FINS/TCP Method Section 7-4 Setting Range for Automatic Allocation of FINS Node Addresses The range of node addresses that can be used as automati

Pagina 112

CS1W-ETN21 (100Base-TX)CJ1W-ETN21 (100Base-TX)Ethernet UnitsConstruction of ApplicationsOperation ManualRevised November 2005

Pagina 113 - SECTION 5

xxiiIntended Audience 11 Intended AudienceThis manual is intended for the following personnel, who must also haveknowledge of electrical systems (an e

Pagina 114 - 5-1 Overview

176FINS/TCP Method Section 7-4Even if the keep-alive function is not specified at the Ethernet Unit, a re-sponse is sent for checks sent from other no

Pagina 115 - 5-2-1 Procedure

177FINS/TCP Method Section 7-4• When routing tables are used for one or more other nodes on the samenetwork.It is not necessary to set routing tables

Pagina 116

178FINS/TCP Method Section 7-4When automatically allocated FINS node addresses are set, the client nodeaddress automatically allocated at the server i

Pagina 117 - 5-2-3 Auto Adjust Time

179FINS/TCP Method Section 7-4The details of the above frame are shown in the following table.FINS FRAME SEND ERROR NOTIFICATION CommandIf an error oc

Pagina 118 - Indicators

180FINS/TCP Method Section 7-4After the command is sent, if ACK is returned in the TCP layer by the remotenode, the connection that is established is

Pagina 119 - Function

181FINS/TCP Method Section 7-41,2,3... 1. After the TCP connection is established, the client node address is sent bythe client to the server using th

Pagina 120

182FINS/TCP Method Section 7-4Connection Sequence for Automatic Allocation of FINS Node Addresses1,2,3... 1. The client specifies the client node addr

Pagina 121 - Socket Services

183FINS/TCP Method Section 7-4Recovery Connection Sequence when Host Computer (WS) is Stopped by an Error1,2,3... In steps 1 to 4 the FINS message sen

Pagina 122

184FINS/TCP Method Section 7-4From step 12 onwards, the connection is established again.Note When FINS node addresses are automatically allocated, the

Pagina 123 - 6-1-2 Socket Port Numbers

185FINS/TCP Method Section 7-4 Example 2: Host Computer and Remote Node Connected Via Relay Node (Ethernet Unit)Destination IP Address: 196.36.32.100

Pagina 124 - 6-2 Protocol Overview

xxiiiSafety Precautions 3!WARNING Provide safety measures in external circuits (i.e., not in the ProgrammableController), including the following item

Pagina 125 - Protocol Overview Section 6-2

186FINS/TCP Method Section 7-4Sample Program /* Ethernet Unit IP ADDRESS*/COMMUNICATIONS SAMPLE PROGRAMGENERATE TCP SOCKET*/1 #include <errno.h>

Pagina 126

187FINS/TCP Method Section 7-433 34 /* 35 bzero((char *) &ws_addr,sizeof(ws_addr)); 36 ws_addr.sin_family = AF_INET; 37 ws_addr.sin_addr.

Pagina 127 - 6-3 Overview

188FINS/TCP Method Section 7-486 else 87 {88 err_exit("FINS/TCP header send error"); 89 }90 91 /*RECEIVE FINS/TCP COMMAND (READ RECEI

Pagina 128 - Overview Section 6-3

189FINS/TCP Method Section 7-4139 alarm(RESP_TIMEOUT); /* 140 printf("FINS/TCP header send length %d¥n",sendlen); 141 }142 else {14

Pagina 129

190FINS/TCP Method Section 7-4192 }193194 printf("FINS/TCP header receive length %d¥n",recvlen); 195 recvlen = fins_tcp_header[6]; 196

Pagina 130 - 6-4-2 Executing CMND(490)

191FINS/TCP Method Section 7-4245 int total_len = 0; 246 int recv_len; 247 248 for (;;) 249 {250 recv_len = recv(sockfd, (char *)buf, len,

Pagina 131 - 6-5-1 Procedure

192Maximum Transmission Delays: Writing/Reading to CPU Unit Section 7-57-5 Maximum Transmission Delays: Writing/Reading to CPU UnitThe time for the re

Pagina 132 - 6-5-3 Setup Tab

193Maximum Transmission Delays: Writing/Reading to CPU Unit Section 7-5For details, refer to the CPU Unit operation manual.Transmission Processing (Re

Pagina 133

194Maximum Transmission Delays: Writing/Reading to CPU Unit Section 7-5For details, refer to the CPU Unit operation manual.CPU Bus Unit Service Proces

Pagina 134 - 6-6 Socket Service Status

195Appendix AEthernet Network ParametersParameter Value DescriptionTCP send buffer 4,096 bytes Maximum capacity of the TCP send bufferTCP receive buff

Pagina 135 - 6-6-2 DM Area Allocations

xxivOperating Environment Precautions 44 Operating Environment Precautions!Caution Do not operate the control system in the following locations:• Loca

Pagina 136 - 6-7-1 Application Procedure

196Ethernet Network Parameters Appendix A

Pagina 137

197Appendix BBuffer ConfigurationNetwork memory (248K bytes)Communications controllerIP packet output queue (50 max. × 1,500 bytes)UDP socket send req

Pagina 138 - Error Evaluation

198Buffer Configuration Appendix BNetwork MemoryMost of the buffers used for communications servicing by the Ethernet Unit are administered in a buffe

Pagina 139 - × unit number)

199Appendix CTCP Status TransitionsThe TCP socket status can be confirmed using the socket status data returned for the FINS commandSOCKET STATUS READ

Pagina 140 - Parameter Settings

200TCP Status Transitions Appendix C

Pagina 141 - 6-7-4 Parameters

201Appendix DASCII CharactersBits 1 to 4 Bits 5 to 7Binary 0000 0001 0010 0011 0100 0101 0110 0111Hex012345670000 0NUL DLE Space 0 @ P p0001 1SOH DC1

Pagina 142 - ■ Send/Receive Data Address

202ASCII Characters Appendix D

Pagina 143

203Appendix EMaintenanceThe Ethernet Unit makes up part of a network. Repair a defective Ethernet Unit as soon as possible as it canhave a negative ef

Pagina 144 - 6-7-6 Response Codes

204Maintenance Appendix E

Pagina 145 - UDP Socket Close Request

205Appendix FInspectionsCarry out regular inspections to ensure the Ethernet Unit is functioning perfectly.ItemsMost of the parts that make up an Ethe

Pagina 146

xxvApplication Precautions 5• Always use the power supply voltages specified in the operation manuals.An incorrect voltage may result in malfunction o

Pagina 148 - TCP Socket Send Request

207IndexNumerics100Base-TXtransmission delays, 19310Base-Ttransmission delays, 193AAccessing Memory/Receiving Mail Flag, 60Accessing Memory/Sending Ma

Pagina 149 - 6-7-7 Timing Charts

208IndexDdelete command, 68, 73, 77dir command, 68, 73, 74DNS communications, 3DNS server, 31automatic clock adjustmenterrors, 94DNS Tab, 6, 19, 39, 9

Pagina 150 - Response code stored

Index209FileWrite command, 2, 36command/response format, 43FileWrite field, 41FINS communications, 2, 4address conversion, 161application layers, 160c

Pagina 151

210IndexII/O memory data, 15CSV format, 61IOM format, 60TXT format, 61I/O tablescreating, 30ICF, 162inspections, 205installationlocation, xxivInterval

Pagina 152 - 76543210

Index211send timing, 11sending method (encoding), 17settings, 19DNS Tab, 19Mail Address Tab, 19POP Tab, 19SMTP Tab, 19SMTP settings, 4status, 17, 24Se

Pagina 153 - Programming Example

212IndexTCP/IP, 4UDP/IP, 4put command, 68, 73, 76, 85pwd command, 68, 73, 75Qquit command, 68, 73, 77Rradioactivity, xxivREAD DATA FILE (FREAD) instru

Pagina 154

Index213port numbers, 99TCPstatus, 199TCP sockets, 184number, 117status, 199UDP socketnumber, 117UDP sockets, 166Software switch field, 23specificatio

Pagina 155

214Index

Pagina 156

215Revision HistoryA manual revision code appears as a suffix to the catalog number on the front cover of the manual. The following table outlines the

Pagina 157

xxviConformance to EC Directives 6• When transporting the Unit, use special packing boxes and protect it frombeing exposed to excessive vibration or i

Pagina 158

216Revision History

Pagina 159

OMRON CorporationControl Devices Division H.Q.Shiokoji Horikawa, Shimogyo-ku,Kyoto, 600-8530 JapanTel: (81)75-344-7109/Fax: (81)75-344-7149Regional He

Pagina 160 - 6-8-1 Using Socket Service

Authorized Distributor:Cat. No. W421-E1-03 Note: Specifications subject to change without noticePrinted in JapanThis manual is printed on 100% recycle

Pagina 161

1SECTION 1Introduction This section introduces the functions and protocols used in Ethernet Unit communications services.1-1 Ethernet Unit Communicati

Pagina 162 - Byte order from the

2Ethernet Unit Communications Services Section 1-11-1 Ethernet Unit Communications ServicesNote When transferring data through the internet, a global

Pagina 163 - ■ OPEN REQUEST

3Table of Protocols Section 1-3Note Any one of the following conditions can be specified to send e-mail automati-cally:A periodic timer times out, the

Pagina 164 - RECEIVE REQUEST

4Common Protocol Settings Section 1-41-4 Common Protocol Settings1-4-1 SMTPThe SMTP server settings must be made in order to use the Mail Send Func-ti

Pagina 165 - System Configuration

5Common Protocol Settings Section 1-4Note The “POP before SMTP” is an authentication function required when sendingmail (using the SMTP server). Norma

Pagina 166 - Basic Operations

vNotice:OMRON products are manufactured for use according to proper procedures by a qualified operatorand only for the purposes described in this manu

Pagina 167 - Program Memory Maps

6Common Protocol Settings Section 1-41-4-3 DNSThe DNS server's settings must be entered when the POP3 server, SMTPserver, and SNTP server are spe

Pagina 168

7Common Protocol Settings Section 1-4The DNS server manages the IP addresses and host names of the nodes thatcommunicate in the network. The Ethernet

Pagina 169

8Common Protocol Settings Section 1-4

Pagina 170

9SECTION 2Mail Send FunctionThis section provides an overview and describes how to use the Ethernet Unit’s Mail Send Function, including applicationex

Pagina 171

10Mail Send Function Overview Section 2-12-1 Mail Send Function Overview2-1-1 IntroductionThe Mail Send Function sends an e-mail from the Ethernet Uni

Pagina 172

11Mail Send Function Details Section 2-2 Attached FilesAn I/O memory data file created automatically by the Ethernet Unit (a speci-fied range of the

Pagina 173

12Mail Send Function Details Section 2-22-2-1 Contents of E-mail Body

Pagina 174

13Mail Send Function Details Section 2-22-2-2 Contents of E-mail BodyEthernet Unit's Status Information HeaderThe following header information is

Pagina 175

14Mail Send Function Details Section 2-2Note Another sentence will be attached indicating how the specifiedword's value has changed: “Channel dat

Pagina 176 - CIO Area

15Mail Send Function Details Section 2-2 Error Log InformationThe error log information includes all of the data stored in the Ethernet Unit'ser

Pagina 178

16Mail Send Function Details Section 2-2• Since the Ethernet Unit creates the data file automatically, the AccessingMemory/Sending Mail Flag (bit 01 o

Pagina 179 - 6-9-3 TCP Socket Service

17Mail Send Function Specifications Section 2-32-3 Mail Send Function Specifications2-3-1 Function SpecificationsItem SpecificationsDestination e-mail

Pagina 180

18Using the Mail Send Function Section 2-42-3-2 Details of the Available Mail Triggers2-4 Using the Mail Send Function2-4-1 ProcedureNote The Ethernet

Pagina 181

19Using the Mail Send Function Section 2-4become effective. Verify that it is safe for the Ethernet Unit to restart beforetransferring the settings da

Pagina 182

20Using the Mail Send Function Section 2-4Note (1) Make POP settings when the Use POP before SMTP Option was select-ed in the SMTP Tab.(2) Make DNS se

Pagina 183 - SECTION 7

21Using the Mail Send Function Section 2-42-4-3 Mail AddressSet up to 2 destination mail addresses.2-4-4 Send MailSet the following settings for send

Pagina 184 - Physical Layer

22Using the Mail Send Function Section 2-4Send Mail Condition SettingsMail Address Specification (Required)Data Sent by Mail (When Required) Data Sen

Pagina 185

23Using the Mail Send Function Section 2-4 Attached File NameSend Mail Trigger Type Setting (Required)Specifies the type send mail condition that wil

Pagina 186 - 7-2 FINS Frames

24Mail Send Function Status Section 2-5Note The Area and Address setting ranges are as follows:CIO Area: 0 to 6143; Work Area: W000 to W511; Holding A

Pagina 187 - 7-3 FINS/UDP Method

25Mail Send Function Status Section 2-5 Send Mail Status 2The transmission status of each send condition is indicated by the content ofthe correspond

Pagina 188 - UDP packet

viiTABLE OF CONTENTSPRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi1 Intended Audience . . . . . . . . . . . . .

Pagina 189 - FINS/UDP

26I/O Memory Data Formats Section 2-6 Accessing Memory/Sending Mail Flag (Bit 01 of n+17)When a data file (IOM, TXT, or CSV) is being attached to the

Pagina 190 - Controller Link

27Attached File Transfer Times Section 2-7Note The TXT file format is compatible with the CPU Unit's READ DATA FILE andWRITE DATA FILE instructio

Pagina 191 - FINS/UDP Sample

28Mail Send Function Errors Section 2-8 Access Times for CS1 and CJ1 CPU Units Access Times for CS1-H and CJ1-H CPU UnitsNote (1) The access times f

Pagina 192 - Sample Program

29Mail Send Function Errors Section 2-82-8-2 Troubleshooting Mail Send Errors with LED IndicatorsNote For more details on the error log, refer to 8-3

Pagina 193

30Example Application Section 2-9Note For more details on the error log, refer to 8-3 Error Log in the Operation Man-ual Construction of Networks (W42

Pagina 194

31Example Application Section 2-92. Destination Mail Address Setup3. Send Condition Setting 1Contents of E-mail Body • Including User-set Data in E-ma

Pagina 195 - 7-4 FINS/TCP Method

32Example Application Section 2-9Example: Send e-mail when W300 bit 00 goes from OFF to ON.• Send when an Event is Recorded in the Ethernet Unit'

Pagina 196 - TCP packet

33SECTION 3Receive Mail FunctionThis section describes how to use the Ethernet Unit’s Mail Receive Function, including specifications, status details,

Pagina 197 - Remote node address received

34Mail Receive Function Overview Section 3-13-1 Mail Receive Function Overview3-1-1 IntroductionThe mail receive function performs the following funct

Pagina 198 - Local node address sent

35Mail Receive Function Overview Section 3-1 Remote Mail CommandsEnter the remote command (for example, FileRead) in ASCII in the e-mailsubject line.

Pagina 199 - FINS/TCP Method Section 7-4

viiiTABLE OF CONTENTSSECTION 4FTP Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674-1 Overview . . . . . . . .

Pagina 200 - FINS/TCP

36Mail Receive Function Specifications Section 3-23-2 Mail Receive Function Specifications3-2-1 Function SpecificationsReceived E-mailFile memory oper

Pagina 201

37Mail Receive Function Specifications Section 3-2Response E-mailAttached fileData format • IOM Write command:Writes an I/O memory data file (IOM, TXT

Pagina 202

38Using the Mail Receive Function Section 3-33-3 Using the Mail Receive Function3-3-1 ProcedureNote The Ethernet Unit will be restarted when the setti

Pagina 203 - Error code

39Using the Mail Receive Function Section 3-33-3-2 Settings Required for the Mail Receive FunctionThe following Unit settings must be made when using

Pagina 204

40Using the Mail Receive Function Section 3-33-3-3 Receive Mail TabThe CPU Bus Unit settings for the mail receive function can be set in the CX-Progra

Pagina 205

41Using the Mail Receive Function Section 3-3Receive Attached File SettingReceive Command SettingItem Contents DefaultReceive file with specified exte

Pagina 206

42Remote Mail Command Details Section 3-43-4 Remote Mail Command Details3-4-1 FormatCommand FormatResponse FormatMailLogClear Select when you want to

Pagina 207

43Remote Mail Command Details Section 3-4FileWrite (File Write)Function Writes the attached file to the CPU Unit's EM file memory or a Memory Car

Pagina 208

44Remote Mail Command Details Section 3-4FileRead (File Read)Function Reads any file from the CPU Unit's EM file memory or a Memory Cardmounted i

Pagina 209 - FINS/TCP Sample

45Remote Mail Command Details Section 3-4FileDelete (File Delete)Function Deletes the specified file from the CPU Unit's EM file memory or a Memo

Pagina 210

ixTABLE OF CONTENTSAppendicesA Ethernet Network Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 211

46Remote Mail Command Details Section 3-4FileList (File List Read)Function Returns a list of the files contained in the specified folder in the CPU Un

Pagina 212

47Remote Mail Command Details Section 3-4UMBackup (User Memory Backup)Function Backs up (saves) the CPU Unit's user program in the CPU Unit'

Pagina 213

48Remote Mail Command Details Section 3-4PARAMBackup (Parameter Area Backup)Function Backs up (saves) the parameter area data in the CPU Unit's E

Pagina 214

49Remote Mail Command Details Section 3-4IOMWrite (I/O Memory Write)Function Writes the contents of the attached file to the specified data area in th

Pagina 215

50Remote Mail Command Details Section 3-4Response FormatAttached file: Yes Attach an I/O data file (IOM, CSV, or TXT format).Note Up to 6,000 words ca

Pagina 216

51Remote Mail Command Details Section 3-4IOMRead (I/O Memory Read)Function Reads the contents of the specified range of words from the CPU Unit's

Pagina 217

52Remote Mail Command Details Section 3-4Response FormatPara4:File nameExample)Specifying MEMORY.TXT:Para4:MEMORY.TXTSpecifies the name of the file (i

Pagina 218 - × 0.003 + 0.704 ms

53Remote Mail Command Details Section 3-4ChangeMode (Operating Mode Change)Function Changes the CPU Unit's operating mode.Command FormatResponse

Pagina 219 - Appendix A

54Remote Mail Command Details Section 3-4ErrorLogRead (Error Log Read)Function Reads the entire error log from the CPU Unit or a specified Special Uni

Pagina 220

55Remote Mail Command Details Section 3-4ErrorLogClear (Error Log Clear)Function Clears the entire error log from the CPU Unit or a specified Special

Pagina 221 - Appendix B

xTABLE OF CONTENTS

Pagina 222 - Network Memory

56Remote Mail Command Details Section 3-4MailLogRead (Mail Log Read)Function Reads the mail log, which contains information on mail received by the Et

Pagina 223 - Appendix C

57Remote Mail Command Details Section 3-4MailLogClear (Mail Log Clear)Function Clears the mail log, which contains information on mail received by the

Pagina 224

58Remote Mail Command Details Section 3-4Test (Mail Test)Function Performs an e-mail send/receive test with the Ethernet Unit.When this remote mail co

Pagina 225 - Appendix D

59Remote Mail Command Details Section 3-4FinsSend (FINS Command Send)Function Requests execution of the specified FINS command by the Ethernet Unit.Co

Pagina 226 - ASCII Characters Appendix D

60Mail Receive Function Status Section 3-53-5 Mail Receive Function Status3-5-1 Accessing Memory/Receiving Mail FlagThe Accessing Memory/Receiving Mai

Pagina 227 - Appendix E

61I/O Memory Data Formats Section 3-6TXT Format When hexadecimal I/O memory data (1234, 5678, 9ABC, etc.) is being copiedto an attached file in TXT fo

Pagina 228 - Maintenance Appendix E

62Attached File Transfer Times Section 3-73-7 Attached File Transfer TimesWhen sending an attached file with the Mail Receive Function, the accesstime

Pagina 229 - Appendix F

63Mail Receive Function Errors Section 3-83-8 Mail Receive Function Errors3-8-1 Identifying and Correcting Mail Receive Function ErrorsThe following t

Pagina 230 - Inspections Appendix F

64Mail Receive Function Errors Section 3-83-8-3 Error Log Codes Related to the Mail Receive FunctionIf an error occurs while the Ethernet Unit is oper

Pagina 231 - Numerics

65Example Application Section 3-93-9 Example Application3-9-1 Step 1. Create the I/O TableMount the Ethernet Unit in the CPU Rack or Expansion Rack, c

Pagina 232

xiAbout this Manual:This manual describes the operation of the CS1W-ETN21 and CJ1W-ETN21 Ethernet Units (100Base-TX) for constructing applications and

Pagina 233

66Example Application Section 3-93-9-3 Step 3. Transfer the CPU Bus Unit Setup SettingsSelect Transfer to PLC from the Options Menu and click the Yes

Pagina 234

67SECTION 4FTP ServerThis section describes the functions provided by the FTP server.4-1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 235

68Overview Section 4-14-1 OverviewThe Ethernet Unit has a built-in FTP (File Transfer Protocol) server function,so other computers on the Ethernet can

Pagina 236

69FTP Server Function Details Section 4-24-2 FTP Server Function Details4-2-1 File TypesThe file system in the CPU Unit that can be accessed by the Et

Pagina 237

70Using the FTP Server Function Section 4-3• If a login name is not set or contains illegal characters, the default loginname, CONFIDENTIAL, must be u

Pagina 238

71Using the FTP Server Function Section 4-3become effective. Verify that it is safe for the Ethernet Unit to restart beforetransferring the settings d

Pagina 239 - Revision History

72FTP Server Application Example Section 4-44-4 FTP Server Application ExampleThe following procedure shows how to use the FTP server by connection wi

Pagina 240

73Using FTP Commands Section 4-54-5 Using FTP CommandsThis section describes the FTP commands which the host computer (FTPclient) can send to the Ethe

Pagina 241

74Using FTP Commands Section 4-5userFormatuser [user_name]FunctionSpecifies the user name. Specify the FTP login name set in the Ethernet Unitsystem s

Pagina 242 - Printed in Japan

75Using FTP Commands Section 4-5mkdirFormatmkdir DIRECTORY_NAMEFunctionCreates a directory of the specified name at the remote host (Memory Card orEM

Commenti su questo manuale

Nessun commento