Ir a la página of
manuales de instrucciones parecidos
-
Network Card
Omron CPM1A
176 páginas 1.14 mb -
Network Card
Omron CS CJ1W-ETN21
242 páginas 2.85 mb -
Network Card
Omron CS1W-ETN11
317 páginas 3.08 mb -
Network Card
Omron C500-LK009-V1
86 páginas 0.45 mb -
Network Card
Omron NT31 NT31C
296 páginas 2.48 mb -
Network Card
Omron SYSMAC CJ1W-EIP21
464 páginas 19.68 mb -
Network Card
Omron C200H-LK401
86 páginas 0.45 mb -
Network Card
Omron Programmable Terminals NT31 NT31C
296 páginas 2.6 mb
Buen manual de instrucciones
Las leyes obligan al vendedor a entregarle al comprador, junto con el producto, el manual de instrucciones Omron CS1W-ETN11. La falta del manual o facilitar información incorrecta al consumidor constituyen una base de reclamación por no estar de acuerdo el producto con el contrato. Según la ley, está permitido adjuntar un manual de otra forma que no sea en papel, lo cual últimamente es bastante común y los fabricantes nos facilitan un manual gráfico, su versión electrónica Omron CS1W-ETN11 o vídeos de instrucciones para usuarios. La condición es que tenga una forma legible y entendible.
¿Qué es un manual de instrucciones?
El nombre proviene de la palabra latina “instructio”, es decir, ordenar. Por lo tanto, en un manual Omron CS1W-ETN11 se puede encontrar la descripción de las etapas de actuación. El propósito de un manual es enseñar, facilitar el encendido o el uso de un dispositivo o la realización de acciones concretas. Un manual de instrucciones también es una fuente de información acerca de un objeto o un servicio, es una pista.
Desafortunadamente pocos usuarios destinan su tiempo a leer manuales Omron CS1W-ETN11, sin embargo, un buen manual nos permite, no solo conocer una cantidad de funcionalidades adicionales del dispositivo comprado, sino también evitar la mayoría de fallos.
Entonces, ¿qué debe contener el manual de instrucciones perfecto?
Sobre todo, un manual de instrucciones Omron CS1W-ETN11 debe contener:
- información acerca de las especificaciones técnicas del dispositivo Omron CS1W-ETN11
- nombre de fabricante y año de fabricación del dispositivo Omron CS1W-ETN11
- condiciones de uso, configuración y mantenimiento del dispositivo Omron CS1W-ETN11
- marcas de seguridad y certificados que confirmen su concordancia con determinadas normativas
¿Por qué no leemos los manuales de instrucciones?
Normalmente es por la falta de tiempo y seguridad acerca de las funcionalidades determinadas de los dispositivos comprados. Desafortunadamente la conexión y el encendido de Omron CS1W-ETN11 no es suficiente. El manual de instrucciones siempre contiene una serie de indicaciones acerca de determinadas funcionalidades, normas de seguridad, consejos de mantenimiento (incluso qué productos usar), fallos eventuales de Omron CS1W-ETN11 y maneras de solucionar los problemas que puedan ocurrir durante su uso. Al final, en un manual se pueden encontrar los detalles de servicio técnico Omron en caso de que las soluciones propuestas no hayan funcionado. Actualmente gozan de éxito manuales de instrucciones en forma de animaciones interesantes o vídeo manuales que llegan al usuario mucho mejor que en forma de un folleto. Este tipo de manual ayuda a que el usuario vea el vídeo entero sin saltarse las especificaciones y las descripciones técnicas complicadas de Omron CS1W-ETN11, como se suele hacer teniendo una versión en papel.
¿Por qué vale la pena leer los manuales de instrucciones?
Sobre todo es en ellos donde encontraremos las respuestas acerca de la construcción, las posibilidades del dispositivo Omron CS1W-ETN11, el uso de determinados accesorios y una serie de informaciones que permiten aprovechar completamente sus funciones y comodidades.
Tras una compra exitosa de un equipo o un dispositivo, vale la pena dedicar un momento para familiarizarse con cada parte del manual Omron CS1W-ETN11. Actualmente se preparan y traducen con dedicación, para que no solo sean comprensibles para los usuarios, sino que también cumplan su función básica de información y ayuda.
Índice de manuales de instrucciones
-
Página 1
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[...]
-
Página 2
CS1W-ETN01 (10Base-5) CS1W-ETN11 (10Base-T) CJ1W-ETN11 (10Base-T) Ethernet Units Operation Manual Revised Ja nuary 2008[...]
-
Página 3
iv[...]
-
Página 4
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. A lwa ys heed the informat ion provided with them . F ailure to heed precautions can result [...]
-
Página 5
vi[...]
-
Página 6
vii TABLE OF CONTENTS PRECAUTION S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii 1 Intended Aud i ence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii 2 General Precaution s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x[...]
-
Página 7
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 9 4-3 CIO [...]
-
Página 8
ix TABLE OF CONTENTS SECTION 10 Troubleshootin g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 10-1 T roubleshooting with Ind icators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 92 10-2 Error Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]
-
Página 9
[...]
-
Página 10
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. An Ether ne t Unit is cl assified an d treated as a CPU Bu[...]
-
Página 11
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. Secti[...]
-
Página 12
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. Warranty and Li mitations of Liabil ity WARRANTY OMRON's exclusive warranty is that the product s are free from defects in m aterial s and wor kmanshi[...]
-
Página 13
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. At the cu stomer's request , OMRON will provide a pplicable thi rd par t y cer tification doc[...]
-
Página 14
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. Howe ver , so me specific ations o f the pr[...]
-
Página 15
xvi[...]
-
Página 16
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. Y ou must read this section and understa nd the information contain ed befor e a t[...]
-
Página 17
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. • P erson nel in ch arge of de signing F A sys tems. • P erson nel in ch arge of m ana[...]
-
Página 18
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. Othe rwise, the input s ignals may not be readable. 4 Operating En vironment Precautions !Caution Do not operate the c ontrol sys tem in th e f oll owing places: • Location s subjec[...]
-
Página 19
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. • Con necting cables o r wiring the syst em. !Caution F ail ure to abi de by the f ol lowing precautions could le ad to f a ulty operation of the PC or [...]
-
Página 20
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. Doing so may break t he cables. • Before touching a Unit, b e sure t[...]
-
Página 21
[...]
-
Página 22
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. 1-1 Features . . . . . . . . . . . . . . . . .[...]
-
Página 23
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. Wide-ranging Contr ol Capability Using Ethernet The Ether net Uni t enables a Programmable Control ler (PC) to[...]
-
Página 24
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. Node i nter v al (from transceiver to transceiver): In tegral multiples o f 2.5 m 4[...]
-
Página 25
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. 1-3 De vices Required in a Network 1-3-1 10Base-5 Ethernet Unit The basic co nfiguration of a 10Base-5 Ether net Sys tem consist s of a single coaxia l cable to[...]
-
Página 26
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 . 1-3-2 10Base-T Ethernet Unit The basi c configuration of a 10Base- T Ether [...]
-
Página 27
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. Use the CX-Programmer to make the sett ings. The following items are inclu ded in the Sys[...]
-
Página 28
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. (inclu ding Expansi [...]
-
Página 29
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. (includi ng Expansion Racks) Tr a n s f e r specif i- c[...]
-
Página 30
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[...]
-
Página 31
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.0 Ether net fram e f or ma t is used f or communica tions. IP Inter net Pro[...]
-
Página 32
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. SMTP Si mple Ma il T rans f er Protocol: A co[...]
-
Página 33
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. IP addres ses must be set and contr olled so th at they are not dup licated. 1-7-1 [...]
-
Página 34
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. The loc al sys tem adminis trator is lef t th[...]
-
Página 35
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 . ) 1,2,3. .. 1. Use transceiver cable [...]
-
Página 36
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 2-1-1 Ethernet Unit Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]
-
Página 37
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 . Function FINS c ommunica tions Socke t services FTP serve r Mail Client to ser ver PC to PC --- --- PC to host comput er --- Host com- puter to PC --- Data type FI[...]
-
Página 38
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. • A FINS comm an[...]
-
Página 39
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. 2-2 FINS Comm u nications FINS c ommands can be s ent to or rece ived from othe r PCs or compute rs on the same E ther net networ k by e xecuting S E[...]
-
Página 40
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.) T[...]
-
Página 41
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. By Executing CMND(490) The ot her w[...]
-
Página 42
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 . This allows files to be e x changed be tween the host co mputer and the PC, with the host compu ter functio[...]
-
Página 43
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.[...]
-
Página 44
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 3-1-1 Automatic Address Generation. . . . . . . . . . . . . . . . . . . . . [...]
-
Página 45
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. Address Con vers ion (for FINS Communic[...]
-
Página 46
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. Note With CS- serie s Ether net Units, when usin g either the address conv ers ion method (t he def a ult) or the c ombined method, se t the local IP address s w itches 7 and 8 on the [...]
-
Página 47
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 s table method provide s a simple corres pondenc e table , so it has the ad v a ntage of al lowing FINS node numbers a nd IP addres s to be freely al[...]
-
Página 48
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 . 7. T ur n ON the externa l 24-VDC power supply (f or 10B ase-5 system s) and tur n ON po[...]
-
Página 49
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. (This met[...]
-
Página 50
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. Node Number Switches Used to set the Ethernet Unit's FINS node number[...]
-
Página 51
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 . Note The Eth ernet addres s can al so be checked using [...]
-
Página 52
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 . x16 0 0 1 2 3 4 5 6 7 8 [...]
-
Página 53
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 . Note The Eth ernet addres s can al so be checked using the FINS c ommand, CO N- TRO[...]
-
Página 54
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. Use a small s crewdriver to make th[...]
-
Página 55
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. Use the no de number switches to set the node number between 01 and 7E he x adecimal (1 to 126 d[...]
-
Página 56
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. All bits in the ne twork number field set to 0 or 1. All bits in the ho st[...]
-
Página 57
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. The word add ress[...]
-
Página 58
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. For details, refer to 4-2[...]
-
Página 59
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. Up t o f o ur Ether net U nits c an be mo unted t [...]
-
Página 60
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). Y ou mus t obtain a cop y of thes e specifica tions and be sur e you understand them be f [...]
-
Página 61
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. 2. Connec t the transcei v e rs to the coaxia l cable. • Mark th e coaxial c able at inter v[...]
-
Página 62
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 . 1,2,3. .. 1. Lay the twisted-pai r cable. L[...]
-
Página 63
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. 3. Connec t the cable to the connect or on the Ether net Unit. Be sur e to press in [...]
-
Página 64
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. Note 1. Do not c onnect a pow e r suppl y with a voltage othe r than 24 VDC . 2. T o redu ce the effects o f noise, wire t he power supply ca b l e separately f rom power lines an d high-voltage[...]
-
Página 65
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. In par- ticular, noise resi stance capa city ca n be impr ov ed [...]
-
Página 66
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 . If t[...]
-
Página 67
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 . With th e [...]
-
Página 68
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). Note 1. The unit number is set (from 0 to F: 1 to 15) by the rotar y switch o n the front of the Ethe r net U[...]
-
Página 69
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 . (CX-N et is automa tically in[...]
-
Página 70
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. In the table f or PC #3, for e xamp le, if network #A is taken as the end net work, then netwo rk #B b ecomes the relay network and node #c becomes the relay n[...]
-
Página 71
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. Unit #5 Node #6 Network #10 Unit #4 Node #5 Network #30 Unit #0 Node #1 Unit #1 Node #2 Unit #5 Node #5 Unit #6 Node #10 PC #1 Routing T able (Local network table) (Rela y network table) Local netw[...]
-
Página 72
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 . For details o n how to make the setting s, ref er to 4-2 CPU Bus Unit[...]
-
Página 73
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 . 3-10 Creating an I[...]
-
Página 74
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. After th e set[...]
-
Página 75
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 . F or details, refer to 9-3 Inter nod e Te s t . 2. Inter nod e testing of the F INS communi cations ser vice can als o be car ried out by means of the FI NS comma nds INTERNO DE E[...]
-
Página 76
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.e., w hether co mmunicatio ns are poss ible), send th e follow- ing PING command from the hos t compute[...]
-
Página 77
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) Data read from D100 Data read from D249[...]
-
Página 78
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 4-2 CPU Bus Unit System Setup . . . . . . . . . . . . . . . . . [...]
-
Página 79
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. • System Setup f or CP U Bus Units Stores initial setup for the Ethe rnet n ode. • All ocate d Wo rds in th e CIO Area Stores software switches and s tatus in f o rmati on for functions[...]
-
Página 80
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. If any of th e f o llowing items app ly , the[...]
-
Página 81
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 . 4-2-1 Setti n gs Broadc ast Settings Set the me thod for specifyin g the broa dcast addr ess. A[...]
-
Página 82
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. With the CS S erie s, set local IP addr ess DIP switches 7 and 8 on the back of the Ether net Uni t to the same v a lue as the node numbe r setting on the front of the Unit, an d set a[...]
-
Página 83
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. Note 1. With C S-ser ies Ethe rn et Units, set th e loca l IP addres s using t[...]
-
Página 84
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. FTP P asswor d Enter the Un it’ s FTP ser ver password using u[...]
-
Página 85
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 . 4-2-2 Mail Set tings Mail Set tings User Data in Use r Mail Specify whether or not user d ata is to be added to mail c [...]
-
Página 86
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 .) If none of these types of data i s selected , mail w ill not be sent ev[...]
-
Página 87
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. The setting rang e is 1 to 1,440, in unit s [...]
-
Página 88
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. The begi nning word n is calcu lated by the following equa tion: Begin ning word n = C IO 1500 + (25 x unit number) The f o llowing it[...]
-
Página 89
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. For details, r[...]
-
Página 90
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 . Opening Flag (Bit 0) T ur ns ON when a n open req uest is rece ived either by contro l s w itch mani pula- tion or the CM ND(490) in[...]
-
Página 91
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. When CMND( 490) is us ed, the Resu lts Storage Error Fl ag (bit 14) will tur n ON a t the sam[...]
-
Página 92
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. Err or Status (Ether net Unit to CPU Unit) The sta tus of erro rs that occur at th[...]
-
Página 93
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. Soc ket Se rvice Req uest Switches 1 to 8 (CPU Unit to Ether ne t Unit ) When a s ock et s er vice r equest is e xecuted by co ntrol switch ma nipulatio n, it is the following bits [...]
-
Página 94
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. The begi nning word m is calcula ted by the following equatio n: Beginni ng word m = D30000 + (10 0 x unit numb er) Note F o r CS-seri e[...]
-
Página 95
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. 000[...]
-
Página 96
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. Number of Internode T est Timeou[...]
-
Página 97
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. Soc ket Services P arameter Area 1 to 8 (Ethernet Uni t to CPU Unit) When socket ser vic es are requeste d by control switch manipula ti[...]
-
Página 98
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.00.00.00 , this area ( words m+98 and m+99) will ac t as an IP [...]
-
Página 99
[...]
-
Página 100
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. FINS commands issued from a PC are sent via the SEN D(0 90 ), RECV(098), and CMND(4 9[...]
-
Página 101
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. The Ethern et Unit uses a d edicated UDP/IP p or t[...]
-
Página 102
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. • Units and Boards th at suppor t FINS command s retur n respon ses auto- matical ly , so [...]
-
Página 103
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. CJ Ser ies: CPU Bus Unit Syste m Setup or al located words in the[...]
-
Página 104
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. RECV(09 8): Reads I/O da ta from an other nod e to the [...]
-
Página 105
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. SEND(09 0) The SEND (090) inst ruct ion sends the data in n number of words, s tar ting f rom the beginn ing wor[...]
-
Página 106
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. Note The messag e ser vices function does not guarantee t hat a message w[...]
-
Página 107
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. the data in m number of word s, star ting from the beginning word S at the remote node (node num ber M) i s received at the words st ar ting f rom th[...]
-
Página 108
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). F o r details on FINS comman [...]
-
Página 109
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. 22 04 FILE ME[...]
-
Página 110
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. CS/CJ- ser ies CP U Units have eight co mmunica tions por ts. On[...]
-
Página 111
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). The CS/ CJ-s eries CPU Unit’ s comm unicatio ns flag[...]
-
Página 112
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. • Wh[...]
-
Página 113
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. Input CIO 120000 remains ON from the star t of SEND(090) ex ecution until completion. Control D[...]
-
Página 114
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. 5-3-3 T ransmission Dela ys The me thods of compu ting the maximum time requir ed fro[...]
-
Página 115
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. Max. dela y = Local n ode ser vic e cycle + loc al node ser vice p rocessin g tim e + transmis sion proces sing time + re ception proc e[...]
-
Página 116
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. Max. dela y = Local n ode ser vic e cycle + loc al node ser vice p rocessin g tim e + transmis sion proce ssing time (comma nd) + recept [...]
-
Página 117
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. Calculati ons are shown in th e f o llowing table. 5-4 Sendi[...]
-
Página 118
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.36 .32.100 (Ethe rnet U nit of remote[...]
-
Página 119
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. FINS Header Information ICF (Infor mation Co ntrol Field) RSV (Reser [...]
-
Página 120
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. DA 2 (Desti nation Unit A d[...]
-
Página 121
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 ws_addr,cs_addr; 23 char fins_cmnd[MAX_MSG],fins_resp[MAX_M SG]; 24 int sendlen,recvlen,addrlen; 25 char sid=0; 26 extern recv_fail(); 27 28 /* GENERA[...]
-
Página 122
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(sockfd,fins_resp,M AX_MSG,0,&cs_addr,&addrlen)) <0){ 85 if(errno == EINTR) 86 goto CMND_SEND; /* RE-SEND FINS COMMAND */ 87 err_exit(”receiv[...]
-
Página 123
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.g., socket ser [...]
-
Página 124
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]
-
Página 125
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. The socket ser vices can be used by CS/CJ-ser ies P Cs throu gh the us er program by mani pulating dedicated b its (calle d Sock et Se r vice Reques[...]
-
Página 126
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. Wit h personal comput[...]
-
Página 127
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). Do no t use po r t numbers that are alread y rese r v e d for othe[...]
-
Página 128
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. ” P ass ive OPEN and Active OPEN An open comm and is ex ecute[...]
-
Página 129
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. UDP , howev er , r estores th e ori ginal dat a bef o re passin g it to the [...]
-
Página 130
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. The recei v e request is sen t twice in the e xam ple shown abov[...]
-
Página 131
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. T rans missio[...]
-
Página 132
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. If this occu rs, increa se the monit[...]
-
Página 133
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. T o avoid problems of this nature, steps wil l hav e to be taken in the[...]
-
Página 134
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 . Note 1. Socket Ser vice R equest Swi tches in the CPU Bus Un it Area in the CIO Area are use d to send a ser vic e request from th e CPU Unit to the Ether ne[...]
-
Página 135
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. The So ck et Ser vice Parameter Ar eas are alloca ted as shown in the f o llow[...]
-
Página 136
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 . R W : Wr itten by user at ex ecu tion and th en read for re[...]
-
Página 137
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. • Do not specify FTP ser v er TCP por[...]
-
Página 138
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. The remote UDP/T CP por t numb er will be st ored with the response da ta and will be wr itten[...]
-
Página 139
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 . 0302 CPU Unit error; cannot[...]
-
Página 140
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. 2210 The specif ied sock et is not open. 2211 Unit is b usy; cann ot ex ecute . 2607 Speci[...]
-
Página 141
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). 004E (See note .) Remote IP address parameter error (ENETUNREA CH). 0051 (See[...]
-
Página 142
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. TCP Sock et Send Request 0053 Communic ations error wi th remote nod e[...]
-
Página 143
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. Thes e bits a re called Socket Ser vic[...]
-
Página 144
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 vice Request Switches 1 Sock et Ser vice Request Switches 8 Sock et Ser vice Request Switches 2 Sock et Ser vice Request Switches 4 Sock et Ser vice [...]
-
Página 145
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 . Note There is a lso[...]
-
Página 146
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 . The Socket Stat us Words are a llocated in the CPU Bus Un[...]
-
Página 147
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. Re f e r to TC P Sock e t Connectio n Stat[...]
-
Página 148
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. TCP socket status i s provided in words m+9 to m +16 i[...]
-
Página 149
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. 6-2-7 Timing Charts The timin g of flags f or socket serv ices (Open ing, Receiv ing, Sending, or Clos- ing Fla g) w[...]
-
Página 150
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. For c e-c los [...]
-
Página 151
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. System Configuration The programm ing example uses the [...]
-
Página 152
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. The bits in CIO 0000 are used to signal ex e cution, t h[...]
-
Página 153
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 . 1 TCP Close When the TCP Close Bit (CIO 000001) tur ns ON, the TCP Close Error F[...]
-
Página 154
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. If the Send Request Switch (CIO 151903) turns OFF while the TCP Sending Fla[...]
-
Página 155
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. 6-2-9 UDP/IP Comm unications Pr ogramming Example The f o llowing programmi[...]
-
Página 156
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. • CIO 00 0002 is t urned ON to req uest sendin g data fro m the Et[...]
-
Página 157
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 , the contents of the response code (D30027) in the Sock et Service Parameter Area is chec ked, and if it is not 0000 Hex (normal end), the UDP Close Er[...]
-
Página 158
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. If the Send Request Switch (CIO 151903) turns OFF while the UDP Sending Flag[...]
-
Página 159
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. MO V(21) 000003 000203 MO V(21) MO V(21) MO V(21) SET 000003 RSET 000203 SE[...]
-
Página 160
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. CS/CJ Et her net Units suppor t the same fun ctionalit y as the CV -se rie s Ether net Unit, s o heritag e programs can b e eas[...]
-
Página 161
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 . 6-3-1 UDP/TCP Sock et Status The statu s of the UDP an d[...]
-
Página 162
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. Re f e r to TC P Sock e t Connectio n Status on page 75 and to A p[...]
-
Página 163
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). 3. The Ether net Unit star t s the p rocess req [...]
-
Página 164
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 . Program flow is similar for other sock et se r vices. Replace t[...]
-
Página 165
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 . 6-3-4 Soc ket Service Timing Chart The timing o f the socket ser vice ope n, send, receive, and clos e request c om- man[...]
-
Página 166
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. The timin g 1 0 1 0 1 0 Running Running Error response code Nor mal response code Error end [...]
-
Página 167
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. 6-3-5 TCP/IP Comm unications Pr ogramming Example The f o llowing programmi ng e xa mple illustrat es transferring [...]
-
Página 168
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. The following areas c an be us ed to access details ab out erro rs: CMND(490) response codes Response codes i n resul ts storage area Networ[...]
-
Página 169
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 = 10 bytes + 100 b ytes send data Number of bytes to send: 110 (006E he x ) bytes Number bytes to receiv e: 4 bytes 000CH 0004H 0001H 0110H 0000H 003[...]
-
Página 170
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 results storage area TCP SEND REQUEST command data Send data: 100 bytes (0064 hex ) Command code TCP sock et number Results storage area: set to D03010 (0BC[...]
-
Página 171
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. 7[...]
-
Página 172
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. The Results Storage Error F[...]
-
Página 173
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). D04000: First command word D04010: First response word D00030: First control data word The TCP Receiving F[...]
-
Página 174
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. 6-3-6 UDP/IP Comm unications Pr ogramming Example The f o llowing programmi ng e xa mple illustrat e[...]
-
Página 175
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. DM Area 000AH 0004H 0001H 0110H 0000H 0032H 0123456789 D00000 Number bytes to receiv e: 4 bytes Remote Ethernet Unit designation Network address: 01 hex Node number: 01 he[...]
-
Página 176
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 storage area Re- sponse code 2704H 0001H 8204H 1A00H 0123456789 D1030 UDP CLOSE REQUEST command data Command code UDP sock et number closed: set to 1[...]
-
Página 177
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. 2[...]
-
Página 178
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. The Results Storage Error F[...]
-
Página 179
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). D04000: First command word D04010: First response word D00030: First control data word The UDP Receiving Fl[...]
-
Página 180
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.[...]
-
Página 181
[...]
-
Página 182
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3 7-3 Using File Memory . . .[...]
-
Página 183
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 . Only o ne FTP cl ie[...]
-
Página 184
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 . Setting Rest[...]
-
Página 185
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 . File Names Files are dis tinguis hed by assigning file nam es and ex[...]
-
Página 186
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). 2. All files transferred automatic ally at star tu p must have the name AUT OE[...]
-
Página 187
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.IO[...]
-
Página 188
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. No pas s word is required . Note The lo gin name and a password must be set in the CPU Bus Se tup for the Ether net Unit in the CPU Unit to use an[...]
-
Página 189
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. Excl usive control i s not per f or me d. 7-5 Using FTP Com mands This sec tion des cribe[...]
-
Página 190
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 . user Format user [ user_name ] Function Specifies the use r nam[...]
-
Página 191
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). The direc tor y must b e empty to del ete it. An err or w[...]
-
Página 192
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). A desti[...]
-
Página 193
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 . PPP is not a directory . The path name indicated at PPP is not a dir ector y . [...]
-
Página 194
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. Do not remove the Memor y Ca rd or tur n OF F power to the PC whi le FTP is being used . 2. W[...]
-
Página 195
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. In t his example, the following assu mptions a re made. • The IP a[...]
-
Página 196
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 . Binary data type set. File read. File written FTP ended.[...]
-
Página 197
[...]
-
Página 198
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 9 8-1-2 Mail Trig gers . . . . . . . . . . . . . .[...]
-
Página 199
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. Mail can be tr iggered in any of the following ways: • When an error i s registe red t[...]
-
Página 200
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/pl ain;ch arset=US- ASCII • Con tent-T ran sf er- Encoding: 7 bit Ethernet Unit Inf ormation The following Ether ne t Unit inform ation is a lwa ys[...]
-
Página 201
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. Dif- f e rent informa tion ca n be selec ted wit h each mai l trigge r , and it is[...]
-
Página 202
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. Af ter the tran smissi on has be en completed , the Eth er n[...]
-
Página 203
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. T ur [...]
-
Página 204
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. Check the st atus as req uired. User Mail Status: D3 0000 + (100 x unit numb[...]
-
Página 205
[...]
-
Página 206
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6 9-2-1 Ethernet Un[...]
-
Página 207
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. The PING comman d can be e xecuted to see if nodes are[...]
-
Página 208
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. Note The PING c ommand i s not suppor ted by some hos t computers. Application E[...]
-
Página 209
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. Th e Intern ode T est Star t Switch is desc ribe d f ol- lowing the[...]
-
Página 210
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. Th e address of the wo[...]
-
Página 211
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. Number of T est Runs and Error s The number o[...]
-
Página 212
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. The Ethernet Unit mak es up part of a netw ork. Repair a defecti ve Ethernet Unit as soon as possible as it can have a n egativ e ef fect on the ent[...]
-
Página 213
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. RUN ERC ERH Pr obabl[...]
-
Página 214
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. • Network ID s that are all 0 or all 1. • Subnetw or k IDs that ar[...]
-
Página 215
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. This informa tion can be us ed in tr oubleshooting errors. W or d = CIO 1500 + (25 x un it number) +18 The corres ponding b it will tur n ON wh en an error oc curs 10-3 E rr or Log The Ethe rnet[...]
-
Página 216
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. The following inform ation is r ecorded in the erro r log table[...]
-
Página 217
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 . --- 0107 Remote n [...]
-
Página 218
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. I[...]
-
Página 219
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. 7. Replace t he CPU U nit that di dn’t work[...]
-
Página 220
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. 4. Are different UDP por t numb ers set for F INS communicati ons f o r both the loca l node and the remot e node? T r ue ➨ Set the same [...]
-
Página 221
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. 3. Read c ontroller status us[...]
-
Página 222
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. If perform ing the action does no[...]
-
Página 223
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. If the mem or y ex h austion rec ords show co unts, p[...]
-
Página 224
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. 12. Is a Memo r y Card not i nser ted in the PC ? T r ue ➨ Inser t a Memor y [...]
-
Página 225
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. 7. Is the transceiver cable loose? T r ue ➨[...]
-
Página 226
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. If perform ing the action does not corr[...]
-
Página 227
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. If sendin g recur ring m ail is s et in the S etup , go to St ep 24. [...]
-
Página 228
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 ) . 22. W as i t imposs ible to obtain the required i nformation from the mail data? T r ue ➨ Correct the f ollo wing [...]
-
Página 229
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. 02 No node w ith the speci fied unit addr es[...]
-
Página 230
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. F or network rela y errors usi ng CMND (490 ), the location o[...]
-
Página 231
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. Refer to 6-2 U sing Soc ket Ser vic es with Socket Serv ice Reques t Switches or 6-3 Usi ng Socket Ser vices with CMND(490) for the loc[...]
-
Página 232
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. 0044 ENOPRO T OOPT Protocol not av ailable (u nsuppor ted opti on spec ifie d) 0045 ECONNABOR TED Software caus ed connection abort (ano ther task cl osed[...]
-
Página 233
[...]
-
Página 234
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 11-1-1 Command Code Lis t . . . . . . . . . . . .[...]
-
Página 235
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. The y are retur ne d in the[...]
-
Página 236
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. 11-2 S oc ket Ap plications The format of the f o llowing FINS c ommands pa r tiall y differs when the sockets a[...]
-
Página 237
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. Th e rema ining th ree bytes contai n the addr ess for commun[...]
-
Página 238
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. The com mand, res ponse, and (wh ere appl icable) the res ults stora ge blocks are given with the comma nds in graphic f or m as shown in the f o llowi[...]
-
Página 239
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. Command Block Response Block P arameters Model, V ersion (Response) The Ethe rnet U nit mod e and version are retu r[...]
-
Página 240
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. The ca use of ea ch error is listed b e lo w . T ransce iver Echo T est E r[...]
-
Página 241
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.[...]
-
Página 242
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. Command Block Response Block P arameters Times Received (Response) The numbe r of tim [...]
-
Página 243
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. Number of Records (Command, Response) The number of reco rds to[...]
-
Página 244
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 . Command Block Response Block Results Storag e Format P arameters UDP Socket Number (Co[...]
-
Página 245
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 . Response Codes Results Storage Ar ea Response Codes 11-3-10 UDP RECEIVE REQUEST Re[...]
-
Página 246
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 . Up to 1,984 bytes can be spe cified. Timeout V alue (Command) The maximu[...]
-
Página 247
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 . The first byte specifi e[...]
-
Página 248
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. Results St orage Ar ea (Comma[...]
-
Página 249
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. The s ock et will wait to be con- nected 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 ope[...]
-
Página 250
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. The TCP por t numbe r of the con- nected r[...]
-
Página 251
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. 1001 Com mand too large 1002 Com mand too smal l 110 0 TCP[...]
-
Página 252
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. Results[...]
-
Página 253
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. 11-3-15 TCP RECEIVE REQUEST Requests that data be sent from a TCP socket. Command Block Response Block Results Storag e Format P arameters TCP Socket Number (Command) The TC P socket number to r ece[...]
-
Página 254
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. Th e number of bytes o f data rec eived will be stored i n the res ults [...]
-
Página 255
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. Results St orage Ar ea (Command) The area in whi ch th[...]
-
Página 256
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. Command Block Response Block Results Storag e Format[...]
-
Página 257
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). Command Block Response Block P arameters Destination IP Address (Command) The IP a ddress (in h exadecimal) o f the desti nation nod e f or the PING com- mand ech o[...]
-
Página 258
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. If this value is s et to 0, t he IP addr ess table will b e cle[...]
-
Página 259
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. This com mand is sup por ted for CJ-ser ies Et hern et Units on ly . Command Block Response Block P arameters IP Addre s s (Command) Spec ify the local IP a ddress of the Ether n et Unit usi[...]
-
Página 260
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. If thi s value is set to 0, the number o f stored records is r[...]
-
Página 261
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. If thi s v al ue is set to 0, the numbe r of stored records wil[...]
-
Página 262
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. Each value is re turned as an 8-d igit hexadecimal v a lue[...]
-
Página 263
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. Onl y #0, #3, #14, #1 6, and #18 are c ounted by the Ethe rn et Unit. 5. T[...]
-
Página 264
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. TCP Status (Response) Three ty pes (46 items) of T CP status informatio n occupying 4 [...]
-
Página 265
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 . (T[...]
-
Página 266
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. The number of ACK pack ets re ceived f or received transmis sion acknowl- edgements (A CK ). 21. [...]
-
Página 267
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. b) The number of shor t b uffers used for protocol headers (TCP , UDP , IP , ICMP , A RP) c) The num ber of sh or t buffers used in sock et s tru[...]
-
Página 268
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. A ma ximum of 64 reco rds can be retur ned. The f or mat of eac h record i s shown belo[...]
-
Página 269
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. Response Codes 11-3-26 ADDRESS INFORMA TION READ Reads FI NS node numbe rs and IP a ddresses Command Block Response Block P arameters Number of Address[...]
-
Página 270
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. The s ettings that are actuall y used for operatio n ca[...]
-
Página 271
[...]
-
Página 272
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. Unle ss you ar e alre[...]
-
Página 273
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 . Do n ot use the same groun d f or other equ ipment. • The physic[...]
-
Página 274
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 . Secured wooden board Free-access Floor Installation [...]
-
Página 275
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. Th e remain der of thi s section descr ibes m easures for dealing with no ise. Note Alth[...]
-
Página 276
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. 2. Secu rely gro[...]
-
Página 277
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. Thi s will i ncrease overall system resis- tance to noise. Note Up to two sets of mul tipoint[...]
-
Página 278
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. CS1W -ETN11 , CJ1W -ETN11 (10Base-T) Preca[...]
-
Página 279
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 . Cascade C onnection s • Con nect two hu bs to e ach other as follows: Conne ct an M DI por t to an MDI-X p or t wit h a [...]
-
Página 280
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. T ransce iver/Hub Me asur[...]
-
Página 281
[...]
-
Página 282
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 cap acity of the TC P receive buff er UDP send b uff er 9,000 byt es Maxim um capacity of the UDP send b uffer UDP r eceive buffer 9,0 16 bytes Maxi mum[...]
-
Página 283
[...]
-
Página 284
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.) FINS reception buff er (16,383 by[...]
-
Página 285
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. The us e of shor t an d long buffers is deter [...]
-
Página 286
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 ). rcv FIN snd ACK CLOSE rcv ACK of FIN rcv ACK of SYN CLOSED LISTEN SYN RECEIVED SYN SENT EST ABLISHED CLOSING CLOSED WA I T CLOSED snd SYN,ACK P assive OPEN CLOSE ACTIVE OPEN [...]
-
Página 287
[...]
-
Página 288
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. Read-only Bits/W ords W or d(s) Bit(s) Name Function Settings A202 A20200 to A20207 Comm unication s P or t Enabled Flags Bits A 20200 to A20207 tu r n ON when a n[...]
-
Página 289
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. Bits 00 to 15 co rrespond to un it numbers 0 to F . The ERR/AL M indicator[...]
-
Página 290
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. F or details, refer to S ection 4 Sys- tem Setup and Memor y Allocations . CIO Area Allocations E[...]
-
Página 291
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. 1 Status TCP Sock et No. 1 Status Service Status Error Status Sock [...]
-
Página 292
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. Socket Service Request Switches 1 t o 8 (CPU Unit to E thernet Unit) P o[...]
-
Página 293
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. (decimal[...]
-
Página 294
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 est Runs (Ethernet Unit to CPU Unit) Number of Internode T est Timeout Error s (Ethernet U nit to CPU Unit) Number of Internode T est Response Error s[...]
-
Página 295
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 ddress Sw itches (rota r y switches 1 to 8 ) on the back of the Ether ne t Unit are read and s tored here wh en the power is tur ned ON or the Ether [...]
-
Página 296
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. 2. If no l ocal IP ad dress[...]
-
Página 297
[...]
-
Página 298
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 B R b r 0011 3 ETX D C3 # 3 C S c s 0100 4 E O T D C 4 $4 D T dt 0101 5 ENQ NAK % 5 E U e u 0110 6 ACK S Y N & 6 F V f v 0111 7 BEL ETB ’ 7 G W[...]
-
Página 299
[...]
-
Página 300
279 Appendix H Dimens ions CS1W -ETN01 Unit: mm 16.5 with cov er attached 130 35 15 101 6.6[...]
-
Página 301
280 Dimension s Ap pendix H CS1W -ETN11 Unit: mm 130 35 101[...]
-
Página 302
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 4 5 6 7 8 9 A B C D E F Unit: mm[...]
-
Página 303
[...]
-
Página 304
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. Replacing an Ethernet Uni t Obser ve the[...]
-
Página 305
[...]
-
Página 306
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. None of the p ar ts in the Unit will wear out after a specific lifetime, b ut some par ts may deter iorate due to extreme operating con diti[...]
-
Página 307
[...]
-
Página 308
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 mmunications addresses remote addresse s , 96 ARP communica tions , 10 ASCII characters , 277 B bits addresses , 216 , 267 error status , 71 powe r status[...]
-
Página 309
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 ting , 192 ERROR LOG CLE AR , 223 ERROR LOG READ , 221 errors alignm ent , 220 controller stat us , 219 CRC , 220 error codes , 195 error log , 194 cle[...]
-
Página 310
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 ing , 162 , 169 data t y pe , 170 disp laying c urren t direct ory , 170 file system , 162 indicat or , 32 logi n name , 62 setting , 163 pass word ,[...]
-
Página 311
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 mail , 180 sendin g , 180 , 18 2 settings , 64 status , 76 , 18 1 triggers , 180 trou bleshoo ting , 205 user ma il , 18 0 main res ponse code , 214 [...]
-
Página 312
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 Protoc ol , 11 Transmi ssion Co ntrol Protoc ol , 10 User Da tagram Proto col , 10 put , 171 pwd , 170 R Racks mounting Ethernet Units , 37 , 38 RD in[...]
-
Página 313
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 , 33 Socket Se rvice Request Switc hes , 72 , 122 unit cont rol , 68 SYSM AC BU S/2 , 83 SYSMAC LINK , 83 system configura tion , 3 Ethernet Sy stems[...]
-
Página 314
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. Revi sion code Date Re vised content 1 Febru ar y 1999 Original pr oduction 2 No vember 20[...]
-
Página 315
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. P ages 100, 1 01: Changes made to sa mple progr am in[...]
-
Página 316
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, price l i sts , catalogs, manuals, brochures and other documents, w hether el ectron i c or i n writing, r elat i ng t o the sale of product s or service[...]
-
Página 317
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.286.6465 • 866.986.6766 • www.omron.ca OMRON ELETRÔNICA D[...]