OmronメーカーCJ1W-ETN11の使用説明書/サービス説明書
ページ先へ移動 of 317
O PER A T I O N M AN U A L Cat. No. W343-E1-07 CS1W-ETN01 (10Base-5) CS1W-ETN11 (10Base-T) CJ1W-ETN11 (10Base-T) Ethernet Units SYSMAC CS/CJ Series.
CS1W-ETN01 (10Base-5) CS1W-ETN11 (10Base-T) CJ1W-ETN11 (10Base-T) Ethernet Units Operation Manual Revised Ja nuary 2008.
iv.
v Notice: OMRON products are manufactured for use accor ding to prope r procedu res by a qualifi ed operator and only f or the pur poses descr ibed in th is manual. The following conv e ntions a re used to indicate and class ify prec autions in this manual.
vi.
vii TABLE OF CONTENTS PRECAUTION S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii 1 Intended Aud i ence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii 2 General Precaution s .
viii TABLE OF CONTENTS SECTION 4 System Setup a nd Memory Al locations . . . . . . . . . . . . . . 57 4-1 Allocated W ords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 4-2 CPU Bus Unit System Setup .
ix TABLE OF CONTENTS SECTION 10 Troubleshootin g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 10-1 T roubleshooting with Ind icators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 92 10-2 Error Status .
.
xi About this Manual: This m anual descr ibes the ins tallation and operat ion of the SYSMAC CS-ser ies CS1W - ETN01 (10Base- 5) and CS1W - ETN11 (10Bas e-T) Ether net Uni ts and the CJ-s eries CJ1W -ETN11 (10Base-T) Ether net Uni t, and inclu des the s ections des cribe d on the next page.
xii About this Manual, Continu ed This m anual contai ns the following sect ions. Section 1 introdu ces the overall structur e of an Ether net networ k, outlin es the f ea tures of the Ether ne t Unit, des cribes the com munications p rotocols u sed by an Ether net network , and provides basic pr e- cautions f or use of an Ether net net work.
xiii Read and Understa nd this Manual Please read and unde rstand th is manual b ef or e using the p roduct. Pl ease con sult your OMRON represent ative if you hav e any ques tions or comm ents.
xiv Application Considerations SUITABILITY FOR USE OMRON shall no t be resp onsible for conf or mi ty with any stan dards, codes, or reg ulations that apply to the combina tion of pr oducts i n the custome r's appl ication or use of the products.
xv Disclaimers CHANGE IN SPECIFICATIONS Produc t specific ations an d accessor ies m a y be changed at any time ba sed on im prov e ments and other reasons. It is our pra ctice to ch ange mo del numbers wh en published ratings or features are chan ged, or whe n signifi cant constr uction changes are made.
xvi.
xvii PRECA UTIONS This section p r o vides general precautions for using the CS/CJ-series Programmable Controllers (PCs) and related de vices. The information contained in this section is imp ortant f o r the safe and reliable application of Programmable Controllers.
xviii Intend ed A udience 1 1 Intended A u dience This manual is intended for the follo wi ng personnel , who must also have knowledge of electr ical sy stems ( an electr ical engineer or the equivalent). • P erson nel in ch arge of ins talling F A systems.
xix Operating En vironm ent Precautions 4 !Caution Ex ecu te online edi t only after conf ir ming that no adverse effects will be caused by extending the c ycle time.
xx Application Pre c autions 5 • Mounti ng or di smounting I/O Units, CPU Uni ts, Inner Boar ds, or any other Units. • Assem blin g the Units . • Settin g DIP switches o r rotar y switches.
xxi Conf ormance to EC Directiv es 6 • Do not pull on the commun ications cables or bend the commun ications cables beyond their natural li mit. Doin g either of these may break the cables. • Do not plac e objects on to p of the communi cations cables or other wir ing lines.
.
1 SECTION 1 F eatur es and System Conf iguration This section intro duces the overall structure of an Eth ernet network, outlines th e features of the Ether net Unit, describes the communications protocols used by an Eth ernet network, and pr ovides basic precaution s for u s e of an Ethe rnet network.
2 Fe a t u r e s Section 1-1 1-1 Features Select from 10B ase-5 or 10Base-T Three mod els of Et her net Unit a re provided to suppor t bo th 10Bas e-5 (CS1W-ETN01) an d 10Base- T (CS1W-ETN11/CJ1 W -ETN1 1) Ethe rn et trans- missio n media.
3 System Configu ration Section 1-2 1-2 System Configuration 1-2-1 Devi ce C onfiguration Note 1. T r ans mission d istance (from T ermina tor to T ermi nator): 500 meter s/segment m ax. 2. When segments are indir ectly conn ected by a repeat er: 2 .5 km/networ k 3.
4 Devices Required in a Netw ork Section 1-3 Configuration With Segm ent Ex tensio n Use rep eaters to extend the distance b etween nod es or to in crease the num- ber of c onnected n odes.
5 Devices Required in a Netw ork Section 1-3 Note 1. It is also po ssible to us e 10Base -T twiste d-pair ca ble by connectin g the Ether net Uni t to a 10Ba se-T conversion adap ter. 2. A 24- VDC power suppl y is requ ired ev en if a 10Ba se-T conversion a dapter is used .
6 Related Programmin g Devices Section 1-4 1-4 Related Pr ogram ming De vice s The Ethe rnet Uni t function s as a node o n the Ether net netwo rk. Th e basic set- tings for operation are made in the CPU B us Unit S ystem Setu p in the CS/CJ- serie s CPU Unit.
7 Specific ations Section 1-5 1-5 Specifications CS-serie s Ethernet Units Item Specific ations Model n umber CS1W -ETN01 CS1W -ETN11 T ype 10Base-5 10Base-T Applicab le PCs CS-series PCs Unit classi fication CS-seri es CPU Bus Unit Mount ing lo catio n CPU R ack or Expa nsion Rack Numbe r of Units t hat can be mount ed 4 ma x.
8 Specifications Section 1-5 CJ-series Et hernet Units Item Specification s Model n umber CJ1W -ETN11 Ty p e 1 0 B a s e - T Applicab le PCs CJ-series PCs Unit classifica tion CJ-seri es CPU Bus Unit Mountin g location CPU Ra ck or Expan sion Rac k Numbe r of Units t hat can be moun ted 4 max.
9 Specific ations Section 1-5 Dimensions ( 16.5 includin g cov er )( Unit: mm ) CS1W -ETN01 130 35 15 6.6 101 CS1W -ETN11 (Unit: mm) 130 35 101.
10 Softwar e Conf igur ation Section 1-6 1-6 Software Configuration The software su ppor ted b y the Ether net Unit r uns in the layers shown in the f o llowing diagram. Th e compone nts that form the various l a yers are defined below the diagram. Ether net The V e rsion-2.
11 Softwa re Conf igur ation Section 1-6 FINS F actor y Interface Network Ser vice: A proto col that sen ds mess ages be tween PCs o n any of various OMRON F A networ ks. The user must provide m ea- sures s uch as retr y proce ssing to ensur e that transmitte d messages ar rive at the desti nation node.
12 IP Addresses Section 1-7 1-7 IP Addresses Ether net ne tworks use IP addr esses f or c ommunicat ions. IP addres ses (Inter - net addres ses) identif y both the Eth er net networ k and the nod e (host com- puter , E ther net Unit, etc.) on th e Ethe rnet network.
13 IP Addresses Section 1-7 nodes r egardless of the networ ks on whi ch they ex i st. T o achiev e this, net- work numb ers are allo cated by the Networ k Sol utions, InterNIC R egistratio n Ser vic es, to ensu re that all E ther net networ ks hav e u nique num bers regard- less of wh ere they e x ist.
14 Precautions Section 1-8 1-8 Precautions Be sur e to ob ser ve the following precau tions whe n inst alling and using a n Ether net Uni t. 1-8-1 Instal l ation Obser ve the f o llowing prec autions when i nstalling an Ether net Syste m. (Refer to Sec tion 3 Installa tion an d Initial Setup fo r d e t a i ls .
15 SECTION 2 Communication s Functions This section provides an ov erv ie w of the communication s functions that can be used with the Ethernet Unit. 2-1 Communications Fun ct ions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16 Communic ations Functions Section 2-1 2-1 Communications Func tions The following table shows the communica tions ser vice fu nctions that are av aila b l e with the E ther net Unit .
17 Communic ations Functions Section 2-1 2-1-1 Ethernet Unit F unctions 2-1-2 Soc ket P or ts Used By the Ethernet Unit Function Con tents FINS co mmunicatio ns • A SEND(090), R ECV(098), or CMND(490 ) instruction from the PC’ s lad- der prog ram is u sed to send a FINS command to a remote node , and a resp onse is recei ved.
18 FINS Co mmunication s Section 2-2 2-1-3 Selecting Comm unications Services Refer to the f ol lowing guidel ines to sel ect the approp ria te communicati ons ser vic e to use i n a given situat ion.
19 Sock et Se rvices Section 2-3 CMND(490) instr uction s in the la dder-diagram pro gram. This en ables control operations suc h as the reading and writing of I/O memor y be tween PCs, mode cha nges, and file memor y operat ions. (When a F INS messag e is sent on an Ethe rn et networ k, a UDP/IP header is automatic ally added t o the mes- sage.
20 Sock e t Serv ices Section 2-3 There is no need to e xecute the CMND(490) i nstruc tion or to mo nitor the com- pletion t iming and actual proces sing of the instr uction, so this hel ps to simpl ify ladde r programming. A total of ei ght por ts (UDP and T CP combin ed) can be u sed f o r sock e t ser- vice s.
21 FTP Server Section 2-4 2-4 FTP Ser ver The Ether ne t Unit has a built-in FTP ser ver function, so othe r computers on the Ether ne t can read or wri te indiv idual fi les in a Memor y Ca rd mounte d to the CPU Unit or in EM file memor y .
22 Mail Section 2-5 4. Mail deliver y is n ot guarante ed. Dependi ng on factors s uch as the condi- tion of t he networ k, mail that has b een sent may not arri v e at its destina- tion.
23 SECTION 3 Installati on and Initial Se tup This section explains how to install the Ethernet Unit and make the initial settings requir ed for operation. 3-1 Before Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
24 Befo re Operation Section 3-1 3-1 Bef ore Operation In order to conne ct the Eth er net Unit to an Ethe rnet network , it is nece ssar y t o set the IP address. This section explain s the proces s of addre ss conversion, which is required informati on f or deter mini ng the Eth er net Unit’ s IP address.
25 Before Operation S ection 3-1 Note The r ightmost b y te of the h ost number bec omes the FINS node numb er , and set the r est of the host number to a ll zeroes.
26 Overview of Star tup Procedure Section 3-2 Setup . With different segment s, nodes with d ifferent networ k IDs can also b e registe red. Character istics of IP Address T a ble Method The IP addres.
27 Overview of Startup Procedure Sect ion 3-2 6. Connec t to the network. Co nnect the transce iv er cable and e xter nal 24- VDC power supply f or 10Base-5 sys tems and t he twisted-pa ir cable f or 10Base-T systems. Ref er to 3-6 Conne cting to the Ne twork .
28 Unit Compone nts Section 3-3 Ref er to 3-7 Creatin g an I/O T able . 8. For simple operation w here the IP addres s only (and no other Sy stem Set- up settin gs) is set, or for operation us ing the Pr ogramming Conso le only , set the IP addr ess in the alloc ated words i n the DM Area using the CX-Pro- grammer or Programmin g Console.
29 Unit Components Section 3-3 3-3-1 Nomenc lature CS-serie s Ethernet Units CS1W -ETN 01 (10Ba se-5) CS1W -ETN 11 (10Ba se-T) Indicators Display the oper ating status of the Unit. Unit Number Switch Used to set the Ethernet Unit's unit number in one digit he xadecimal.
30 Unit Compone nts Section 3-3 CS1W -ETN01 and CS1W -ETN11 Each communicatio ns device connecte d to the Ethe rnet ne twork is allocate d a unique Ether ne t address. F or the Et her net Unit, this Ether ne t address is shown on th e right side of th e Unit as a 12-digit hexadecima l number .
31 Unit Components Section 3-3 CJ-serie s Ethernet U nits CJ1W - ETN11 (10Ba se-T) Note An IP a ddress l abel is provided wi th the CJ 1W -ET N11. Wr iting th e IP add ress and the sub net mask on this label an d then attach ing it to the fr ont of the Uni t allows the IP address a nd subnet mask to be c onfir med ea sily .
32 Unit Compone nts Section 3-3 Each communicatio ns device connecte d to the Ethe rnet ne twork is allocate d a unique Ether ne t address. F or the Et her net Unit, this Ether ne t address is shown on th e right side of th e Unit as a 12-digit hexadecima l number .
33 Switc h Settings Section 3-4 3-4 Switch Settings This sec tion explains how to se t the various switches on the Ethe rnet Unit. 3-4-1 CS-seri es Ethernet Units Setting the Unit Numbe r The unit numb er is used to i dentify in dividual CP U Bus Units when more tha n one CPU B us Unit is mounted to the sam e PC.
34 Switc h Settings Section 3-4 DM Area Alloca tions Setting the Node Number With the F INS communicat ions ser vi ce, when there are mult iple Ether net Units con nected to the Et her net networ k, the Eth ernet U nits are iden tified by node number s.
35 Switc h Settings Section 3-4 The switches are all factor y-set to 0 (00. 00.00.00 ). The Ether net Unit c annot be used with th is setting ; a proper IP addres s must be set. The following set- tings c annot be ma de f or the IP ad dress, or the ERC ind icator will flash.
36 Switc h Settings Section 3-4 Unit Number and CPU Bus Unit Allocations With CJ-ser ies PCs, words ar e automatic ally allocated in the CIO Area an d the DM A rea. The Ether net Unit us es these words for recei ving cont rol dat a from the CPU Un it and f o r notifying the CPU Unit of Ether ne t Unit and com- municat ions status.
37 Mounting to a PC Section 3-5 When usin g the autom atic generation me thod f or address conv ers ion, set the node number to the s ame value as the rightm ost byte of the local IP address. If this is not pos sible , the n either the IP address table metho d or the combine d method must be used for addres s conv er sion.
38 Mounting t o a PC Section 3-5 3-5-2 Mounting to a CJ- series PC Ether net Uni ts can be conn ected to ei ther a CJ-s eries CP U Rack or a CJ- ser ies Expansio n CPU Rack. Conne ct the Ethe rnet Un it in any of the p osi- tions s hown below usi ng the s liders on th e top and botto m of the Unit.
39 Connectin g to the Network Section 3-6 3-6 Connecting to the Netw or k 3-6-1 Ethernet Netw ork Installation When in stalling an Ethe rnet network , be sure to take all a ppropr iate safety measu res and to follo w the ap plicable st andards ( ISO 880 2-3).
40 Connec ting to the Netw ork Section 3-6 3-6-3 Connecting the Cab le T ransce iver Cable (for CS1W-ETN01) !Caution T ur n OFF the PC’ s power suppl y before conn ecting o r discon necting tran s- ce iver ca ble. 1,2,3. .. 1. Prepar e a coax ial cable.
41 Connectin g to the Network Section 3-6 T wisted-p a ir Cabl e (for CS1W -ETN11 and CJ1W -ETN11) !Caution T ur n OFF the PC’ s power supp ly before conne cting or dis connec ting twisted- pair ca ble. !Caution Allow enough spac e f o r the bending radius of the twis ted-pair ca ble as shown in below .
42 Connec ting to the Netw ork Section 3-6 2. Connec t the cable to the hub. Be sure to pr ess in the cable until it lo ck s into place. Exampl es of the a bov e two s teps a re provided i n App endix A . Request ca- ble installa tion from a qualified professional.
43 Connectin g to the Network Section 3-6 !Caution Be sure to tur n OFF the power supp ly to the PC before connecti ng to the power supply ter minal block.
44 Connec ting to the Netw ork Section 3-6 17. If communications are adversely aff ec ted by noise from the Unit’ s power supply ter minals, the problem may be solved by implementing the mea- sure s shown below . a) Add to the c ommunications retr y pro cessing at th e applic ation.
45 Creating an I/O T able Section 3-7 Note 1. Use a pow e r supply th at meet s these spec ifications. 2. If the power su pply is sep arate from a node, make sure that these s pecifi- cations are met a t the node’ s ter minal block. 3. T ur n ON the Unit’s po wer sup ply either before or at the same time as the CPU Unit’ s power supply .
46 Creating Routi ng T ables Section 3-8 ex p lanation o f how to create a n I/O table using a C X-Programmer , refer to the CX-Programmer Use r’ s Manual . Use the following proce dure to create the I/O table. Note With the CJ Seri es, it is necessa r y to create an I/O table only wh en I/O all oca- tion is pe rf or me d by the user .
47 Creating Ro uting T ables Section 3-8 Local Net work T able T he local ne twork ta b l e is a table desc ribing the corre spondences among uni t numbers of the Communicatio ns Units and Board s mounted to each nod e (PC or F A Computer).
48 Creating Routi ng T ables Section 3-8 3-8-2 Connecting and Using a P eripheral Device f or the PC Routing tables must be created by a CX-Net connec ted to the PC. (They can- not be crea ted using a Pro gramming Console.) For details on how to connec t and use a CX-Net, refer to the CX -Programmer User ’ s Manual .
49 Creating Ro uting T ables Section 3-8 Example 2: Three In terconnected Networks This example sh ows the relay network table setting s f o r three dif f ere nt inter- conne cted net works.
50 Creating Routi ng T ables Section 3-8 Example 3: All Nodes This example uses the following configu ration to show the routi ng tables f or all nodes.
51 Syste m Setup Section 3-9 3-9 System Setup The settings f o r the Ether ne t Unit’ s basi c and specia l function s are made i n the CPU Bu s Unit Sy stem Se tup . T hese se ttings, and the s ituations i n which the settin gs must be made, are sh own in the following table .
52 Creating an IP Addr e ss T able Section 3 -10 F o r informatio n on IP add ress table setti ngs, ref er to 3-10 Creating an IP Addres s T a ble . F or inf o rmati on on IP rou ter table settings, refer to 3-11 Creat- ing an IP Router T able . Fo r inf or mat ion on IP mai l tran smission sett ings , ref er to Sec tion 8 Mail .
53 Check ing Commun ications Section 3- 12 3-12 Checking Comm un ications The Ether ne t Unit suppor ts the PING command , which is als o widely sup- por ted by host comput ers. It also suppor ts a function for i nter node test ing in the F INS comm unicatio ns service b y simply m anipul ating bi ts with a Pro gram - ming D e vi ce.
54 Check ing Communication s Section 3 -12 Note 1. The inter node test can be easily car ried ou t by manipulati ng dedicate d control s witches f or the Ether net Unit .
55 Check ing Commun ications Section 3- 12 When the a bov e s ettings h a ve been complete d, reset the p ower supply . 4. Check Communi cations In order to check that c onnection is establishe d with Ether net U nit at a n IP protoco l le vel (i.
56 Check ing Communication s Section 3 -12 Nor mal Resp onse C0 00 02 01 28 00 01 2A 00 01 01 01 ICF RSV GCT DNA D A1 D A2 SNA SA1 SA2 SID Command code (READ) 00 00 Completion code (Normal completion).
57 SECTION 4 System Setu p and Memory Allocations This section explains the System Setup and the words allo cated in the CIO Area and the DM Area for Ethern et Un its. 4-1 Allocated W ords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
58 Allocated W ords Section 4-1 4-1 Allocated W ord s The Ether ne t Unit is allo cated word s in the f o llowing thr ee areas for reading settings and statu s.
59 CPU Bus Unit Syste m Setup Section 4-2 CIO Area Allocations DM Area Alloca tions 4-2 CPU Bus Unit System Setup T o o perate the E ther net Unit as a node on an Eth er net networ k, the req uired parameter s must be set in th e CPU Bus Unit Sy stem Setup, par t of the CP U Unit’ s Par a meter Areas.
60 CPU Bus Unit S y stem S etup Section 4-2 mer . With CJ-ser ies Ether ne t Units, howe ver , it i s possible to set the l ocal IP address an d the subnet mas k using the FINS com mand IP ADDRESS WRITE. For details, refer to 1 1-3-20 IP ADDRE SS WRITE .
61 CPU Bus Unit Syste m Setup Section 4-2 Note When us ing autom atic addr ess generat ion (the default) for addres s conv er- sion, ma ke the f oll owing setting s.
62 CPU Bus Unit S y stem S etup Section 4-2 Set the loc al IP addres s in the alloc ated words in the DM Area when u sing the CPU Bus Un it Sys tem Setup at its d ef a ult setting s (i.e., for simple operation). The set ting is usu ally mad e with a Programmin g Console.
63 CPU Bus Unit Syste m Setup Section 4-2 If the login nam e is incorr ectly sp ecified, or if no login name is specif ied at all, the default login n ame of “CONF IDENTIAL ” will be used an d no FTP pas s- word will b e required . The default is for no FTP login nam e to be se t.
64 CPU Bus Unit S y stem S etup Section 4-2 A maximum of eight reco rds can be re gistere d. The default is f o r nothing to be set. F o r an explanation of how to make the settings, refer to the C X-Programmer User’ s Manua l .
65 CPU Bus Unit Syste m Setup Section 4-2 •U s e r D a t a (Refer to Sending User Data for Er rors below .) • Error Log Informati on (Refer to Sen ding Erro r Log Infor mation for Error s below .) • Status Inf o rmati on (Refer to Status In formation f or Erro rs below .
66 CPU Bus Unit S y stem S etup Section 4-2 If none of these types of data i s selected , mail w ill not be sent even if the s et- ting is made for mail to be s ent whenev er a n error i s registered . Mail Interval When ma il is sent per iodi cally , it is se nt at the time int er val that is set her e.
67 CIO Area Allocati ons Section 4-3 4-3 CIO Area Allocations The various kinds of data are st ored in the offse t positions sh own in the f o l- lowing diagram, from the begin ning word i n the area for each Un it.
68 CIO Area All ocations Section 4-3 Unit Control Switches (CPU Unit to Et hernet Unit) Internode T est Star t Switch (Bit 1) Inter node te sting is e xecuted and stoppe d by turni ng ON an d OFF this s wi tch. The parameter s f or designating the r emote node for testing, and so on, are set in t he allocate d words in th e DM Are a.
69 CIO Area Allocati ons Section 4-3 Status of UDP/TCP Sockets 1 to 8 (Ethernet Unit to CPU Unit) Note The sta tus of these fl ags can also be che ck ed u sing the sof tware s wi tch set- tings on the CX-Pro grammer .
70 CIO Area All ocations Section 4-3 Sen ding Flag ( Bit 2 ) T ur ns ON when a send request is rec eiv e d eith er by control s wi tch mani pula- tion or t he CMND(49 0) instr uction , and tur ns OF F again when the send pro- cessi ng has bee n complet ed.
71 CIO Area Allocati ons Section 4-3 P ower St atus (Bit 15) T ur ns ON while power is bein g supplied fr om the Ether net Un it to the trans- ceiver , and OFF when po wer is not being supp lied. Check to be sure that this bit is ON before beginning c ommunicat ions.
72 CIO Area All ocations Section 4-3 Note A transceiver is built into the CS1W -ETN1 1 and CJ1W -ETN1 1. If this bit tur ns ON, the E ther net Unit h as malfuncti oned.
73 DM Area Alloc ations Section 4-4 4-4 DM Area Allocations The various kinds of data are st ored in the offse t positions sh own in the f o l- lowing diagram, from the begin ning word i n the area for each Un it.
74 DM Area Allocation s Section 4-4 Specify , in hexadecimal , the number of bytes of test data to be s ent between nodes. 0000 (Hex): 1,996 bytes 0001 to 07C C (Hex): 1 to 1,996 bytes Internode T est Response Monitoring Time (CPU Unit to Ethernet Unit) Specify , in h e xad ecimal, th e amount of time to wait f or the inter node tes t response.
75 DM Area Alloc ations Section 4-4 When the count re a ches FFFF (He x), it will star t over a gain at 0. The count v a lue will be retain ed until the i nter node test is resta r ted. Note When a ro uting table error or a transmiss ion parameter error occurs, the num- ber of in ter node t ests is not increm ented.
76 DM Area Allocation s Section 4-4 Mail Status (Ethernet Unit to CPU Unit) The transm ission statu ses of user mai l, period ic mail, and error log mai l are stored i n this wo rd as shown in the following table.
77 DM Area Alloc ations Section 4-4 be store d here a nd the ERC indi cator will fl ash. (Re f er to Setting the Lo cal IP Addres s. ) CJ-series E thernet Units IP addre ss: 12.34 .56.78 (Hex) If the loc al IP addr ess in the CPU Bu s Unit Sy stem Set up is set to a value other than 00.
.
79 SECTION 5 FINS Communications This section provides information on communicating on Et hernet Systems and interconnected networks using FINS commands. The informatio n provided in the section deals only with FIN S communications in r eference to Ethernet Units.
80 Overview of FINS Commun ications Section 5-1 5-1 Overview of FINS Communications The FINS co mmunicatio ns ser vice enables client control of operations suc h as read ing or wr iting ser v er PC memor y area data with out the nee d to pro- gram these operations in to the ser ver PC user program.
81 Overview of FINS Com municatio ns Section 5-1 • Wr iting data, changi ng modes, r eading d etailed infor mation a bout Units, and so on , can be e xecuted wit hout any par tic ular knowledg e of commu- nicatio ns procedu res or network classifica tion.
82 Procedure Before Usi n g FINS Comm unications Section 5-2 5-2 Pr oced ure Bef o re Using FINS Com m unic ations Note The locati on of the loc al IP addre ss setting d epends on the ty pe of CPU Uni t in the f oll owing way . CS Ser ies: Rotar y switches o n back of Ether net Unit.
83 Sending Comman ds F rom a PC Section 5-3 5-3 Sending Com mands From a PC FINS co mmands can be sent fr om the user ’ s ladde r-diagram program in th e PC by using th e SEND(090) , RECV(098) , and CMND(49 0) instr uct ions. SEND(09 0): Wr ites I/O data from the loc al node to another node.
84 Sending Comm ands F rom a PC Section 5-3 Using SEND(090), RECV(098) , and CMND(490) Make the setting s shown below when using the SEND(090) , RECV(098), an d CMND(490) instr uctions in the user ’ s ladde r-diagram program in the PC.
85 Sending Comman ds F rom a PC Section 5-3 RECV(098) With t he RECV(098) instr uction, th e data in m num ber of words, star ting from the beginni ng word S at the remote nod e (node number M) i s received at the words star t ing from the beginning word D at the l ocal node.
86 Sending Comm ands F rom a PC Section 5-3 CMND(049) The CMND(049) instr uction sends n bytes of com mand data, star ting from th e beginnin g word S a t the local node, to the node at node number N.
87 Sending Comman ds F rom a PC Section 5-3 Commands Addressed to CS/CJ-se ries CPU Units The f o llowing table provides a li st of FINS comm ands that can be proc essed by a C S/CJ-ser ies CPU Unit. For details, ref er to the CS/CJ-se ries Pr ogram- mable Controller s Communicati ons Comm ands Reference Manual (W342).
88 Sending Comm ands F rom a PC Section 5-3 File me mor y 22 01 FILE NAME READ Reads file m emor y data. 22 02 SINGLE FILE READ Reads a s pecified lengt h of file data from a sp ecified pos ition w ithin a single file. 22 03 SINGLE FILE WR ITE Wr ites a s pecified lengt h of file data from a sp ecified pos ition w ithin a single file.
89 Sending Comman ds F rom a PC Section 5-3 Writing Pr ogra ms Pr ograms incor porat ing the S END(090), RECV(098) , and CMND (490) instr uction s are genera lly create d using the Co mmunicatio ns P or t E nabled Flag an d the Communic ation s P or t Er ror Flag as input conditio ns.
90 Sending Comm ands F rom a PC Section 5-3 Communic a tions Flags T he ex ecution status of the SEND (090), RECV (098), and CMND(490) instru c- tions is always reflect ed by the communication s flags (i.e., the Com munica- tions P or t Enabled Flag and the Co mmunicatio ns P or t Error F lag).
91 Sending Comman ds F rom a PC Section 5-3 Communication s P ort Error Flag and Completion Codes CMND(490) Errors that occur when CMND(4 90) is use d generate a Commun ications P o r t Error F lag and are recorde d in a c ommunications por t c ompletio n code on ly in the following cas es: • When a respon se timeou t error ha s occur red.
92 Sending Comm ands F rom a PC Section 5-3 5-3-2 Pr ogram Example When the Communications P or t Enabled Flag f or por t 7 is ON, and RECV(098) is not being ex ecuted, the send ex ecution program will start when ex ecution condition CIO 000000 turns ON.
93 Sending Comman ds F rom a PC Section 5-3 Note With CS/C J-ser ies PCs, the Communicati ons P or t En abled Flags at bits 0 to 7 in word A202 tur n OFF e ven when the PCMR (260) ins tructi on is being ex e- cuted us ing the por ts corres ponding t o those flags.
94 Sending Comm ands F rom a PC Section 5-3 SEND(09 0) The tran smission delay for the SEND( 090) in stru ction ca n be c alculat ed usin g the following equat ion, which i s illustrated i n the following diagram.
95 Sending Comman ds F rom a PC Section 5-3 RECV(098) The tran smission delay for the REC V(098) i nstr uction c an be c alcula ted usin g the following equat ion, which i s illustrated i n the following diagram.
96 Sending Comm ands F rom a Host Computer Section 5-4 Example C alculatio ns T he f oll owing example shows calcul ations for receivin g 256 words betwee n two PC nod es using RE CV(098). T he local no de’ s C PU cycle t ime is 10 ms, and the rem ote node’ s CPU cycle time i s 15 ms.
97 Sending C ommands F rom a Host Co mputer Section 5-4 Example 1 : Intranetwork Addressing In this example, the host compu ter and the remo te node (Ethe rnet Uni t) are on the same networ k. The com munications para meters spec ified from the host com puter would be a s follo w s: Destination IP Add ress: 196.
98 Sending Comm ands F rom a Host Computer Section 5-4 FINS Command Frame Configuration FINS Response Frame Configuration The re sponse cod e (one byte each for MRES and SRES ) for the comm and is added at the b eginning of the FIN S paramete r/data fiel d in the respons e frame.
99 Sending C ommands F rom a Host Co mputer Section 5-4 dress used for Ether net. 00 (Hex): Local PC Unit 01 to 7E ( He x ): Destination nod e number (1 to 126) FF (Hex): Broadcas ting When multi ple Commun ications Un its are mounted, DA1 specifies the node number of the Unit conne cted to the network s pecified by DNA.
100 Sending Comm ands F rom a Host Computer Section 5-4 14 /* 15 * FINS COMMUNICA TIONS SAMPLE PROGRAM 16 */ 17 main(argc,argv) 18 int argc; 19 char *argv[]; 20 { 21 int sockfd; 22 struct sockaddr_in .
101 Sending C ommands F rom a Host Co mputer Section 5-4 77 { 78 else{ 79 err_exit(”send error”); 80 } 81 82 /* RECEIVE FINS RESPONSE */ 83 addrlen = sizeof(cs_addr); 84 if((recvlen = recvfrom(soc.
102 FINS Se rver Section 5-5 words read) + CPU cy cle time + CPU data read proce ssing time ( Ref er to page 96) Note 1. The transfer time may exceed the calcul ated value due t o the actual oper- ating environm ent. F actors affecting the transfer time are networ k traffic, the window s ize of eac h node, Ether ne t Unit traffic (e.
103 SECTION 6 Sock et Ser vices This section describes th e functionality provided by the Ethernet Unit via the so cket services. 6-1 Overvie w . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 6-1-1 Socket Service Functions .
104 Overview Section 6-1 6-1 Over vie w 6-1-1 Soc ket Ser vice Functions The so ck et ser vi ces allow devices on th e Ether net t o send and r eceive v a ri- ous data us ing the UDP o r TCP proto col.
105 Overview Section 6-1 Specific Soc k et Service Functions The socket serv ice functions listed in the f ollow ing table can be ex ecuted either u sing Socket Ser vice Reque st Switc hes or using C MND(490) . 6-1-2 Soc kets Sockets are interfaces that allow TC P and UDP p rotocols to be used di rectly from the u ser program.
106 Overview Section 6-1 quently , por t n u mbers 102 4 and abov e s hould be used for sock et ser vic es. The Eth er net Unit doe s not sup por t por t #0. Some por t numbers ov e r 1024 may be res erved on s ome wor kstations (for ex a mple, the X- window ser ver is por t #6000).
107 Overview Section 6-1 6-1-6 Opening TC P Sockets T o ac hie ve highly reliable data communi cations, TCP es tablishes a vir tual communica tions ci rcuit between the two no des before star ting data transmis- sions. The vir tua l communi cations circuit is known as a “con nection.
108 Overview Section 6-1 6-1-7 Fragmentation of Send Data The Ether n et Unit fragment s data for TCP transmis sion into units of 1,02 4 bytes and dat a for UDP transmissio n into units of 1,472 b ytes. TCP r equires one rec eption req uest to r eceive each u nit of da ta.
109 Overview Section 6-1 When us ing TCP protocol , the fragme nted data is passe d to the u ser pro- gram. Therefore, the receiving user program must be able to ev aluate th e end of the d ata transmissi on, and re peatedly send recei v e reques ts until a ll data has been re ceived.
110 Overview Section 6-1 data reques t is set smalle r than the actual len gth of the data, all rece ived data e xceedi ng the se t data le ngth will be discar ded. 6-1-8 Maxim um T ransmission Del ays The transmi ssion d elays f o r sock e t ser vice is calc ulated as the sum of the communica tions pr ocessi ng times f or both nodes.
111 Overview Section 6-1 6-1-9 Precautions i n Using Sock et Services UDP and TCP Soc ket Servic es • If a shor t res ponse moni tor time is specified i n CMND(49 0) control data and the Ethe rn et Unit is op erating under a high load, a res ult may be stored ev e n if the resp onse code i ndicates a time-out.
112 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 • Data can remain in a buff e r at the local node if the remo te TCP socket closes dur ing communi cations. Any da ta remain ing in the buff er will be discarde d when th e TCP so ck et is clo sed.
113 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 An illustrati on of using Socket Ser vice Reques t Switche s to e xecute socket ser vic es is provid ed below .
114 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 6-2-1 Soc ket Service P arameter s The Socket Ser vice Par am eter Areas in which pa rameters are se t to request socket ser vices is in the CPU Bus Unit Area in the D M Area of the CPU Uni t.
115 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 P arameter Settings The following table shows the pa rameters that a re requir ed f or each se r vice and the us e of the para meters by the so ck et ser v ice. UDP Socket Serv ices Note W: W ritte n by user .
116 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 Local UDP/TCP P or t No. Specify the number o f the UDP o r TCP por t for the socket to use for communi- catio ns. • Do not specify the por t being used as the FINS UDP por t (default: 9600) in an open reques t f or a UDP socket.
117 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 Remote UDP/TCP P or t No. Specify the UDP or T CP por t numbe r used by the re mote device. • Thi s parameter i s not used when making a receive reques t f or a UDP socket.
118 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 lowing resp onse code s will be stor ed depend ing on th e ser vice th at was request ed. UDP Socket Open R equest UDP Socket Recei ve Request UDP Socket Send Request Response code Meaning 0000 Normal end 0105 Local IP add ress setting error .
119 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 UDP Socket Close Re quest TCP Socket Passive Op en Request 110C Reque st Switch turned ON during oth er processing. 220F Specified soc ke t is alrea dy processing a send request.
120 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 Note Thes e response codes will be returned only on lar ge, m ultile v el netw orks. TCP Socket Ac tive Open Re quest 004B (See note .) Error in co mmunica tions with remote no de (ECONNRESET).
121 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 Note Thes e response codes will be returned only on lar ge, m ultile v el netw orks. TCP Socket Re ceive Reque st Note Thes e response codes will be returned only on lar ge, m ultile v el netw orks.
122 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 Note Thes e response codes will be returned only on lar ge, m ultile v el netw orks. TCP Socket Clos e Request 6-2-3 Soc ket Service Request Switches Socket Servi ce Request Sw itches are mani pulated to reques t sock et ser- vices.
123 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 Sock et Ser vice Request Switches 7 Sock et Ser vice Request Switches 5 Sock et Ser vice Request Switches 3 Sock et Ser.
124 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 The configu ration of each set of Sock et Ser vice Reque st Switche s is shown in the following diagram. As shown in the ab ov e table, the R equest Sw itches ar e tur ned OFF by the Ether net Uni t when the r equested pr ocesses has been c ompleted .
125 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 6-2-4 UDP/TCP Sock et Status The statu s of the UDP an d TCP sockets is provided i n the Sock e t Status Words shown in the following diagram. T here is a st atus word for each so ck et f o r both UDP and T CP .
126 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 Note The TCP sock et connec tion statu s is also provided as c odes in the f o llowing words of th e words allo cated to t he Ether net Unit in t he CPU Bus Unit Ar ea in the DM A rea: D3000 0 + (1 00 x uni t number) +9 t o +16.
127 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 Precautions A Socket Ser vice P a rameter Area cannot be used f or other sock ets once open processi ng has be e n su ccessful ly complet ed f or it. Ch eck th e soc ket status b efore attempting to open a sock et.
128 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 The flow is simi lar for other socket ser vices. R eplace the name s of the a ppro- pri ate flags in the flowchar t to adapt it to other socket serv ices.
129 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 tur ning OFF the Reques t Switch f or the canc eled proce ss and t urni ng of the Close Req uest Swit ch, allowing time for the response code to be read. Note The Open Flag w ill not tur n ON at a ll if a close reque st is made dur ing ope n processi ng.
130 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 6-2-8 TCP/IP Comm unications Pr ogramming Example The f o llowing programmi ng e xa mple illustrat es transferring 100 b yte s of data between an E thern et Unit and a hos t computer us ing TCP /IP communica- tions.
131 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 Program Memor y Map The se nd and r eceive data and bits (fl ags) used by the program a re shown in the following diagram. DM Area CIO Area The following bits and flags are used to contr ol CMND(490) ex ecuti on.
132 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 Pr ogramming Example When the TCP Closing Flag (CIO 000201) tur ns ON, the follo wing parameter is written to the parameter area for sock et number 1. D30018: 0001 Hex = UDP/TCP soc ket No .
133 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 TCP Receive When the TCP Receive Bit (CIO 000003) turns ON, the TCP Receive Error Flag (CIO 000103) is turned OFF and the TCP Receiving Flag (CIO 000203) is tur ned ON to initialize processing.
134 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 Note When usin g the abov e pr ogramming e x ample, change the bit and word address es as necessar y to a void using the same ar eas used by other par ts of the user pr ogram or the CPU Bus Unit.
135 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 Basic Oper ations • CIO 000 000 is tur ned ON to req uest openi ng a UDP socket from the Ether net Uni t. • CIO 00 0001 is tu rned O N to requ est closing th e UDP socket from the Ether net Uni t.
136 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 Pr ogramming Example If the Close Request Switch (CIO 151905) turns OFF while the UDP Opening Flag (CIO 000201) is OFF , .
137 Using Soc ket Se rvices with Soc k et Service Request Sw itches Sect ion 6-2 UDP Receive When the UDP Receive Bit (CIO 000003) turns ON, the UDP Receive Error Flag (CIO 000103) is turned OFF and the UDP Receiving Flag (CIO 000203) is turned ON to initialize processing.
138 Using Soc ket Se rvices with Soc ket Service Request S witches Section 6-2 Note When usin g the abov e pr ogramming e x ample, change the bit and word address es as necessar y to a void using the same ar eas used by other par ts of the user pr ogram or the CPU Bus Unit.
139 Using Sock et Services with CMND(490) Section 6-3 6-3 Using Socket Services with CMND(490) Ser vic e request commands can be sent to the Ethe r net Unit by e xecuting the CMND(490) instr uction in th e ladde r diagram.
140 Using Sock et Services with CMND(490) Section 6-3 Note If there is more tha n one Communicati ons Unit mounted to the PC , the FINS network address mus t be set as a parameter for CMND(490 ) and a loca l net- work ta b l e must be cre ated in the routing tables from the CX-Pr ogr a mmer .
141 Using Sock et Services with CMND(490) Section 6-3 Note The TCP sock et connec tion statu s is als o provided as c odes in the f o llowing words of th e words allo cated to t he Ether net Unit in t he CPU Bus Unit Ar ea in the DM A rea: D3000 0 + (1 00 x uni t number) +9 t o +16.
142 Using Sock et Services with CMND(490) Section 6-3 1,2,3. .. 1. Execute a socket ser vice req uest command (MRC: 27) f or th e Ether net Unit using CM ND(490). 2. CMND(4 90) ends no r mally when the so ck et ser vi ce request command is received and a r esponse is retur ned (response c ode: 0000).
143 Using Sock et Services with CMND(490) Section 6-3 6-3-2 Soc ket Services and Socket Status When usi ng sock et ser vices, it is im por tant to consider th e timing of th e status changes in the socket status are a. The di agram below shows a p rogram flow- char t for open ing UDP .
144 Using Sock et Services with CMND(490) Section 6-3 6-3-3 Comm unications Timing Chart The timing of th e status cha nges of the bi ts in the socket status area and th e P or t En abled Flag i s shown in the following diagram .
145 Using Sock et Services with CMND(490) Section 6-3 SEND REQUEST RECEIVE REQUEST CLOSE REQUEST during RECEIVE REQUEST Note The tim ing shown in the above diagram occurs if a CLOSE REQUEST c om- mand is ex ec uted duri ng SEND REQUEST co mmand ex ecuti on.
146 Using Sock et Services with CMND(490) Section 6-3 shown in the diagram also applies i f a CLOSE REQUE ST com mand is ex e- cuted dur ing OPEN REQUES T command e x ec ution, wit h the exception o f the status o f the Openi ng Flag.
147 Using Sock et Services with CMND(490) Section 6-3 • One of th e bits between CIO 000100 and CIO 00 0103 will tur n ON if an error occu rs. Refe r t o 6-2-2 Respo nse Codes f or inf o rm ation on er rors.
148 Using Sock et Services with CMND(490) Section 6-3 Number bytes to receiv e: 4 bytes 006EH 0004H 0001H 0110H 0000H 0032H 0123456789 D00020 CMND(490) control data for TCP SEND REQUEST Command format.
149 Using Sock et Services with CMND(490) Section 6-3 2713H 0001H 820BH C200H 0123456789 D02000 2714H 0123456789 D01040 D01050 0064H TCP CLOSE REQUEST response Re- sponse code TCP CLOSE REQUEST result.
150 Using Sock et Services with CMND(490) Section 6-3 CIO Area The following bits and flags are used to contr ol CMND(490) ex ecuti on. The bits in CIO 0000 are used to signal ex e cution, t he bits in CIO 0001 are u sed to signal errors, and the bits in CIO 0 002 are used to control the pro gram so that the in structi on is ex ec uted only once.
151 Using Sock et Services with CMND(490) Section 6-3 Pr ogramming Example If the P or t Enabled Flag (A20200) turns ON and the Clos- ing Flag (CIO 150903) turns OFF while the TCP Closing Flag (CIO 000201) is OFF , checks are made and if any of the follo wing are tr ue, the TCP Close Error Flag (CIO 000101) is turned ON.
152 Using Sock et Services with CMND(490) Section 6-3 When the TCP Receiving Flag (CIO 000203) tur ns ON, the status of the P or t Enabled Flag (A20200) is chec ked to be sure it is ON and a TCP RECEIVE REQUEST command is sent using CMND(490).
153 Using Sock et Services with CMND(490) Section 6-3 Note When usin g the abov e pr ogramming e x ample, change the bit and word address es as necessar y to a void using the same ar eas used by other par ts of the user pr ogram or the CPU Bus Unit.
154 Using Sock et Services with CMND(490) Section 6-3 Pr ogram Memor y Maps The se nd and rec eive data and bits (fl ags) used by the program are shown in the following diagrams.
155 Using Sock et Services with CMND(490) Section 6-3 2701H 0123456789 D01010 Re- sponse code Stores the response after command ex ecution. UDP OPEN response 0123456789 D01020 UDP OPEN REQUEST results.
156 Using Sock et Services with CMND(490) Section 6-3 CIO Area The following bits and flags are used to contr ol CMND(490) ex ecuti on. The bits in CIO 0000 are used to signal ex e cution, t he bits in CIO 0001 are u sed to signal errors, and the bits in CIO 0 002 are used to control the pro gram so that the in structi on is ex ec uted only once.
157 Using Sock et Services with CMND(490) Section 6-3 Pr ogramming Example If the P or t Enabled Flag (A20200) turns ON and the Clos- ing Flag (CIO 150103) turns OFF while the UDP Closing Flag (CIO 000201) is OFF , checks are made and if any of the follo wing are tr ue, the UDP Close Error Flag (CIO 000101) is turned ON.
158 Using Sock et Services with CMND(490) Section 6-3 When the UDP Receiving Flag (CIO 000203) turns ON, the status of the P or t Enabled Flag (A20200) is chec ked to be sure it is ON and a UDP RECEIVE REQUEST command is sent using CMND(490).
159 Using Sock et Services with CMND(490) Section 6-3 Note When usin g the abov e pr ogramming e x ample, change the bit and word address es as necessar y to a void using the same ar eas used by other par ts of the user pr ogram or the CPU Bus Unit.
.
161 SECTION 7 FTP Server This section describes the f unctions provided by the FTP server . 7-1 Overvie w . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 7-2 Setting Login Name s and P asswords .
162 Overview Section 7-1 7-1 Over vie w The Ether n et Unit suppo r ts the ser ver functi ons of FTP (fil e transfer protocol), a stand ard protocol in T CP/IP. A hos t computer functionin g as an FTP cl ient on the Ether net c an read or write individu al files in a Memor y Card mounted to the C PU Unit or in EM file m emor y .
163 Setting Login Names and P asswor ds Section 7-2 7-2 Setting Login Na mes and P assw o r ds The default FTP lo gin name is “CO NFIDENTIA L ” and no pas s word is r equired. Login i s compl eted by typing only “CO NFIDENTIAL ” . A different login name and a pas s word can be se t as requir ed usin g the CPU B us Unit Se tup .
164 Usin g F il e Me mory Section 7-3 Note The HMC- AP001 PC C ard Adapt er can be us ed to mount a Mem or y Car d in a PC ca rd slot on a compu ter . File T ypes The MS-D OS file form at is used, all owing the files to be h andled as n or mal files on a Windows-bas ed compu ter .
165 Using F ile Memory Section 7-3 File Names Handled by CPU Unit The fil es descr ibed in the following table can b e read or writte n by the CPU Unit. Note 1. Refer to informat ion on fi le memor y in the CS /CJ-series Programmable Controll ers Operation Manual (W339).
166 Usin g F il e Me mory Section 7-3 Data File Format The format of d ata files (fi les with .IOM e xten sions) is sh own in the f o llowing diagram. Set the r eser ved b y tes to all zeros (00 Hex). Writing Data Files via FTP In th is example, the put comm and (see p age 171 ) is used to wr ite the follow- ing data to a fi le call ed DMD A T A.
167 FTP Serv er Application Example Section 7-4 7-4 FTP Ser ver Application Exampl e The following proced ure shows h ow to use the FTP ser ver by conne ction wit h the default login name, CONFIDENT IAL.
168 Using FTP Commands Section 7-5 2. The FT P ser ver can hand le only o ne comma nd at a time. 3. Do not si multaneous ly write a file with th e same name to the same file de- vice in a CPU Unit from more than o ne Ether net Unit o r ladder di agram program.
169 Using FTP Commands Section 7-5 7-5-2 Using the Commands open Format open [ IP_address or host_name_of_FTP_server ] Function Connects th e FTP ser ver . Nor ma lly when th e FTP cl ient is bo oted, the FTP ser ver IP add ress is spe cified to ex ecute thi s comman d automati cally .
170 Using FTP Commands Section 7-5 An error will occur i f a file or director y of the same na me alrea dy ex i sts in the worki ng director y . rmdir Format rmdir DIRECTORY_NAME Function Deletes the dire ctor y of the spec ified name from the re mote host (Mem or y Card or EM File Memor y).
171 Using FTP Commands Section 7-5 Function Allows the use of a wi ldcard character (*) to transfer mul tiple rem ote files from the Memor y Ca rd or EM Fil e Memor y to t he local host. put Format put file_name [ DESTINATION_FILE_NA ME ] Function T ransfers the sp ecified local f ile to th e remote host (M emor y Ca rd or EM File Memor y).
172 Using FTP Commands Section 7-5 7-5-3 Err or Messages and FTP Stat us Error Messag es The error messages re turne d by the Ether net Unit ar e listed in the f oll owing tabl e. Messag e Meani ng PPP is a d irector y . The path name indicated at PPP is a direct or y .
173 Using FTP Commands Section 7-5 PPP: P at h name XXX: IP add ress YY : P or t n umber MM: FINS er ror code NN: Sock et error code Chec king FT P Status Note 1. File op erations for files on th e Memor y C ard are per f or med during FTP communica tions.
174 UNIX Application Exam ple Section 7-6 2. If the per ipheral ser v icing time setting in the PC Setup is incr eased, FTP files wi ll be transferred faster . 7-6 UNIX Application Examp le The following proced ure provides an e xam ple of FT P operations from a UNIX works tation.
175 UNIX Application Exampl e Section 7-6 4. Change to the MEM CARD directo r y . 5. Change data type t o binar y . 6. T ransfer the file RESU L T .IOM t o the work station. 7. Wr ite the f ile PLAN.IO M to the Me mory Card. 8. End F TP . Change to MEMCARD directory .
.
177 SECTION 8 Mail This section explains the Ethernet Unit’ s mail fun ction. 8-1 Overvie w of Mail Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 8-1-1 Mail Contents . . . . . . . . . . . . . . . . . . . .
178 Overview of Mail Func tion Section 8-1 8-1 Over vie w of Mail Functi on The mail function can be used to send use r-created in f o rmati on, error lo g informati on, and s tatus infor mation a s e-mail to an ad dress s et in the CPU Bus U nit Sys tem Setup.
179 Ove rview of Mail Func tion Section 8-1 8-1-1 Mail Content s Head er The following he ader informa tion is attac hed. • Subj ect: OMR ON Ethe r net Un it Mail S er vice • Content -T ype: te xt.
180 Overview of Mail Func tion Section 8-1 • V ersi on • IP add ress (dec imal notati on) • Subne t mask ( decimal no tation) • ID a ddress co n version met hod Optional Information The optio nal inform ation that can be sent is s hown in the following table.
181 Ove rview of Mail Func tion Section 8-1 ON, the mai l transmission is star ted according to the mail s ettings that have previously been mad e in the CPU B us Unit System Setup. If a transm ission is restar ted while th e mail pr ocessin g is sti ll in progr ess, it will be i n valid.
182 Sending Mail Section 8-2 8-2 Sending Mail The pr ocedure for sendi ng mail i s as follows: 1,2,3. .. 1. Make the following settings in t he CPU Bus Unit System S etup . • Mail s end inf ormation •M a i l t i m i n g • User -created m ail data addr ess • SMT P ser ver address • Local mail add ress • Desti nation mail address 2.
183 Mail Example Section 8-3 2. T ur n ON the Mail Sen d Switch in the CIO Area words al located t o the CPU Bus U nit. The st atus, such as mail b eing p rocessed , and so on, is reflect ed in the User Mail Stat us Area in the DM Area words al located to the CPU Bus Unit.
.
185 SECTION 9 T esting Communications This section describes f unctions that allow you to test communications. 9-1 Communications T esting Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 9-2 PING Command . . . . . . . . .
186 Communic ations T esting Func tions Section 9-1 9-1 Communications T esting Func tions The Eth er net Unit p rovides two fu nctions that allow co mmunicatio ns with other nod e to be tes ted. PING Command The PING command is a common way to perf or m echo back tests on E ther net network s.
187 Internode T est Section 9-3 Method Input the following at th e host co mputer prom pt ($): $ ping IP_address (host_name) The des tination is specif ied by its IP addres s or ho st name. If the hos t name is used, the host name must be defi ned in fil e /etc/hos ts.
188 Internode T est Section 9-3 T est Procedure 1,2,3. .. 1. Wri te the test paramete rs into PC memo r y . The test parameters are de- scr ibed following this procedu re. 2. T ur n ON the Inter node T est S tar t Switc h allocated to the E ther net Unit i n the CPU Bus Uni t Area.
189 Internode T est Section 9-3 Star ting and Stopping the Internode T est Bit 01 of the firs t word in the wo rds allocated to the Eth er net Unit i n the CPU Bus Un it Area is use d as the Inter nod e T es t Star t Swi tch. T ur n ON bit 01 to star t th e inter node tes t and tur n bit 0 1 OFF to st op the inter no de test.
190 Internode T est Section 9-3 Note The inter node tes t does not count er rors when a routing tab l e error or send parameter er ror has occ urred. Error Flags The bits corres ponding to errors are tu rn ed ON if erro rs occur . The flag status is main tained unti l the inter node test is r un agai n.
191 SECTION 10 T r oubleshooting This section describes inf ormation and procedures that can be u s ed to troublesh o ot problems th at sometimes oc cur with Ethernet Unit and Eth ernet communications.
192 T roubleshooting wi th Indicators Section 1 0 -1 10-1 T roub lesho oting with Indicator s The indica tors on the Et herne t Unit can be used to troubleshoot so me error . The probable c ause and correction f or e rrors that c an be dete rm ined fro m the R UN, E RC, and ERH indicat ors are li sted in t he f ol lowing table.
193 T roubleshooting wit h Indicators Section 10-1 Lit --- Flashing The IP address is set incorrectly on the rotary switc hes on the back of the Unit. (CJ Series only ) Correct the IP address. Do n ot set any of the f ollowing IP addresses . • Host IDs that are all 0 or all 1.
194 Error Statu s Section 1 0 -2 10-2 E rr or Status The Ethe rnet Un it will outp ut error st atus to the following word in the CIO Area of the C PU Unit.
195 Error Log Error Codes Section 10-4 Err or Log T able Each error is recorde d as one rec o rd in an er ror log table . Up to 64 records can be saved. If more than 64 errors occ ur , the oldes t errors will be delete d from the e rror log and the most r ecent err or will be recorded.
196 Error Log Error Codes Section 10- 4 0103 Resend cou nt excee ded (send f ailed) Command s Bit 15: OFF Bits 08 t o 14: SNA Bits 00 t o 07: SA1 Respon ses Bit 15: ON Bits 08 t o 14: DNA Bits 00 t o 07: D A1 Chec k transce iver a t remote node . --- 0105 Node addr ess setting erro r (send f ailed) Set the IP a ddress correctly .
197 T roubleshooting Procedures Section 10-5 Note 1. The t ime infor mation in the CPU Unit is used in the CPU Bus Un its. 2. If the time infor mation c annot be read from the CPU Unit, the t ime stam p in the error log will be all zer os. This can occur due to CPU Unit star tu p error , uni t number errors, CPU error , an d model number er rors.
198 T roubleshooting Procedures Section 10-5 T r ue ➨ Make sure that Unit is firml y mounted and tighten the mountin g scre ws firmly or loc k the sl iders int o place . 6. Do the R UN an d ERH indicator s not ligh t if another CPU Unit is mo unted to the R ack ? T r ue ➨ Replace the Ether net Unit.
199 T roubleshooting Procedures Section 10-5 3. Is a CM ND(194) instr ucti on being addr essed to the loca l node, e.g. f or socket ser vice s? T r ue ➨ Go to 10-5-6 Networ k Connec tion Problems on page 203.
200 T roubleshooting Procedures Section 10-5 Opening and Closing Problems Ref er to General Pr oblems on page 199. Reception Pr oblems 1,2,3. .. 1. Is rece ption proc essing f inishin g? T r ue ➨ St ep 10. 2. Is the remote node n ot proce ssing to send data? T r ue ➨ Adju st the rem ote node to proces s send d ata.
201 T roubleshooting Procedures Section 10-5 10-5-4 TCP Socket Pr oblems Most o f the initial s teps in thes e procedur es are in que stion form . Continue in seque nce until a “ T r ue” answer tells you to jump to a specifi ed step or until you are told to perform a specific action that corr ects the pr oblem.
202 T roubleshooting Procedures Section 10-5 T r ue ➨ Adju st the rem ote node to proces s send d ata. 3. Read m emor y sta tus using t he FINS com mand REA D MEMOR Y ST A TUS. 4. Is the network me mory being us ed more tha n 80%? T r ue ➨ There m a y be to o much load on the Ether net Unit.
203 T roubleshooting Procedures Section 10-5 T r ue ➨ Replace the CPU U nit. 10. Initiali ze the EM File Memor y from the CX-Programmer or ot her Program- ming D e vi ce. 11. Can you display the MEMCARD di rector y using ls fr om the host c omput- er? T r ue ➨ En d.
204 T roubleshooting Procedures Section 10-5 T r ue ➨ Repl ace the f ollo wing item s in order to remo ve th e fa ulty part: P ower supply ca ble , P ower Supply Uni t, Ether net Unit. 5. Connec t a 24-VDC power su pply . 6. Is the pow e r suppl y indicator lit on the t ransceiver? T r ue ➨ St ep 9.
205 T roubleshooting Procedures Section 10-5 10-5-7 Mail Prob lems Most o f the initial s teps in thes e procedur es are in que stion form . Continue in seque nce until a “ T r ue” answer tells you to jump to a specifi ed step or until you are told to perform a specific action that corr ects the pr oblem.
206 T roubleshooting Procedures Section 10-5 error lo g informa tion, or s tatus da ta is not se t in the s end infor ma- tion). 11. Is the se nd stat us f o r recurr ing mai l “0”? T r ue ➨ If s ending rec urri ng mail is not set i n the Se tup , ma ke the proper settings.
207 T roubleshooting wit h Response Codes Section 10-6 T r ue ➨ Correct the mai l send informat ion setting s in the Setup (the us er data, er ror log inf o rm ation, o r status data is not se t in the send in- fo r m a t i o n ) .
208 T roubleshooting wi th Response Codes Section 10-6 02: Remo te node error 01 IP address o f remote node not set cor- rectly in IP addr ess table or IP router tab le. Set IP add ress of remote n ode into IP addres s tab le and, if in ter netw or k tr ansmission is requ ired, into the IP router tab le.
209 T roubleshooting wit h Response Codes Section 10-6 Network Relay Err ors F o r network r ela y errors using S END(090) or RE CV(098), c heck the path of the com mand us ing the routing ta bles and the nature of the error u sing the response code to el iminate th e cause of the error.
210 Results Storage Area Respon se Codes Section 1 0 -7 10-7 Resu lts Storage Are a Response Cod es The respo nse codes s tored in th e Results Stora ge Area can b e used to trou- bleshoot socket ser vice problems.
211 Results Storage Area Response C odes Section 10-7 0043 EDEST ADDRREQ Destination address required (desti- nati on add ress n ot spe cifie d) Clos e the l ocal socket and t r y reope nin g it.
.
213 SECTION 11 FINS Commands Addressed to Ethernet Units This section desc ribes the FINS com mands th at can be sent to an Ethernet Unit and the resp onses that ar e returned by the Ethernet Unit. 11-1 Command Codes an d Response Codes . . . . . . . .
214 Command Codes and Res ponse Codes Section 1 1-1 11-1 Command C odes and Resp onse Codes 11-1-1 Command Code List The co mmand co des listed in th e f ol lowing table can be sent to an Ether ne t Unit. 11-1-2 Response C ode List Response cod es are 2- b y te code s which indica te the re sults o f comman d ex ecution.
215 Sock et Application s Section 11-2 The MRES codes ar e shown in the following table along with the results th ey indicat e. Refer to 10-6 T roublesho oting with Res ponse Codes fo r d e ta il s o n respons e codes including the SRES.
216 Soc ket A pplications Sect ion 11-2 11-2-2 PC Memor y Areas The me mor y areas of the PC that c an be s pecified for resu lts sto rage when ex ecuting co mmands from the PC are listed in the table below . The Va r i a b l e type is set in the first byte of th e resu lts storage area.
217 Command /Response Ref erence Section 11-3 11-3 Com mand/Respo nse Reference This se ction desc ri bes the FINS comm ands that can be sent to Eth er net Units and the r esponses to each co mmand.
218 Command /Response R e f erence Section 11-3 11-3-2 CONTROLLER D A T A READ Reads th e f ol lowing data from the E ther net mod el, version, IP a ddress, sub- net mask , FINS UDP po r t number, mod e setting s, Ether net add ress.
219 Command /Response Ref erence Section 11-3 11-3-3 CONTROLLER ST A TUS READ Reads the controller status. Command Block Response Block P arameters Err or Flags (Res ponse ) Indicate s the operat ing statu s and erro rs that occur red when the Ether net Unit was sta r te d.
220 Command /Response R e f erence Section 11-3 Note If this bi t turns ON for the CS1W - ETN11 or CJ1W-ETN11, the E ther- net Unit h as malfun ctioned. Address Misma tch The addre ss conv er sion method w as set f or aut omatic gene ration, but the node number and the last byte of the local I P address d o not agree, or other host secti ons are 0.
221 Command /Response Ref erence Section 11-3 Always s pecify the unit addr ess of the Ether net Unit in the CMND (194) instr uct ion. Response Codes 11-3-5 BRO ADCAST TEST RESUL TS READ Reads the results ( number of times data re ceived) of the broad cast tes t.
222 Command /Response R e f erence Section 11-3 Command Block Response Block P arameters Beginning Record Number (Command) The firs t record to be re ad. The fir st recor d number can be spec ified in the range between 0000 and 003F (0 to 63 d ecimal) where 00 00 is t he oldest record.
223 Command /Response Ref erence Section 11-3 Response Codes 11-3-8 ERROR LOG CLEAR Clears the number of r ecords sto red in the E ther net Unit error log. Command Block Response Block Response Codes 11-3-9 UDP OPEN REQUEST Requests processing to open a sock et .
224 Command /Response R e f erence Section 11-3 the socket specified in the UDP so ck et number , and send packets are distr ib- uted fro m the UDP sock et to this por t. The por t number spec ified a s the FINS UDP por t number (default value 9600) c annot be used .
225 Command /Response Ref erence Section 11-3 Number of Reception Bytes (Comman d, Results Storag e Area) The ma ximum number o f bytes of d ata to be received is gi v en in the com- mand. Th e number of bytes o f data rec eived will be stored i n the res ults stor- age area .
226 Command /Response R e f erence Section 11-3 Command Block Response Block Results Storag e Format P arameters UDP Socket Number (Command) The UDP s ock e t number to sen d the data s pecified as 2 bytes between 1 and 8. Results St orage Ar ea (Command) The area in which the r esult of the com mand ex ecuti on is stored .
227 Command /Response Ref erence Section 11-3 Results Storage Ar ea Response Codes 11-3-12 UDP CLOSE REQUEST Requests processing to close a sock e t. Command Block Response Block Results Storag e Format P arameters UDP Socket Number (Command) The UDP s ock e t number to be c losed spec ified as 2 bytes between 1 and 8.
228 Command /Response R e f erence Section 11-3 Results Storage Ar ea Response Codes 11-3-13 P ASSIVE TCP O PEN REQUEST Requests processing to op en a TCP so ck et.
229 Command /Response Ref erence Section 11-3 Remote P or t Number (Command, Results Storag e Area) Specify the remote TCP po r t number wit h this command . If all zeroes are set, no remote TCP por t number is spe cified. If any other value is set, i t specifi es the TCP por t numb er of the rem ote node.
230 Command /Response R e f erence Section 11-3 Response Codes Results Storage Ar ea Response Codes Note These e rrors occ ur only in large mult ilay e red networ ks. Response c ode Description 0000 Normal 0105 L ocal IP address s etting error 0302 CPU Unit error; ex ecution n ot possibl e.
231 Command /Response Ref erence Section 11-3 11-3-14 A CTIVE TCP O PEN REQUEST Requests processing t o open a TCP socket. The sock e t will be c onnected to another n ode. Command Block Response Block Results Storag e Format P arameters TCP Socket Number (Command) The TCP s ock et number to be opened sp ecified as 2 bytes between 1 a nd 8.
232 Command /Response R e f erence Section 11-3 Results Storage Ar ea Response Codes Note These e rrors occ ur only in large mult ilay e red networ ks.
233 Command /Response Ref erence Section 11-3 page 2 16 for details about the var iable types and add resses tha t can be spec- ified. Number of Reception Bytes (Comman d, Results Storag e Area) The ma ximum number o f bytes of d ata to be received is gi v en in the com- mand.
234 Command /Response R e f erence Section 11-3 11-3-16 TCP SEND REQUEST Requests that data be received at a TC P sock e t. Command Block Response Block Results Storag e Format P arameters TCP Socket Number (Command) The TCP socket number to sen d the data speci fied as 1 byte between 1 an d 8.
235 Command /Response Ref erence Section 11-3 Note These e rrors occ ur only in large mult ilay e red networ ks. 11-3-17 TCP CLOSE REQUEST Requ ests pr ocessin g to clos e a TCP s ock et. Ot her pr ocessing being ca rried out is forcibly ended and a code is recor ded in the results storage a rea.
236 Command /Response R e f erence Section 11-3 Response Codes Results Storage Ar ea Response Codes 11-3-18 PING Equivalent proc essing to the UNIX c omputer ping co mmand (s ee below).
237 Command /Response Ref erence Section 11-3 11-3-19 IP ADDRESS T ABLE WRITE Wri tes the IP ad dress t able . Command Block Response Block P arameters Number of Records (Command) The number of records to wr ite is s pecified b etween 000 0 and 0020 (0 to 3 2 decimal ) in the c ommand.
238 Command /Response R e f erence Section 11-3 11-3-20 IP ADDRESS WRITE Wri te the loca l IP addr ess and the subnet mas k in the CPU Bu s Unit Sys tem Setup.
239 Command /Response Ref erence Section 11-3 11-3-21 IP ADDRESS T ABLE READ Reads the IP address table. Command Block Response Block P arameters Number of Records (Command, Response) The number of reco rds to read is spec ified bet ween 0000 a nd 0020 (0 to 32 decimal) i n the command.
240 Command /Response R e f erence Section 11-3 11-3-22 IP ROUTER T ABLE READ Reads the IP router ta b l e. Command Block Response Block P arameters Number of Records (Command, Response) The number of reco rds to read is specified betwe en 0000 and 0008 (0 to 8 decimal) in the command.
241 Command /Response Ref erence Section 11-3 11-3-23 PRO T OCOL ST A TUS READ Reads the Ether net Uni t protocol stat us. Command Block Response Block P arameters IP Status (Re sponse) T welve types of IP statu s information occupying 4 bytes each are retur ned i n the following seque nce.
242 Command /Response R e f erence Section 11-3 3. Always 0. 4. T otal number of out puts of each pa ck et type dur ing ICM P output. The 19 statisti cal values are retu rned i n the order s hown below . Con tents are de- fined for 13 types only ; all other types co ntain 0.
243 Command /Response Ref erence Section 11-3 10. T otal number of inputs of each packet type duri ng ICMP input. Th e 19 sta- tistica l v al ues are re tur ned in the or der shown be low . Cont ents are defined f o r 13 type s only; al l other ty pes con tain 0.
244 Command /Response R e f erence Section 11-3 11. The number of tim es no A C K was retur ned with in the resend tim er set time. (The resend timer se ts the max imum time limi t between the data being out- put and ACK being retur ned.) 12. The number of times no window adver tisem ent is r eceived within the time set on th e duration tim er .
245 Command /Response Ref erence Section 11-3 16. The number of window probe pack et s received. 17. The number of rese nt A C K packets received. 18. The number of ACK pack ets received with no data se t. 19. The number of ACK pack e ts rece ived. 20.
246 Command /Response R e f erence Section 11-3 2. Shor t Buff er Applicat ion by T ype: Thir t een items are retur ned (52 bytes). a) The number of shor t buffers used for stor ing communic ations da ta.
247 Command /Response Ref erence Section 11-3 11-3-25 SOCK ET ST A TUS READ Reads the Ether net Uni t network s ock et status. Command Block Response Block P arameters Socket Statu s (Respons e) Retu r ns eight types of infor mation in re cords of 32 bytes each.
248 Command /Response R e f erence Section 11-3 Precautions All the ab ov e values are s et to 0 if Eth ernet communicat ions func tions are stopp ed due to i mproper se ttings in the sys tem setup.
249 Command /Response Ref erence Section 11-3 11-3-27 IP ADDRESS READ Reads the loca l IP add ress and subne t mask i n the CPU Bus Uni t Syste m Setup and the F INS node number . The values read with this com mand, how- ev er , are not ne cessar ily the setti ngs actually used f or operation.
.
251 Appendix A Netw ork In stallation Basic Installation Precautions • T ake the greatest care when install ing the Ether net Syst em, being sur e to f ollow ISO 8802 -3 specific ations. Y ou must obtai n a copy of these specifi cations and be sure you under stand the m bef o re attempti ng to ins tall an Ethe r net Sys tem.
252 Network In stallation Appendix A • Gro und the extern al shiel d of th e coaxial c able to 100 W or less using A WG 14 wire (cross-sec tional a rea of 2 mm 2 ) o r better and a ground cable lengt h of 20 m or less. G round each s egment of t he networ k at one loca tion only .
253 Netw ork Installation Appendix A T ransceiver Installa tion Examples The following illu strations show e xa mples of install ing transcei v ers in the c eiling an d under th e floor . Inspection opening Secured wooden board Mount near an inspection opening large enough to enable maintenance .
254 Network In stallation Appendix A Ceiling Insta llation Exam ples Installation Examples f or Noise-prone En vironments Ether net ne tworks do not withs tand nois e very well and requi re speci al insta llation meas ures if i nstalled wh ere subject to noise.
255 Netw ork Installation Appendix A 4. Refer to the CS/CJ- serie s Programmable Controll ers Operatio n Manual (W33 9) fo r i n fo r m a t i o n o n wiri ng inside d istr ibution box es. Note 1. Cover all metal por tio ns of c ables with ins ulating tap e to b e sure they do not come in to conta ct with the metal ducts or box e s.
256 Network In stallation Appendix A Multipoint T ransceiver s Multipoi nt transce ivers can be u sed to el iminate the need for coa xial ca ble (which is easily affected by noise) and rep lace it wi th transceiver cable a s shown in the following diagram.
257 Netw ork Installation Appendix A Outdoor Installations The following e xamp le shows how optica l fiber cable can be used to conne ct a network between two buildings, elimina ting po ssible adverse affects o f lightni ng. Note Consult wi th the manufacturer for details on optica l Ether net d e vi ces.
258 Network In stallation Appendix A Hub Connection Methods If more hu b por ts are requir ed, they can be added by connecti ng more th an one hub. There are two po ssible connecti on methods f or hubs: Casc ade and s tack ed .
259 Netw ork Installation Appendix A Cable Location Separate th e transceiver cable or twis ted-pai r cable connectin g the Ethe rn et Unit as f ar from the wir ing t o the Contact Ou tput Units a s possible. The coaxi al cable must also be plac ed as far aw ay from the Contac t Output Units and their wir ing as po ssible.
.
261 Appendix B Etherne t Netw ork P arameter s P a rame ter Value Desc rip tion TCP se nd buff er 4,096 b ytes Maxim um cap acity of the TCP s end buff er TCP rec eiv e buff er 4,096 byt es Maximum ca.
.
263 Appendix C Buffer Configuration Network memor y (196K bytes) Communications controller IP pack et output queue (50 max. x 1,500 bytes) UDP sock et send request buff ers (8 x 9,000 max.) TCP sock et send request buff ers (8 x 4,096 max.) FTP service send buff er (4,096 bytes) FINS send buff er (9,000 bytes max.
264 Buf fer Configuration Appendix C Netw o rk Memor y Most of the buff er s used for communica tions se r vicin g by the Ether net Un it are admin istered in a buffer config- uration call ed networ k memo r y . Networ k memor y consis ts of 196K bytes of memor y divided in to shor t and long buff ers.
265 Appendix D TCP Status T ransitions The TCP so ck et s tatus can be c onfir med using the socket status data r eturn ed for the FINS comman d SOCKET ST A T US READ (2764 ).
.
267 Appendi x E A uxiliar y Area Data The following table and des cripti ons cov e r the words a nd bits in th e Auxiliar y Area o f PC me mor y that ar e related to the Ether n et Unit.
268 A uxiliary Area Data Appendix E Read/Wri te Bits A410 A41000 to A41015 CPU Bus Unit Num- ber D uplic atio n Flags The Du plication Error Fla g (A4011 3) and the correspo nding flag i n A410 will be tur ned ON w hen a CPU B us Unit ’ s unit nu mber has been duplic ated.
269 Appendi x F CPU Bus Unit Allo cations in the CPU Un it The CPU Bus Units, inc luding Et herne t Units, are alloc ated words in the CPU Unit’ s CIO Area and DM Area accord ing to the un it numbers. This appe ndix is pr ovided f o r easy reference.
270 CPU Bus Unit A llocations in the CPU Unit Appendix F Area Config uration Unit Control Switches (CPU Unit to Et hernet Unit) Status of UDP/TCP Sockets 1 to 8 (Ethernet Unit to CPU Unit) Offset Bit Data direction Related communications services Unit Control Switch UDP Sock et No.
271 CPU Bus Unit All ocations in th e CPU Unit Appendix F Servic e Status (Ethernet Unit to CPU Unit) Err or Status (Ethernet Unit to CPU Unit) Note A transceiver is b u ilt into t he CS1W-ETN11 an d CJ1W -E TN11. If th is bit tur ns ON, the Ethe rn et Unit has malfunct ioned.
272 CPU Bus Unit A llocations in the CPU Unit Appendix F DM Area Allocations Each Uni t is alloc ated 100 word s in the DM Ar ea, as shown in the following table. Area Config uration Internode T est Remote Network Addre s s and Node Number (CPU Unit to Ethernet Unit) Internode T est Number of Send Bytes (CPU Unit to Ethernet Unit) Unit No.
273 CPU Bus Unit All ocations in th e CPU Unit Appendix F Internode T est Response Monitoring Time (CPU Unit to Ethernet Unit) Internode T est Status (Ethernet Unit to CPU Unit) Number of Internode T .
274 CPU Bus Unit A llocations in the CPU Unit Appendix F Soc ket Services P arameter Area 1 to 8 (Ethernet Uni t to CPU Unit) IP Ad dress Displa y Ar ea (CS Ser ies) The se t values of the Loc al IP A.
275 CPU Bus Unit All ocations in th e CPU Unit Appendix F Note 1. If a value other than 0 0.00.00. 00 is set as t he local IP ad dress in th e CPU Bus Un it Syste m Setup, ev en if an IP addr ess is set in the all ocated words in the DM Area , it will be ov er writte n with the settin g in the CP U Bus Unit System Setup.
.
277 Appendix G ASCII Characters Bits 1 to 4 Bits 5 t o 7 Binary 0000 000 1 0010 0011 010 0 0101 0110 0111 H e x 0123 4567 0000 0 NUL DLE Spac e 0 @ P p 0001 1 SOH DC1 ! 1 A Q a q 0010 2 STX D C2 ” 2.
.
279 Appendix H Dimens ions CS1W -ETN01 Unit: mm 16.5 with cov er attached 130 35 15 101 6.6.
280 Dimension s Ap pendix H CS1W -ETN11 Unit: mm 130 35 101.
281 Dimensions Appendix H CJ1W -ETN11 65 31 UNIT No. RUN ETN11 ERC SD RD ERH TCP FTP TS 90 2.7 2.7 ETHERNET NODE No. x16 1 x16 0 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3.
.
283 Appendix I Maintenance The Ethe rnet Uni t makes up par t of a network. Repair a defective Ether net Unit a s soon as pos sible as it can hav e a neg ative eff ect on the entir e network. We recommen d that cu stomers keep one o r more spare E ther net Units to a llow immediate r ecovery of t he network.
.
285 Append ix J Inspections Carr y out r egular ins pections to ensure the E ther net Unit is funct ioning pe rf ectl y . Items Most of the par ts that make up an Ethe rnet Unit are semicond uctor com ponents.
.
287 Index Numbers 10BA SE-T conversion adapters , 5 twisted-pa ir cables , 5 24-VDC power su pply , 4 connect ing , 42 recomm ended pr oducts , 251 A Addre ss Resolutio n Protocol See also ARP co mmun.
288 Index E EC Direct ives , xxi echoback test , 186 EM File Memory , 163 EMC Directiv es , xxi EMI countermeasur es , 259 ERC indicator , 32 trou bleshoo ting , 192 ERH in dicator , 32 trou bleshoo t.
Index 289 bye , 17 1 cd , 170 close , 17 1 dele te , 171 dir , 16 9 get , 170 ls , 169 mdelete , 17 1 mget , 170 mput , 17 1 open , 169 put , 171 pwd , 170 quitting , 171 type , 170 user , 169 connect.
290 Index L-M lightni ng optica l Ethern et System s , 257 Low Voltage Directives , xxi ls , 169 mail , 17 , 21 applicat ion exa mple , 182 conten ts , 179 error mail , 180 functio ns , 17 8 perio dic.
Index 291 Ethernet , 10 Factory Interface Network Service , 11 File Tran sfer Protoco l , 11 Internet Control Message Protocol , 10 Internet Protocol , 10 read ing stat us , 241 Simple Ma il Transfer .
292 Index reading s ocket st atus , 247 subnet ma sks , 13 address c onversion , 24 reading from Unit , 21 8 setting , 62 subn et numbe rs , 13 sub-respons e code , 214 See also SRES switches settings.
293 Revision History A manual r e visi on code a ppears a s a suffix t o the catalog number on th e front cover of the ma nual. The following table outlines the changes mad e to the manual dur ing each re vi sion. Page numbers ref e r to the previous version.
294 Revision Histor y 04 F ebruar y 2003 Pag e x i : Changes ma de in se ver al places . P age 71: Changes made to the des cr ipti on of Unit oper ation f or bit 7 in t he tab le. P age 89: Minor c hanges ma de to ladder d iagram. P age 93: Minor c hanges made t o table n ext to ladder diag ram.
Terms an d Conditions of Sale 1. Offer; Acce ptance . T hese terms and conditi ons (t hese "T erm s ") are deemed par t o f all quotes, ag reements, purchase or ders, ackno wl edgment s, pri.
Note: Specifications are subject to change. © 2008 Omron Electronics LLC Printed in U.S.A. OMR ON EL EC TRONI CS LLC • THE AMERICAS HEADQUARTERS Schaumburg, IL USA • 847.843.7900 • 800.556.6766 • www.omron247.co m O MRON CANADA, INC. • HEAD OFFICE Toronto, ON, Canada • 416.
デバイスOmron CJ1W-ETN11の購入後に(又は購入する前であっても)重要なポイントは、説明書をよく読むことです。その単純な理由はいくつかあります:
Omron CJ1W-ETN11をまだ購入していないなら、この製品の基本情報を理解する良い機会です。まずは上にある説明書の最初のページをご覧ください。そこにはOmron CJ1W-ETN11の技術情報の概要が記載されているはずです。デバイスがあなたのニーズを満たすかどうかは、ここで確認しましょう。Omron CJ1W-ETN11の取扱説明書の次のページをよく読むことにより、製品の全機能やその取り扱いに関する情報を知ることができます。Omron CJ1W-ETN11で得られた情報は、きっとあなたの購入の決断を手助けしてくれることでしょう。
Omron CJ1W-ETN11を既にお持ちだが、まだ読んでいない場合は、上記の理由によりそれを行うべきです。そうすることにより機能を適切に使用しているか、又はOmron CJ1W-ETN11の不適切な取り扱いによりその寿命を短くする危険を犯していないかどうかを知ることができます。
ですが、ユーザガイドが果たす重要な役割の一つは、Omron CJ1W-ETN11に関する問題の解決を支援することです。そこにはほとんどの場合、トラブルシューティング、すなわちOmron CJ1W-ETN11デバイスで最もよく起こりうる故障・不良とそれらの対処法についてのアドバイスを見つけることができるはずです。たとえ問題を解決できなかった場合でも、説明書にはカスタマー・サービスセンター又は最寄りのサービスセンターへの問い合わせ先等、次の対処法についての指示があるはずです。