
OPERATION MANUALEthernet UnitsConstruction of ApplicationsSYSMAC CS and CJ SeriesCS1W-ETN21 (100Base-TX)CJ1W-ETN21 (100Base-TX)Cat. No. W421-E1-03
xiiRelevant ManualsThe following table lists CS- and CJ-series manuals that contain information relevant to Ethernet Units.Manual numberModel Name Con
76Using FTP Commands Section 4-5typeFormattype data_typeFunctionSpecifies the file data type. The following data types are supported:ascii: Files are
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
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
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
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
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.
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
83Using File Memory Section 4-7 CSV FormatThe CSV format is a data format (using comma delimiters) that is specified byladder instructions, READ DATA
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
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
xiii W394 CS1G/H-CPU@@HCS1G/H-CPU-@@V1CJ1G/H-CPU@@HCJ1G-CPU@@Programmable Con-trollers Program-ming ManualDescribes programming, tasks, file memory, a
86UNIX Application Example Section 4-94-9 UNIX Application ExampleThe following procedure provides an example of FTP operations from a UNIXworkstation
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
88UNIX Application Example Section 4-9
89SECTION 5Automatic Clock Adjustment FunctionThis section provides an overview of the automatic clock adjustment function, including details on speci
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
91Using the Automatic Clock Adjustment Function Section 5-25-1-2 Specifications5-2 Using the Automatic Clock Adjustment Function 5-2-1 ProcedureItem S
92Using the Automatic Clock Adjustment Function Section 5-25-2-2 Settings Required for Automatic Clock Adjustment FunctionThe following settings must
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
94Automatic Clock Adjustment Switch Section 5-35-3 Automatic Clock Adjustment SwitchThe Automatic Clock Adjustment Switch is allocated in the CIO Area
95Automatic Clock Adjustment Error Processing Section 5-4Note For details on other error log information, refer to the Operation Manual, Con-struction
96Automatic Clock Adjustment Error Processing Section 5-4Note (1) For details on other error log information, refer to the Operation Manual,Constructi
97SECTION 6Socket ServicesThis section describes the functionality provided by the Ethernet Unit via the socket services.6-1 Overview of Socket Commun
986-8 Using Socket Services with CMND(490) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366-8-1 Using Socket Service . . . . . . . . . .
99Overview of Socket Communications from Ethernet Units Section 6-16-1 Overview of Socket Communications from Ethernet Units6-1-1 What are Sockets?Soc
100Protocol Overview Section 6-26-2 Protocol Overview6-2-1 Differences between TCP and UDPThere are differences in the socket services between TCP and
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
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
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
104Overview Section 6-3The two methods of using the socket services are as follows:• Dedicated Control Bits (Socket Service Request Switches)Requests
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
xvRead and Understand this ManualPlease read and understand this manual before using the product. Please consult your OMRON representative if you have
106Socket Service Function Guide Section 6-46-3-5 Differences with Previous ModelsCompared with the socket service functions of previous models (CS1W-
107Using Socket Service Functions Section 6-56-5 Using Socket Service Functions6-5-1 Procedure6-5-2 Settings Required for Socket Service FunctionThe f
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-
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
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
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
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
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
114Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Check TCP Connection/UDP Open Flag. The specified UDP socket is already ope
115Using Socket Services by Manipulating Dedicated Control Bits Section 6-76-7-3 Socket Service ParametersThe Socket Service Parameter Areas in which
xviApplication ConsiderationsSUITABILITY FOR USE OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to
116Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Parameter SettingsThe following table shows the parameters that are require
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
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
119Using Socket Services by Manipulating Dedicated Control Bits Section 6-76-7-5 Socket Service Request SwitchesDedicated control bits can be manipula
120Using Socket Services by Manipulating Dedicated Control Bits Section 6-7As shown in the above table, the Request Switches are turned OFF by theEthe
121Using Socket Services by Manipulating Dedicated Control Bits Section 6-7UDP Socket Send RequestUDP Socket Close Request1103 The bit number in the S
122Using Socket Services by Manipulating Dedicated Control Bits Section 6-7TCP Socket Passive Open RequestNote These response codes will be returned o
123Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Note These response codes will be returned only on large, multilevel networ
124Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Note These response codes will be returned only on large, multilevel networ
125Using Socket Services by Manipulating Dedicated Control Bits Section 6-7TCP Socket Close Request6-7-7 Timing ChartsThe timing of flags for socket s
xviiDisclaimersCHANGE IN SPECIFICATIONS Product specifications and accessories may be changed at any time based on improvements and other reasons.It i
126Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Close Request SwitchThe processing results are stored as the response code
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
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
129Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Programming ExampleWhen the TCP Closing Flag (CIO 000201) turns ON, the fol
130Using Socket Services by Manipulating Dedicated Control Bits Section 6-7TCP ReceiveIf the Send Request Switch (CIO 151903) turns OFF while the TCP
131Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Note When using the above programming example, change the bit and wordaddre
132Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Basic Operations• CIO 000000 is turned ON to request opening a UDP socket f
133Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Programming ExampleIf the Close Request Switch (CIO 151905) turns OFF while
134Using Socket Services by Manipulating Dedicated Control Bits Section 6-7UDP ReceiveWhen the UDP Receive Bit (CIO 000003) turns ON, the UDP Receive
135Using Socket Services by Manipulating Dedicated Control Bits Section 6-7Note When using the above programming example, change the bit and wordaddre
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
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
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
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
140Using Socket Services with CMND(490) Section 6-8 CLOSE REQUEST SEND REQUEST RECEIVE REQUEST CLOSE REQUEST command receivedError endCLOSE REQUE
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
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
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
144Using Socket Services with CMND(490) Section 6-8Number bytes to receive: 4 bytes000CH 0004H 0001H 0110H 0000H 0032H0123456789D00030CMND(490) contro
145Using Socket Services with CMND(490) Section 6-82713H 0001H 820BHC200H0123456789D020002714H0123456789D01040D010500064HTCP CLOSE REQUEST responseRe-
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
146Using Socket Services with CMND(490) Section 6-8CIO Area76543210CIO 0000CIO 000115 to 8CIO 0002TCP Send BitTCP Close BitTCP Open BitTCP Receive Err
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
148Using Socket Services with CMND(490) Section 6-8Note When using the above programming example, change the bit and wordaddresses as necessary to avo
149Using Socket Services with CMND(490) Section 6-86-8-9 UDP/IP Communications Programming ExampleThe following programming example illustrates transf
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
151Using Socket Services with CMND(490) Section 6-82701H0123456789D01010Re-sponse codeStores the response after command execution.UDP OPEN response012
152Using Socket Services with CMND(490) Section 6-8CIO Area2702H 0001H 820FHB400H0123456789D040002703H0123456789D03000D030100064H 0000HUDP SEND REQUES
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
154Using Socket Services with CMND(490) Section 6-8Note When using the above programming example, change the bit and wordaddresses as necessary to avo
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
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
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
157Precautions in Using Socket Services Section 6-96-9-5 Maximum Transmission Delays (Ignoring other Network Delays)The transmission delays for socket
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
159SECTION 7Using FINS Communications to Create Host ApplicationsThis section provides information on communicating on Ethernet Systems and interconne
160Overview of FINS Communications Section 7-17-1 Overview of FINS Communications7-1-1 Communications On an Ethernet NetworkData is sent and received
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
162FINS Frames Section 7-27-2 FINS FramesThe FINS communications service is carried out through the exchange ofFINS command frames and their correspon
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
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
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
xxiPRECAUTIONSThis section provides general precautions for using the CS1W-ETN21 and CJ1W-ETN21 Ethernet Units (100Base-TX).The information contained
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
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
168FINS/UDP Method Section 7-3Sample Program1 #include <errno.h> 2 #include <stdio.h> 3 #include <sys/types.h> 4 #include <sys/so
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
170FINS/UDP Method Section 7-385 /* RECEIVE FINS RESPONSE*/86 addrlen = sizeof(cs_addr); 8788 if ((recvlen = recvfrom(sockfd,fins_resp,MAX_MSG,0,
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/
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
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
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
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
CS1W-ETN21 (100Base-TX)CJ1W-ETN21 (100Base-TX)Ethernet UnitsConstruction of ApplicationsOperation ManualRevised November 2005
xxiiIntended Audience 11 Intended AudienceThis manual is intended for the following personnel, who must also haveknowledge of electrical systems (an e
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
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
178FINS/TCP Method Section 7-4When automatically allocated FINS node addresses are set, the client nodeaddress automatically allocated at the server i
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
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
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
182FINS/TCP Method Section 7-4Connection Sequence for Automatic Allocation of FINS Node Addresses1,2,3... 1. The client specifies the client node addr
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
184FINS/TCP Method Section 7-4From step 12 onwards, the connection is established again.Note When FINS node addresses are automatically allocated, the
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
xxiiiSafety Precautions 3!WARNING Provide safety measures in external circuits (i.e., not in the ProgrammableController), including the following item
186FINS/TCP Method Section 7-4Sample Program /* Ethernet Unit IP ADDRESS*/COMMUNICATIONS SAMPLE PROGRAMGENERATE TCP SOCKET*/1 #include <errno.h>
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.
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
189FINS/TCP Method Section 7-4139 alarm(RESP_TIMEOUT); /* 140 printf("FINS/TCP header send length %d¥n",sendlen); 141 }142 else {14
190FINS/TCP Method Section 7-4192 }193194 printf("FINS/TCP header receive length %d¥n",recvlen); 195 recvlen = fins_tcp_header[6]; 196
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,
192Maximum Transmission Delays: Writing/Reading to CPU Unit Section 7-57-5 Maximum Transmission Delays: Writing/Reading to CPU UnitThe time for the re
193Maximum Transmission Delays: Writing/Reading to CPU Unit Section 7-5For details, refer to the CPU Unit operation manual.Transmission Processing (Re
194Maximum Transmission Delays: Writing/Reading to CPU Unit Section 7-5For details, refer to the CPU Unit operation manual.CPU Bus Unit Service Proces
195Appendix AEthernet Network ParametersParameter Value DescriptionTCP send buffer 4,096 bytes Maximum capacity of the TCP send bufferTCP receive buff
xxivOperating Environment Precautions 44 Operating Environment Precautions!Caution Do not operate the control system in the following locations:• Loca
196Ethernet Network Parameters Appendix A
197Appendix BBuffer ConfigurationNetwork memory (248K bytes)Communications controllerIP packet output queue (50 max. × 1,500 bytes)UDP socket send req
198Buffer Configuration Appendix BNetwork MemoryMost of the buffers used for communications servicing by the Ethernet Unit are administered in a buffe
199Appendix CTCP Status TransitionsThe TCP socket status can be confirmed using the socket status data returned for the FINS commandSOCKET STATUS READ
200TCP Status Transitions Appendix C
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
202ASCII Characters Appendix D
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
204Maintenance Appendix E
205Appendix FInspectionsCarry out regular inspections to ensure the Ethernet Unit is functioning perfectly.ItemsMost of the parts that make up an Ethe
xxvApplication Precautions 5• Always use the power supply voltages specified in the operation manuals.An incorrect voltage may result in malfunction o
206Inspections Appendix F
207IndexNumerics100Base-TXtransmission delays, 19310Base-Ttransmission delays, 193AAccessing Memory/Receiving Mail Flag, 60Accessing Memory/Sending Ma
208IndexDdelete command, 68, 73, 77dir command, 68, 73, 74DNS communications, 3DNS server, 31automatic clock adjustmenterrors, 94DNS Tab, 6, 19, 39, 9
Index209FileWrite command, 2, 36command/response format, 43FileWrite field, 41FINS communications, 2, 4address conversion, 161application layers, 160c
210IndexII/O memory data, 15CSV format, 61IOM format, 60TXT format, 61I/O tablescreating, 30ICF, 162inspections, 205installationlocation, xxivInterval
Index211send timing, 11sending method (encoding), 17settings, 19DNS Tab, 19Mail Address Tab, 19POP Tab, 19SMTP Tab, 19SMTP settings, 4status, 17, 24Se
212IndexTCP/IP, 4UDP/IP, 4put command, 68, 73, 76, 85pwd command, 68, 73, 75Qquit command, 68, 73, 77Rradioactivity, xxivREAD DATA FILE (FREAD) instru
Index213port numbers, 99TCPstatus, 199TCP sockets, 184number, 117status, 199UDP socketnumber, 117UDP sockets, 166Software switch field, 23specificatio
214Index
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
xxviConformance to EC Directives 6• When transporting the Unit, use special packing boxes and protect it frombeing exposed to excessive vibration or i
216Revision History
OMRON CorporationControl Devices Division H.Q.Shiokoji Horikawa, Shimogyo-ku,Kyoto, 600-8530 JapanTel: (81)75-344-7109/Fax: (81)75-344-7149Regional He
Authorized Distributor:Cat. No. W421-E1-03 Note: Specifications subject to change without noticePrinted in JapanThis manual is printed on 100% recycle
1SECTION 1Introduction This section introduces the functions and protocols used in Ethernet Unit communications services.1-1 Ethernet Unit Communicati
2Ethernet Unit Communications Services Section 1-11-1 Ethernet Unit Communications ServicesNote When transferring data through the internet, a global
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
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
5Common Protocol Settings Section 1-4Note The “POP before SMTP” is an authentication function required when sendingmail (using the SMTP server). Norma
vNotice:OMRON products are manufactured for use according to proper procedures by a qualified operatorand only for the purposes described in this manu
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
7Common Protocol Settings Section 1-4The DNS server manages the IP addresses and host names of the nodes thatcommunicate in the network. The Ethernet
8Common Protocol Settings Section 1-4
9SECTION 2Mail Send FunctionThis section provides an overview and describes how to use the Ethernet Unit’s Mail Send Function, including applicationex
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
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
12Mail Send Function Details Section 2-22-2-1 Contents of E-mail Body
13Mail Send Function Details Section 2-22-2-2 Contents of E-mail BodyEthernet Unit's Status Information HeaderThe following header information is
14Mail Send Function Details Section 2-2Note Another sentence will be attached indicating how the specifiedword's value has changed: “Channel dat
15Mail Send Function Details Section 2-2 Error Log InformationThe error log information includes all of the data stored in the Ethernet Unit'ser
vi
16Mail Send Function Details Section 2-2• Since the Ethernet Unit creates the data file automatically, the AccessingMemory/Sending Mail Flag (bit 01 o
17Mail Send Function Specifications Section 2-32-3 Mail Send Function Specifications2-3-1 Function SpecificationsItem SpecificationsDestination e-mail
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
19Using the Mail Send Function Section 2-4become effective. Verify that it is safe for the Ethernet Unit to restart beforetransferring the settings da
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
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
22Using the Mail Send Function Section 2-4Send Mail Condition SettingsMail Address Specification (Required)Data Sent by Mail (When Required) Data Sen
23Using the Mail Send Function Section 2-4 Attached File NameSend Mail Trigger Type Setting (Required)Specifies the type send mail condition that wil
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
25Mail Send Function Status Section 2-5 Send Mail Status 2The transmission status of each send condition is indicated by the content ofthe correspond
viiTABLE OF CONTENTSPRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi1 Intended Audience . . . . . . . . . . . . .
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
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
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
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
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
31Example Application Section 2-92. Destination Mail Address Setup3. Send Condition Setting 1Contents of E-mail Body • Including User-set Data in E-ma
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'
33SECTION 3Receive Mail FunctionThis section describes how to use the Ethernet Unit’s Mail Receive Function, including specifications, status details,
34Mail Receive Function Overview Section 3-13-1 Mail Receive Function Overview3-1-1 IntroductionThe mail receive function performs the following funct
35Mail Receive Function Overview Section 3-1 Remote Mail CommandsEnter the remote command (for example, FileRead) in ASCII in the e-mailsubject line.
viiiTABLE OF CONTENTSSECTION 4FTP Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674-1 Overview . . . . . . . .
36Mail Receive Function Specifications Section 3-23-2 Mail Receive Function Specifications3-2-1 Function SpecificationsReceived E-mailFile memory oper
37Mail Receive Function Specifications Section 3-2Response E-mailAttached fileData format • IOM Write command:Writes an I/O memory data file (IOM, TXT
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
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
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
41Using the Mail Receive Function Section 3-3Receive Attached File SettingReceive Command SettingItem Contents DefaultReceive file with specified exte
42Remote Mail Command Details Section 3-43-4 Remote Mail Command Details3-4-1 FormatCommand FormatResponse FormatMailLogClear Select when you want to
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
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
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
ixTABLE OF CONTENTSAppendicesA Ethernet Network Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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
47Remote Mail Command Details Section 3-4UMBackup (User Memory Backup)Function Backs up (saves) the CPU Unit's user program in the CPU Unit'
48Remote Mail Command Details Section 3-4PARAMBackup (Parameter Area Backup)Function Backs up (saves) the parameter area data in the CPU Unit's E
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
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
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
52Remote Mail Command Details Section 3-4Response FormatPara4:File nameExample)Specifying MEMORY.TXT:Para4:MEMORY.TXTSpecifies the name of the file (i
53Remote Mail Command Details Section 3-4ChangeMode (Operating Mode Change)Function Changes the CPU Unit's operating mode.Command FormatResponse
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
55Remote Mail Command Details Section 3-4ErrorLogClear (Error Log Clear)Function Clears the entire error log from the CPU Unit or a specified Special
xTABLE OF CONTENTS
56Remote Mail Command Details Section 3-4MailLogRead (Mail Log Read)Function Reads the mail log, which contains information on mail received by the Et
57Remote Mail Command Details Section 3-4MailLogClear (Mail Log Clear)Function Clears the mail log, which contains information on mail received by the
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
59Remote Mail Command Details Section 3-4FinsSend (FINS Command Send)Function Requests execution of the specified FINS command by the Ethernet Unit.Co
60Mail Receive Function Status Section 3-53-5 Mail Receive Function Status3-5-1 Accessing Memory/Receiving Mail FlagThe Accessing Memory/Receiving Mai
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
62Attached File Transfer Times Section 3-73-7 Attached File Transfer TimesWhen sending an attached file with the Mail Receive Function, the accesstime
63Mail Receive Function Errors Section 3-83-8 Mail Receive Function Errors3-8-1 Identifying and Correcting Mail Receive Function ErrorsThe following t
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
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
xiAbout this Manual:This manual describes the operation of the CS1W-ETN21 and CJ1W-ETN21 Ethernet Units (100Base-TX) for constructing applications and
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
67SECTION 4FTP ServerThis section describes the functions provided by the FTP server.4-1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . .
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
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
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
71Using the FTP Server Function Section 4-3become effective. Verify that it is safe for the Ethernet Unit to restart beforetransferring the settings d
72FTP Server Application Example Section 4-44-4 FTP Server Application ExampleThe following procedure shows how to use the FTP server by connection wi
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
74Using FTP Commands Section 4-5userFormatuser [user_name]FunctionSpecifies the user name. Specify the FTP login name set in the Ethernet Unitsystem s
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