Home
GE 90-30 PLC Switch User Manual
Contents
1. lt lt RUNG 23 STEP 0049 gt gt LANIFOK RESTART 310048 0010 1 ke ok a error is detected in read or write toggle bits to restart read or write This is done on a one shot basis Program LANRDWT C LM90 LAN LANRDWT Block _MAIN TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B 07 20 95 07 58 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 10 lt lt RUNG 25 STEP 0052 gt gt RD_ERR RS_READ 8 0003 T0013 I 7 lt lt RUNG 26 STEP 40054 gt gt RS READ RD ERR T0013 T0003 d R lt lt RUNG 27 STEP 0056 gt gt WRT ERR RS 70006 T0014 ts T lt lt RUNG 28 STEP 0058 gt gt RS WRT WRT ERR T0014 T0006 I R RRR RR RR RR IR KK If FIRSTRD RESTART DO_READ or RS_READ is set and LANIFOK is 1 zero CRSW and issue Read Channel Set RD_FLT if the Fault output is enabled RRR Program GFK 1084B Appendix D Sample Ladder Programs lt lt RUNG 30 STEP 0061 gt gt FIRSTRD LANIFOK RD_FLT 8 0001 10048 T0004 MOVE_ COMM_ S WORD REQ DO_READ
2. 3 33 FT Output of the COMMREO Function Block 3 33 Status Bits Va gad 3 33 Communications Status Words 3 36 Minor Error ee eo ee 3 38 Section 5 Controlling Communications in the Ladder Program 3 41 Essential Elements of the Ladder Program 3 41 Troubleshooting Your Ladder Program 3 44 Monitoring the Communications Channel 3 45 Sequencing Communications Requests 3 46 Data Transfers with One Repetition 3 46 Chapter 4 Troubleshooting 44s es 4 1 Diagnostic Tools Available for Troubleshooting 4 1 What to do if you Cannot Solve the Problem 4 2 PLC Fault Table sve sind x mee rc t ree eR etwas Rot RC TR Rod 4 2 Appendix Glosealy sso 4o sax spo A RSERESERERSRERSEERSEREESATESRREA A 1 Commonly Used Acronyms and Abbreviations A 1 Glossary Of Terms iis cesse rec e bre ER daw reper uere A 2 GFK 1084B TCP IP Ethernet Communications User s Manual August 1997 vi Contents Appendix Communications Ports Characteristics B 1 Station Manager edad wade eae B 2 Station Manager Port Settings
3. B 2 Station Manager Port B 2 Station Manager Port Cable ss nT a e rr ms B 3 Software Loader Port Serial Port 2 B 4 Software Loader Port Pinouts 00 B 4 Part Numbers for GE Fanuc Cables and Converters B 5 Software Loader Port Cable B 5 The AAUI Port for the Ethernet Interface B 6 Ethernet AAUI Port Pinouts B 6 Transceiver Configurations eed B 7 Display Terminal Settings 2 ccc er ike eer ees B 10 Appendix Advanced Information About IP and MAC Addresses C 1 DP Addresses use EE A 1 rua y 00 C 2 C 3 MAC Addresses 1 uy pepe oer C 4 AppendixD Sample Ladder Programs D 1 AppendixE PC Software Loader E 1 AppendixF Naming Architecture 1 Naime Assignment er de 1 Resol tiOB oec Sued Saris meto cm cr Auda Eee xd F 2 Local Table Name F 2 DDP Name Resolution F 2 DNS Name Reso
4. 2 3 Restart Button in ba eats ada bass 2 3 Seral Ports RES Go 2 4 AAUT Transceiver Port 2 5 Default Station Address Label 2 5 Serial Number Label ne He eee tea aed 2 5 Procedure 1 Installing the Ethernet Interface in the PLC 2 6 Equipment Required to Perform the Installation Procedures 2 6 Ethernet Interface Installation 2 6 Procedure 2a Configuring the Ethernet Interface with Logicmaster 90 30 Configuration Software 2 8 Procedure 2b Configuring the Ethernet Interface using CIMPLICITY Control 2 13 Procedure 3 Verifying Proper Power Up of the Ethernet Interface 2 17 Powering up the Ethernet Interface 2 17 Problems During Power up 2 17 Procedure 4 Pinging TCP IP Ethernet Interfaces on the Network 2 20 Pinging the Interface from a UNIX host or a PC Running Software 2 20 Chapter 3 Programming Communications Requests 3 1 Section 1 The Communications 3 2 Structure of the Communications Request 3 2 COMMREO Function 3 3 Command Block 3
5. S INT RD2CRSW R0002 I1 0 CONST I2 00001 Block _MAIN GFK 1084B B 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 12 lt lt RUNG 27 STEP 0064 gt gt ALW ON RD2 ERR S0007 0004 NE 5 INT RD2CRSW 80002 11 Q4 INT RD2CRSW CONST 12 80002 11 00000 CONST I2 00001 lt lt RUNG 28 STEP 0068 gt gt ALW_ON RD3_OK 550007 0005 5 INT RD3CRSW 80003 11 Q CONST 2 00001 lt lt RUNG 29 STEP 0071 gt gt ALW_ON RD3_ERR 50007 T0006 NE 5 INT RD3CRSW 80003 11 Q INT RD3CRSW CONST 2 80003 11 Q 00000 CONST 12 00001 Program CHAN4 C LM90 LAN CHAN4 Block _MAIN GFK 1084B Appendix D Sample Ladder Programs D 29 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 v6 01 Page 13 lt lt RUNG 30 STEP 0075 gt gt ALW_ON RD4_OK 50007 T0007 EQ 52 INT RD4CRSW 80004 11 CONST I2 00001 lt lt RUNG 31 STEP 0078 gt gt ALW_ON RD4_ERR
6. Pin Number Signal Name Description 1 Shield 2 No Connection 3 No Connection 4 No Connection 5 5V 5V Power for RS 232 485 Converter 6 RTS Request To Send 7 Signal Ground Signal Ground OV 8 CTS B Clear To Send 9 RT Terminating Resistor for RD 10 RD A Receive Data 11 RD B Receive Data 12 SD A Send Data 13 SD B Send Data 14 RTS B Request To Send 15 CTS Clear To Send Signals available at the Connector but are not included in the RS 485 specification SD Send Data and RD Receive Data are the same as TXD and RXD used in the Series Six PLC A and B are the same as and A and B denote outputs and A and B denote inputs Termination resistance for the Receive Data RD signal needs to be connected only on units at the end of multidrop lines This termination is made by connecting a jumper between pins 9 and 10 inside the 15 pin D shell the termination is provided in the adapters and cables specified in Table B 3 B 4 TCP IPEthernet Communications User s Manual August1997 GFK 1084B Part Numbers for GE Fanuc Cables and Converters It is recommended that you use cables available from GE Fanuc Automation to connect your PC to the Software Loader Port Refer to the table below for part numbers Table B 4 Cables for Connecting the Software Loader Port to the RS 232 Port on Your PC Part Number Description IC690ACC901 GE Fanuc Honer Mini Converter with Ca
7. GE Fanuc Automation Programmable Control Products TCP IP Ethernet Communications for the Series 90 30 PLC User s Manual GFK1084B August 1997 GFL 002 Warnings Cautions and Notes as Used in this Publication Warning notices are used in this publication to emphasize that hazardous voltages currents temperatures or other conditions that could cause personal injury exist in this equipment or may be associated with its use Insituations where inattention could cause either personal injury or damage to equipment a Warning notice is used Caution notices are used where equipment might be damaged if care is not taken Note Notes merely call attention to information that is especially significant to understanding and operating the equipment This document is based on information available at the time of its publication While efforts have been made to be accurate the information contained herein does not purport to cover all details or variations in hardware or software nor to provide for every possible contingency in connection with installation operation or maintenance Features may be described herein which are not present in all hardware and software systems GE Fanuc Automation assumes no obligation of notice to holders of this document with respect to changes subsequently made GE Fanuc Automation makes no representation or warranty expressed implied or statutory with respect to and assumes
8. gt TRANSCEIVER CABLE TO 0 10BASE5 COAXIAL TO AUI CABLE ADAPTER 15 PIN MALE CONNECTOR AC POWER 2 ADAPTER 4 WI NOTE THE AAU TO AUI ADAPTER MAY BE CONNECTED TO THE STANDARD MAU VIAA TRANSCEIVER CABLE UP TO 50 METERS Figure B 7 AAUI to AUI Adapter Can be used to connect to 10 5 shown above or 10BaseF GFK 1084B Appendix BCommunications PortsCharacteristics B 9 Display Terminal Settings When used as a local Station Manager terminal set the terminal to Wrap Around or Line Wrap mode This prevents loss of information in the event a Station Manager command response exceeds the display line width of the terminal Local echo should be set to OFE B 10 TCP IPEthernet Communications User s Manual August 1997 GFK 1084B Appendix Advanced Information About IP and C Addresses This appendix gives an overview of IP addresses gateways subnet masks and MAC addresses IP Addresses GFK 1084B Each TCP IP node on a network must have a unique IP address The TCP IP Ethernet Interface is such a node as is a PC runningICP IP There may be other nodes on the network that are not involved with communications to the PLCs but no matter what their function each TCP IP node must have its own IP address It is the unique IP address that identifies
9. lt gt BLKMV BLKMV BLKMV lt gt INT INT INT CONST IN1 Q R0131 CONST IN1 0 80138 CONST IN1 0 80145 00017 00002 00008 CONST IN2 CONST IN2 CONST IN2 00000 00000 00200 CONST IN3 CONST IN3 CONST IN3 00008 00003 00010 CONST IN4 CONST IN4 CONST IN4 00001 00001 00001 CONST IN5 CONST IN5 CONST IN5 00000 00500 00004 CONST IN6 CONST IN6 CONST IN6 00000 00008 00003 CONST IN7 CONST IN7 CONST IN7 02003 00311 00000 lt lt RUNG 8 STEP 0015 gt gt lt gt lt gt BLKMV INT CONST IN1 0 80152 00000 CONST IN2 00003 CONST IN3 00000 CONST IN4 00000 CONST IN5 00000 CONST IN6 00000 CONST IN7 00000 Program CHAN4 C LM90 LAN CHAN4 Block _MAIN GFK 1084B Appendix D Sample Ladder Programs D 23 D 24 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 7 lt lt RUNG 9 STEP 0018 gt gt lt gt BLKMV BLKMV BLKMV lt gt INT INT INT CONST Q4 R0161 CONST IN1 Q4 R0168 CONST IN1 Q RO175 00017 00003 00008 CONST IN2 CONST IN2 CONST IN2 00000 00000 00200 CONST IN3 CONST IN3 CONST IN3 00008 00003 00010 CONST IN4
10. MENT E ps ST By Bother ONES TIN gt RACK E ps 1 3 sl ec 7 8 s RAMMED CONFIGURATION PUR3Z1 CPU331 OFFLINE NLHSBNTEST1 PRG TEST1 CONFIG VALID REPLACE 2 Press the Communications softkey i e Comm F6 Your screen display will change to the one shown on the following page 2 8 TCP IP Ethernet Communications User s Manual August1997 GFK 1084B 1 NND mE GEH gt SERIES 38 38 MODULE IN RACK SLOT SOFTWARE CONFIGURATION Catalog i OFFLINE NLHSBNTEST1 TEST1 CONFIG VALID REPLACE 3 Press ethnet F2 Your screen display will change to the one shown below 1 EY gt SERIES 98 38 MODULE IN RACK SLOT SOFTWARE CONFIGURATION Catalog CATALOG DESCRIPTION TYPE 1 IC693CMM321 ETHERNET INTERFACE ETHNET lt lt CURSOR TO THE DESIRED CATALOG NUMBER AND PRESS THE ENTER KEY gt gt lt lt PRESS PGDN KEV FOR NEXT PAGE PGUP KEY FOR PREVIOUS PAGE gt gt OFFLINE NLHSBNTEST1 PRG 5 1 CONFIG VALID REPLACE 4 Press Enter to select the Ethernet Interface You will then see the screen shown on the following page GFK 1084B Chapter 2 Installing the Ethernet Interface 2 9 2 10 1 EY gt SERIES 98 38 MODULE IN RACK SLOT SOFTWARE CONFIGUR
11. Note The CRSW can assume a value that is represented as a negative integer Therefore you must check for not equal to 1 rather than greater than 1 RRR RRR RR Program LANRDWT C LM90 LAN LANRDWT Block _MAIN Appendix D Sample Ladder Programs D 13 2 14 07 20 95 07 58 GE FANUC SERIES 90 30 90 20 MICRO Page 9 WRT_ERR 0006 lt lt RUNG 18 STEP 0039 gt gt ALW_ON 50007 NE INT WT CRSW 80002 11 Q4 INT WT_CRSW CONST I2 580002 11 0 00000 CONST 12 00001 lt lt RUNG 20 STEP 0044 gt gt RD_OK S If RD fire one shot DO to execute next Write Channel Command WRT_OK fire one shot DO_READ to execute next Read Channel Command This interlock allows the ladder to alternate between read and write DO_WRT T0002 0009 e I 9 lt lt RUNG 21 STEP 0046 gt gt WRT_OK DO_READ 0005 0008 I LANIFOK transitions from 0 gt 1 restart read write logic This should only happen if the Ethernet Controller initiating communications is restarted
12. 00004 CONST 00003 CONST 00000 N3 N4 N5 N6 N7 PWR_DLY 0012 CONST IN1 Q4 R0152 1084 Appendix D Sample Ladder Programs C LM90 LAN LANRDWT S Block _MAIN D 12 07 20 95 07 58 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 7 lt lt RUNG 9 STEP 0018 gt gt PWR DLY FIRSTRD T0012 0001 4 TMR 10 1031 CONST PV 400020 80003 lt lt RUNG 10 STEP 0021 gt gt FIRSTRD PWR_DLY T0001 T0012 MOVE_ MOVE_ R WORD WORD RD_CRSW WT CRSW CONST IN 0 80001 CONST IN Q R0002 0000 LEN 0000 LEN 100001 100001 KOC k k KK If RD CRSW 1 COMREQ complete without error Set RD OK on one shot to issue Write Channel Command oe oe Rp Rep du ep oem epe epe sepe pe pe pe epe epe epe epp epe sepe epe lt lt RUNG 12 STEP 0026 gt gt ALW ON OK 550007 T0002 INT RD_CRSW N ROO01 11 GFF CONST I2 00001 k k k ok k k a RD_CRSW is not equal to 0 and not equal to 1 an error occurred processing the Set R
13. T0008 RD_CRSW CONST 0 80001 RO101 IN FT 0000 LEN RS_READ 100001 T0013 CONST tSYSID 0002 RESTART TOO10 CONST 00000000 M LL WS LL UNT If DO or RS WRT is set and LANIFOK is 1 zero CRSW and issue Write Channel COMREQ Set FLT if the Fault output is enabled RRR RRR IR IR k k k k k ka ok a LANRDWT C LM90 LAN LANRDWT Block _MAIN D 15 D 16 07 20 95 07 58 lt lt RUNG 32 STEP 0070 gt gt Program GE FANUC SERIES 90 30 90 20 MICRO END OF PROGRAM LOGIC LANRDWT DO WRT LANIFOK 0009 10048 MOVE_ COMM_ WORD REQ RS_WRT T0014 WT CRSW CONST IN 0 80002 80131 IN FT 0000 100001 CONST SYSID 0002 CONST TASK 00000000 C LM90 LAN LANRDWT TCP IP Ethernet Communications User s Manual August 1997 Page TI WRT FLT T0007 Block S MAIN GFK 1084B B 07 20 95 07 58 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Contents 1 LOGIC TABLE OF CONTENTS ye LANRDWT 1 _MAIN 2 Variable Table 3 Logic 3 Program LANRDWT C LM90 LAN LANRDWT TABLE OF CONTENTS GFK 1084B Appendix D Sample Ladder Programs D 17
14. INT CONST IN1 Q4 R0122 00000 CONST IN2 00002 CONST IN3 00000 CONST IN4 00000 CONST IN5 00000 CONST IN6 00000 CONST IN7 00000 Program LANRDWT TCP IP Ethernet Communications User s Manual August 1997 C LM90 LAN LANRDWT Block lt gt ED MAIN GFK 1084B 07 20 95 lt gt CONST 00017 CONST 00000 CONST 00008 CONST 00001 CONST 00000 CONST 00000 CONST 02004 lt lt RUN qe 00000 CONST 00002 CONST 00000 CONST 00000 CONST 00000 CONST 00000 CONST 00000 Program lt lt RUNG 7 07 58 4 INT BLKMV BLKMV GE FANUC SERIES 90 30 90 20 MICRO STEP 0010 gt gt v6 01 Page 6 INT IN1 0131 CONST IN1 Q R0138 IN2 IN3 IN4 IN5 IN6 IN7 68 5 INT 2 IN3 IN4 IN5 IN6 IN7 BLKMV LANRDWT 00001 CONST IN2 00001 CONST IN3 00002 CONST IN4 00000 CONST IN5 00500 CONST IN6 00008 CONST IN7 00200 0015 gt gt BLKMV INT lt gt CONST IN1 Q 4 R0145 00008 CONST 00300 CONST 00001 CONST 00001 CONST
15. IP Address See Internet Address Jabber A transmission by a network node beyond the time interval allowed by the protocol LAN Interface A term used in this manual to identify the GEnet hardware module with or without software that connects a PLC or CNC to a network LAN Interface Status Bits LIS Bits The LIS bits comprise bits 1 16 of an 80 bit status bit area The location of this 80 bit status area is assigned using the Logicmaster 90 Configuration Package or CIMPLICITY Control in the Status Address field The LIS bits contain information on the status of the Local Area Network LAN and the Ethernet Interface itself Linear Topology A network topology in which nodes are each connected at a point along a common continuous cable which has no loops and only two endpoints Link Service Access Point LSAP A Data Link layer SAP A single byte that identifies the routing of data received by the network node Local Address Administration Address administration in which all LAN individual addresses are unique within the same Local Area Network See also Global Address Administration Local Area Network LAN A computer network located on a user s premises within a limited geographical area Appendix A Glossary A 5 6 Local Station The station at your immediate location i e here See also Remote Station Log Events Events recorded in the system exception log for the LAN Interface The maximum number of e
16. Operational state 2 19 PC Software Loader 1 4 E 1 GFK 1084B 1084 Period for Channel Commands 3 12 3 19 3 25 PING Station Manager command 2 20 Pinging the TCP IP Interfaces on the Net work 2 20 Pinouts AAUI port B 6 Pinouts Station Manager port B 2 PLC Fault Table 4 2 PLC memory types 3 13 PLC Module Configuration 2 8 2 13 Ports B 1 AAUI 2 5 B 6 Serial 2 4 Power up problems 2 17 Powering up the Ethernet Interface 2 17 Problems During Power up 2 17 Q Quick Guide to the Manual 1 5 R Reloading Ethernet Interface software 2 3 E 1 Remote PLC 3 11 3 15 3 18 3 21 Repetitions number of for Channel Com mands 3 12 3 19 3 25 Requirements for Installing the Ethernet Interface 2 6 Resource problem bit 3 34 Restart 2 3 Restart Button 2 3 Re tasking a channel 3 9 Data transfers with one repetition 3 46 Retrieve Detailed Channel Status com mand 2002 3 30 Data Transfers with One Repetition 3 46 RS 232 port 2 4 RS 485 port 2 4 Index 5 Sample ladder program 3 41 D 1 Send Information Report command 2010 3 24 Sequencing communications requests 3 46 Serial Number Label 2 5 Serial port pin out Series 90 plc B 5 Serial port configuration 2 12 Data rate 2 12 2 15 Flow control 2 12 2 15 Parity 2 12 2 15 Stop bits 2 12 2 15 Timeout 2 12 2 15 Turnaround delay 2 12 2 15 Serial Ports 2 Sta
17. 10052 CH2_ERR Error detected on Channel 2 10053 XFER_3 Successful Data Transfer 10054 CH3_ERR Error detected on Channel 3 10055 XFER_4 Successful Data Transfer 810056 CH4_ERR Error detected on Channel 4 T0001 RD1 OK RD1ICRSW OK T0002 RD1 ERR Read 1 failed T0003 RD2 OK RD2CRSW OK T0004 RD2 ERR Read 2 failed T0005 RD3 OK RD3CRSW OK T0006 RD3 ERR Read 3 failed T0007 RD4_OK RD4CRSW OK T0008 RD4 ERR Read 4 failed T0009 DOREADS Execute comreqs for 4 reads T0010 CR1 ERR Fault output set 870011 CR2_ERR 2 Fault output set T0012 CR3 ERR COMREQ 3 Fault output set T0013 CRA ERR 4 Fault output set 70014 RESTART If LANIFOK 0 gt 1 restart reads T0016 PWR DLY Power up delay for comreq func 8 0017 RS CH Channel error detected restart 8 0018 RS_CH2 Channel error detected restart T0019 RS_CH3 Channel error detected restart T0020 RS_CH4 Channel error detected restart 80001 RD1ICRSW COMREQ status word for read 1 80002 RD2CRSW COMREQ status word for read 2 R0003 RD3CRSW COMREQ status word for read 3 R0004 RD4CRSW COMREQ status word for read 4 Program CHAN4 C LM90 LAN CHAN4 D 20 TCP IP Ethernet Communications User s Manual August 1997 Block _MAIN GFK 1084B GFK 1084B 07 20 95 07 57 FANUC SERIES 90 30 90 20 MICRO v6 01 Page Program NLM90NLANNCHANA Block MAIN IDENTIFIER TABLE IDENTIFIER IDENTIFIER
18. 3 11 Establish Write Channel command 2004 3 18 Establishing a channel 3 9 Ethernet Interface 1 1 Attachment to the LAN 1 3 Capabilities 1 2 Hardware overview 2 1 Installation 2 6 Powering up 2 17 Ethernet Software 1 3 F Fault table 4 2 Fiber optic cable 1 3 Flash memory 1 4 FT Output of the COMMREO Function Block 3 4 3 32 3 33 Fuse blown bits 3 34 G Gateway address 2 10 2 14 Gateways 2 Glossary of Terms A 1 A 2 H Hardware failure 2 19 Host Communications Toolkit 1 1 1 2 How to Make it Work 1 4 Installing the Ethernet Interface in the PLC 2 6 IP address 2 10 2 14 C 1 Configuration 2 14 Determining if it has been used 2 20 Isolated network 2 14 L Ladder programming 3 41 LAN Interface OK bit 3 34 LAN Interface Status bits 3 2 LAN OK bit 3 34 LED test 2 3 LEDs 2 3 2 17 2 18 2 19 LIS bits 3 4 3 34 Loading Ethernet Interface software 2 3 E 1 Local Channel commands 3 29 3 31 Local PLC 3 11 3 15 3 18 3 21 Local Table Name Resolution F 2 Logic program controlling execution of the COMMREQ 3 4 MAC Address C 4 Maintenance state 2 4 2 19 Media 1 3 Memory types PLC 3 13 Monitoring the communications channel 3 45 N Name Assignment F 1 Name Resolution F 2 Name Server IP address 2 10 2 14 Network Address 3 10 3 14 3 16 3 20 3 22 3 26 3 28 Number of repetitions for a Channel Command 3 12 3 19 3 25
19. 7 Power up the PLC See Procedure 3 to verify proper power up of the Ethernet Interface 8 Store the configuration to the PLC via the built in serial port on the power supply Refer to GFK 0466 Logicmaster 90 Series 90 30 20 Micro Programming Software User s Manual for more information on configuring the Ethernet Interface using Logicmaster 90 30 software TCP IP Ethernet Communications User s Manual August1997 GFK 1084B Procedure 2b Configuring the Ethernet Interface using GFK 1084B CIMPLICITY Control Before you can use the Ethernet Interface with the Series 90 30 PLC you must configure the Interface using CIMPLCITY Control or Logicmaster 90 30 configuration soft ware CIMPLICITY Control software allows you to specify the modules and that will reside in your Series 90 30 PLC rack s The Hand Held Programmer can nof be used to configure the Ethernet Interface To configure the Ethernet Interface in CIMPLICITY Control do the following 1 From the Browser double click the 90 30 Rack System Local Rack icon The Local Rack Window will appear Rack System Rack 2 Click the tab corresponding to the desired rack 3 Click the desired slot press the right mouse button and choose Add Module from the menu If the slot already contains a module choose Replace Module The Module Catalog dialog box will appear dule Catalog SRSS SS Genius Communications Module Enhanced Ge
20. August 1997 GFK 1084B The term local PLC is used here to identify the client PLC the PLC that initiates the communications request The term remotePLC is used here to identify the serverPLC the PLC that respondsto the request GFK 1084B Example 2 Command Block Example using a Network Address Name This example is the same as example 1 except that the Network Address name of the Remote PLC PLC 1aa is used instead of its IP address For more information on Network Address names see Appendix E Establish a channel channel 5 to a remote PLC at IP address 3 0 0 1 Return the COMMREQ Status word to R10 Read remote PLC registers R50 R57 to local PLC registers R100 R107 Repeat the read 10 times once every 7 seconds with a timeout of 500 ms for each read Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word 7 Word 8 Word 9 Word 10 Word 11 Word 12 Word 13 Word 14 Word 15 Word 16 Word 17 Word 18 Word 19 Word 20 Word 21 Word 22 Word 23 Word 24 Word 25 Word 26 Word 27 Word 28 Word 29 Word 30 Word 31 Word 32 Word 33 Word 34 Word 35 Word 36 51 Chapter 3 Programming Communications Requests Dec 00045 002d 00000 0000 00008 0008 00009 0009 00000 0000 00000 0000 02003 0743 00005 0005 00010 000A 00003 0003 00007 0007 00050 0032 00008 0008 00100 0064 00008 0008 00050 0032 00008 0008 00003 0003 00032 0020 19536 4c50 16451
21. m The logic program controlling execution of the Function Block The figure below illustrates the relationship of these elements CONTROL COMMREQ LOGIC FUNCTION BLOCK INITIATES FUNCTION Mus ein AND COMMREQ OUTPUTS COMMAND BLOCK COMMREQ FOR COMMREQ STATUS WORD FUNCTION COMMREQ STATUS STATUS 2 WORD CODES POINTER POINTER DETAILS STATUS BITS OF THE LAN INTERFACE STATUS CHANNEL AND CHANNEL STATUS COMMAND BITS Location in PLC memory spe cified when configuring the In terface using Configuration Software Figure 3 1 Elements of the Communications Request 3 2 TCP IP Ethernet Communications User s Manual August1997 GFK 1084B COMMREQ FunctionBlock The COMMREO Function Block is the ladder instruction that triggers the execution of the Channel Command In the Function Block you specify the rack and slot location of the Ethernet Interface and a pointer to a location in memory that con tains the Command Block There is also a fault output on the Function Block that indicates certain programming errors See Section 2 for details COMMREQ Command Block Command Block is a structure that contains information about the Channel Command to be executed The Command Block consists of two parts Common Area includes a pointer to the Status word CRS word Data Block Ar
22. 0003 00007 0007 00050 0032 00008 0008 00100 0064 00008 0008 00050 0032 00008 0008 00001 0001 00004 0004 00003 0003 00000 0000 00000 0000 00001 0001 Length of Channel Command Data Block 17 25 words Always 0 no wait mode request Memory type of CRS word R CRS word address minus 1 R10 Reserved Reserved Establish Read Channel Command number Channel number 5 Number of read repetitions read 10 times Time unit for read period 3 seconds Number of time units for read period every 7 seconds Timeout for each read 500 ms Local PLC Memory type at which to store data R Local PLC Starting address at which to store data 100 Remote PLC Memory type from which to read data R Remote PLC Starting address from which to read data R50 Remote PLC Number of memory units 8 registers Remote PLC Network address type IP Address Remote PLC Network address length in words 4 Remote PLC Register 1 of IP address 3 Remote PLC Register 2 of IP address 0 Remote PLC Register 3 of IP address 0 Remote PLC Register 4 of IP address 1 Remote PLC Program Name needed for access to remote P or L zero terminated and padded Remote PLC Program Block needed for access to remote L zero terminated and padded Word 4 CRS word address is the only zero based address in the Command Block Only this address requires subtracting 1 from the intend
23. 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 v6 01 Page d GGGG EEEEE FFFFF AAA N 0 0 0 UC G GGG EEEE FFF AAAAA NNN U UC G GE U C GGG EEEEE UUU 0 U TITIT 000 U T T I O NN N AAAAA U U T T ONNN A AU U T T I ON NN A UUU T M MA A T 000 e e ee e e e e e ee e e ee e e e e ER e e e e Ch Program CHAN4 PLC PROGRAM ENVIRONMENT HIGHEST REFERENCE USED ui INPUT 1 512 INPUT 10056 p x OUTPUT 0 512 OUTPUT NONE n INTERNAL M 1024 INTERNAL NONE n GLOBAL DATA G 1280 GLOBAL DATA NONE TEMPORARY T 256 TEMPORARY T0020 REGISTER R 2048 REGISTER R0218 2 128 ANALOG INPUT NONE ANALOG OUTPUT 64 ANALOG OUTPUT NONE PROGRAM SIZE BYTES 960 ce EEE ehe ehe ee ede ehe ee ee ee ee ee ee ede ede ehe hee ee ee ee ede ee ede EKER ERE EKER ER ER EK EH EH KY Program CHAN4 C NLM90NLANNCHANA TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B GFK 1084B 07 20 95 07 57 SERIES
24. G GE U C GGG EEEEE UUU 0 U TITIT 000 U T T I O NN N AAAAA U U T T ONNN A AU U T T I ON NN A UUU T M MA A T 000 CENTRAL PLC CONFIGURATION TOTAL DISCRETE I O Q 80 HIGHEST CONFIGURED REFERENCES 1 112 DISCRETE OUTPUT 0 ANALOG INPUT SAI 0 ANALOG OUTPUT 0 REGISTER MEMORY SR 0 DISCRETE INPUT Folder C LM90 LAN LANRDWT TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B GFK 1084B 07 17 95 16 47 GE FANUC SERIES 90 30 90 20 v6 01 Page RACK 0 PS 1 2 3 4 5 6 7 8 9 10 PROGRAMMED CONF G URAT I O N PWR321 CPU331 CMM321 ETHNET RefAdr 10033 Folder C LM90 LAN LANRDWT Rack Appendix D Sample Ladder Programs D 3 07 17 95 16 47 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 3 SERIES 90 30 MODULE IN RACK 0 SLOT 0 SOFTWARE CONFIGURATION SLOT Catalog IC693PWR321 POWER SUPPLY 120 240 V
25. Minor Error Codes for Major Error Codes 5H and 85H Continued 3 39 Table 3 6 Minor Error Codes for Major Error Code at Remote Server PLC 3 39 Table 3 7 Minor Error Codes for Major Error Code 90H at Client PLC 3 40 Table 4 1 PLC Fault Table Descriptions 4 3 Table 4 1 PLC Fault Table Descriptions 4 4 Table B 1 Station Manager Port Pinouts B2 Table B 2 Serial Cable IC693CBL316A Connector Pinouts rere rr erreren B 3 Table B 3 Software Loader Port B 4 Table B 4 Cables for Connecting the Software Loader Port to the RS 232 Port on Your PC B 5 Table B 5 Pinouts of the AAUI Port es ge B 6 GFK 1084B TCP IP Ethernet Communications User s Manual August 1997 ix Chapter Introduction 1 This manual describes the Ethernet Interface IC693CMM321 for the Series 90 30 PLC This chapter provides an overview of the Ethernet Interface and covers the following topics m The Ethernet Interface m How to Make the System Work m Quick Guide to the Manual The Ethernet Interface The Ethernet Interface enables the Series 90 30 PLC to communicate with other Series 90 30 PLCs with Series 90 70 PLCs with Logicmaster 90 30 TCP IP
26. Remote PLC Network address name char 23 23 Remote PLC Network address name char 24 25 Remote PLC Network address name char 26 27 Remote PLC Network address name char 28 29 Remote PLC Network address name char 30 31 Reserved set to zero Chapter 3 Programming Communications Requests 3 21 Word 52 55 Remote PLC Program Name needed for access to remote or L zero terminated and padded Word 56 59 Remote PLC Program Block needed for access to remote L zero terminated and padded Word 4 CRS word address is the only zero based address in the Command Block Only this address requires subtracting 1 from the intended address Words 7 17 See the descriptions in Example 1 Word 18 Network Address Type Word 18 specifies the format of the remote PLC address In this release Word 18 must contain the value 1 or 3 A value of 1 indicates a dotted decimal IP address expressed using a separate register for each decimal digit A value of 3 indicates a Network Address name See Example 1 for information on using address type 1 Word 19 Network Address Length Word 19 specifies the length in words of the remote PLC Network Name address With an address type of 3 specified Word 19 must contain 32 Words 20 35 Network Address Name Works 20 35 specify the Network Address name of the remote PLC as an ASCII character string The Network Address name may contain up to 31 characters is case sensitive a
27. Underlying TCP connection aborted reset by server end point 9790H Underlying TCP connection aborted by client end point 9890H The remote server has no Service Request Processor 9a90H Response to session request did not arrive in proper order 9b90H Session denied by server PLC 9c90H Data response did not arrive in proper order 9d90H Data response had unexpectedsize 9e90H Unrecognized COMMREQ command code 190 Invalid CRS word memory type a290H Failed an attempt to update the CRS word a490H Address length value invalid Must be 32 for address type b090H Network Address name length error The name cannot exceed 31 ASCII characters and mustbe terminated with a NUL character zero b190H Specified Network Address name could not be resolved into an IP address b390H Internal name resolultion error See PLC fault table or exception log for details TCP IPEthernetCommunications User s Manual August1997 GFK 1084B Section 5 Controlling Communications in the Ladder Program This section provides tips on how to control communications in your ladder program Only segments of actual ladder logic are included For a sample of a complete working program see Appendix D Topics discussed are Essential Elements of the Ladder Program Troubleshooting Your Ladder Program m Monitoring Communications in the Ladder Program m Sequencing Communications Requests Essential Elements of the Ladder Program Every ladder
28. Word 14 Local PLC Memory Starting Address Word 14 specifies the starting address in the local PLC from which the data is to be written 1 based Word 15 Remote PLC Memory Type Words 15 16 specify the memory type and starting address in the remote PLC to which the data is to be stored Valid memory types are listed in Table 3 2 The user is responsible for assuring that this area is large enough to contain the requested data without overwriting other application data Word 16 Remote PLC Memory Starting Address Word 16 specifies starting address in the remote PLC to which the data is to be stored Valid ranges of values depend on the remote PLC 1 based Word 17 Remote PLC Number of Memory Units Word 17 specifies the number of bits bytes or words to be written determined by the remote PLC memory type specified For example if the memory type is l this is the number of bits If the memory type is this is the number of words A maximum of 16384 bits 2048 bytes 1024 words of data may be specified Word 18 Remote PLC Network Address Type Word 18 specifies the format of the remote PLC address In this release Word 18 must contain the value 1 or 3 A value of 1 indicates a dotted decimal IP address expressed using a separate register for each decimal digit A value of 3 indicates a Network Address name See Example 2 for information on using address type 3 Word 19 Remote PLC Network Address Length Word 19 spe
29. comprise the LAN Interface Status LIS bits The next 64 bits comprise the Channel Status bits 2 for each channel A de tailed explanation of the status bits is given following the table Note Unless the LAN Interface OK bit is set bit 16 in the following table the other status bits are invalid Chapter 3 Programming Communications Requests 3 33 Table 3 3 Status Bits LIS Bits and Channel Status Bits Status Bits Brief Description 1 6 Reserved 7 Serial Port 2 Fuse Blown 8 AAUI Fuse Blown 9 Any Channel Error error on any channel 10 Reserved 11 Reserved 12 Reserved 13 LANOK 14 Resource Problem 15 Reserved 16 LANInterface OK 17 Data Transfer Channel 1 18 Channel Error Channel 1 47 Data Transfer Channel 16 48 Channel Error Channel 16 49 80 Reserved for future use Note Unless the LAN Interface OK bit is set Status Bit 16 the other status bits are invalid Status Bit 7 Serial Port 2 Fuse Blown This bit is set to 1 when the Serial Port 2 fuse is blown Otherwise it is set to 0 Status Bit 8 AAUI Fuse Blown This bit is set to 1 when the AAUI Fuse is blown Other wise it is set to 0 Status Bit 9 Any Channel Error This bit is set to 1 if there is presently an error on any of the established channels 1 if the individual Channel Error bit is set for any channel Status Bit 13 LAN This input wil
30. gt gt LANIFOK RESTART 10048 T0014 t d k k any of the channel error bits are set in the LISW restart read for channel by setting RS_CHx bit on a one shot RR RRR RRR RR RR RRR RRR RR Program CHAN4 C LM90 LAN CHAN4 Block _MAIN TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B GFK 1084B 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 v6 01 Page 10 lt lt RUNG 19 STEP 0045 gt gt CH1_ERR RS CH1 510050 T0017 lt lt RUNG 20 STEP 0047 gt gt CH2_ERR RS_CH2 810052 T0018 t od lt lt RUNG 21 STEP 0049 gt gt CH3 ERR RS CH3 810054 870019 Fc lt lt RUNG 22 STEP 40051 gt gt 4 ERR RS CHA 10056 T0020 T Program CHANA C LM90 LAN CHAN4 Block _MAIN The rungs below check the CRSW for each channel to see if the COMREQ is successful indicating that the FIRST read was not successful or if he COMREQ completed with error indicating the first read was not uccessful T memory locations are set to reflect the CRSW value for ach channel Note If the channel is tasked to read multiple times he Channel Error bits are set to reflect the success or failure of ubsequent reads Note The
31. ke k k k k ko ke kk k k ko ke kk kk k ke ke ke ee D 21 D 22 Page 5 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 MICRO v6 01 lt lt RUNG 5 STEP 0002 gt gt FST SCN 50001 BLKMV BLKMV BLKMV INT INT INT CONST IN1 0 80101 CONST IN1 Q 4 R0108 CONST IN1 0 80115 00017 00001 00008 CONST IN2 CONST IN2 CONST IN2 00000 00000 00200 CONST IN3 CONST IN3 CONST IN3 00008 00003 00010 CONST IN4 CONST IN4 CONST IN4 00000 00001 00001 CONST IN5 CONST IN5 CONST IN5 00000 00500 00004 CONST IN6 CONST IN6 CONST IN6 00000 00008 00003 CONST IN7 CONST IN7 CONST IN7 02003 00301 00000 TE CONST 00000 CONST 00002 CONST 00000 CONST 00000 CONST 00000 CONST 00000 CONST 00000 Program TCP IP Ethernet Communications User s Manual August 1997 lt lt RUNG 6 STEP 0007 gt gt lt gt BLKMV INT 1 1 Q4 R0122 2 IN3 IN4 IN5 IN6 IN7 CHAN4 C LM90 LAN CHAN4 Block ED MAIN GFK 1084B 07 20 95 07 57 FANUC SERIES 90 30 90 20 v6 01 Page 6 lt lt RUNG 7 STEP 0010 gt gt
32. 10Base5 Ethernet segment 10Base2 Coax 10Base2 uses a 0 2 inch diameter 50 ohm coaxial cable and is commonly called thin wire The maximum length of a cable segment is 185 meters A maximum of 30 stations is allowed on a 10Base2 Ethernet segment 10BaseT 10BaseT uses a twisted pair cable of up to 100 meters in length between each node and a hub or repeater Typical hubs or repeaters support 6 to 12 nodes connected star wiring topology 10BaseF 10BaseF has two variations that both use the same type of fiber optic cable 10BaseFP can support up to 33 nodes at distances of up to 500 meters from a passive star 10BaseFL supports up to 2000 meters between a node and a repeater a multi port repeater would thus constitute a star Additionally 10BaseFB provides a means of inter connecting only repeaters by up to 2000 meters of the same fiber optic cable 10Broad36 10Broad36 uses 75 ohm coaxial cable and CATV like media components taps amplifiers headend translators etc to support hundreds of nodes at distances of up to 2800 meters Broadband cannot be connected to baseband via repeaters Broad band cable plant design and installation must be in accordance with IEEE 802 7 and re quires special expertise GE Fanuc recommends you contract professional specialists for these services Consult your GE Fanuc sales representative or field service office for help in identifying local specialists The Station Manager Software T
33. 2 to find out where the Interface stopped Refer to Table 2 1 for corrective actions GFK 1084B Chapter 2 Installing the Ethernet Interface 2 18 Powering up the PLC Q Ethernet Interface Initializing Q approx 10 seconds Pressing the Restart button A Hardware Failure Software Load Load Request or Software Corrupted C Waiting for Configuration from PLC CPU max 2 minutes 45 D 9 Waiting for IP Address IP address 0 0 0 0 IP Address Received Q Maintenance eo Maintenance Request or Fatal System Error Maintenance Client and server capability disabled Uses default Advanced Parameters Q Operational Operational Full support for client and server capability Uses user defined Advanced Parameters Figure 2 2 States of the Ethernet Interface TCP IP Ethernet Communications User s Manual August 1997 The Ethernet Interface is initialized by Storing a new configuration to the PLC with changes for the Ethernet Interface Issuing a Station Manager RESTART LOAD or MAINT command Internal System Error occurring when Interface is Operational Load Request Caused By Restart Pushbutton pushed for 5 10 seconds Station Manager LOAD command issued Detection of corrupt software Waiting for IP Address Caused By Not configuring Interface using Logicmaster
34. 3 Channel Commands 5252 5 lt a 3 3 Stat s Data ry a nn 3 4 The Logic Program Controlling Execution of the COMMREQ Function Block bk rr eb ethan ioe ER ed 3 4 Operation of the Communications Request 3 5 GFK 1084B TCP IP Ethernet Communications User s Manual August 1997 v Contents Section 2 The Function Block and Command Block 3 6 Function 3 6 Command Block 3 7 Section 3 Channel Commands 3 9 Establishing a Channel 600m ede a ee 3 9 Aborting and Re tasking a Channel 3 9 Retrieving Detailed Status on the Channel 3 10 Specifying a Network 4 3 10 Establish Read Channel 2003 3 11 Establish Write Channel 2004 3 18 Send Information Report 2010 3 24 Abort Channel 2001 e245 se eb Day sa Da do 3 29 Retrieve Detailed Channel Status 2002 3 30 Section 4 Status Data ovary 3 32 Typesiof Status Data sec eee Rm eb be s e reor mes 3 32 Description of the Status Data 3 33 OK Output of the COMMREO Function
35. 4043 24881 6131 00097 0061 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 Length of Channel Command Data Block 45 53 words Always 0 no wait mode request Memory type of CRS word CRS word address minus 1 R10 Reserved Reserved Establish Read Channel Command number Channel number 5 Number of read repetitions read 10 times Time unit for read period 3 seconds Number of time units for read period every 7 seconds Timeout for each read 500 ms Local PLC Memory type at which to store data Local PLC Starting address at which to store data 100 Remote PLC Memory type from which to read data R Remote PLC Starting address from which to read data R50 Remote PLC Number of memory units 8 registers Remote PLC Network address type 3 Symbolic Name Remote PLC Network address length in words 32 Remote PLC Network address name char 1 2 Remote PLC Network address name char 3 4 C_ Remote PLC Network address name char 5 6 1a Remote PLC Network address name char 7 8 a Remote PLC Network address name char 9 10 Remote PLC Network address name char 11 12 Remote PLC Network address name char 13 14 Remote PLC Network address name char 15 16 Remote PLC Network address name char 17 18 Remote PLC Network addre
36. 50007 T0008 NE 5 INT RD4CRSW 80004 11 0 INT RD4CRSW CONST 12 RO004 11 0 00000 CONST I2 00001 Program CHAN4 D 30 TCP IP Ethernet Communications User s Manual August 1997 so the COMREQs execute once in the scan edes de eoe eos eo SA SAA o ok eoe dee deo ASSESS ESR RR RR EEG E E EE C NLM90NLANNCHANA k k k rungs that follow execute COMREQs for all channels if DOREADS or RESTART is set or if RS_CHx is set for any channel and if LANIFOK is set Note DOREADS RESTART and RS_CHx bits are set on a one shot Block _MAIN GFK 1084B B 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 14 lt lt RUNG 33 STEP 0083 gt gt DOREADS LANIFOK CR1_ERR ST0009 10048 T0010 4 MOVE_ COMM_ 5 WORD REQ RS CH1 8 0017 RD1CRSW CONST 0 80001 RO101 IN 0000 LEN RESTART 100001 8 0014 CONST SYSID 0002 CONST 00000000 lt lt RUNG 34 STEP 0090 gt gt DOREADS LANIFOK CR2_ERR TO009 10048 T0011 MOVE_ _ 5 WORD RE
37. 90 Configuring Interface with IP address 0 0 0 0 New CPU with no configuration CPU failure to communicate with Interface Continue to Maintenance or Operational Caused By IP address received from network BOOTP server IP address entered by BOOTP Station Manager command Maintenance Request Caused By Restart Pushbutton pushed for more than 10 seconds Station Manager MAINT command issued Fatal System Error while in Operational State forced a restart Symbols The LEDs are labeled from top to bottom as follows OK LAN SER STAT The symbols used for the LEDs are defined as follows Q OFF Slow Blink multiple slow blinking LEDs blink in unison Fast Blink Traffic blinks when there is traffic on the line The process symbols are defined as follows Temporary condition requires no intervention lt gt Decision point during power up Co Interface State normally the Interface remains in a State unless there is user intervention GFK 1084B Table 2 1 Problems During Power Up LED Pattern Where Stopped PossibleCause Corrective Actions OK Off A Fatal Hardware Error m Make sure the PLC has power LAN Off m Examine PLC Fault Table for clues SER Off Hardware m Recheckconfiguration STAT Off Failure Power off baseplate inspect the Interface for loose components reseat the Interface and Restart Try a different slot
38. Write Channel commands The Read Channel command reads t see the new value R201 of this PLC r his PLC The Write Channel command writes R300 from the remote PLC into R201 R200 from this PLC to using the Read Channel of R300 f the remote PLC You can change the value of R200 in this PLC and ead from the remote PLC as the data is written to and This ladder automatically restarts the read write logic if the ethernet wW H ard is reset LANIFOK 0 gt 1 rite command ardware Configuration This ladder is written for a 90 30 Ethernet Controller installed in system The LAN Interface Status Word is onfigured for 133 The IP address for this Ethernet Controller is 0 0 1 The IP address for the remote is 3 0 0 2 R c 3 F ack 0 Slot 2 of 90 20 irst Scan Logic Rungs 5 8 initialize the data areas for the Read Channel and Write W PWR_DLY is set to start 2 second timer to initialize if first scan executes on power up hannel Commands hannel CRSW is located at hannel CRSW is located at SR1 R2 the read and write channel CRSWs are cleared o ne shot The Read ungs 7 and 8 The BLKMV function is used to initialize data for the rite Channel Command The command block starts at R131 The Write or if an error is detected on a read or ungs 5 and 6 The BLKMV function is used to initializ
39. az A Z 0 9 1 amp _ 1 7 lt gt Name Assignment GFK 1084B Name assignment implies associating a symbolic name to an IP address There exist three scenarios where name assignment occurs The first deals with the Ethernet Interface using a default mechanism for assigning itself a Network Address Name If the Ethernet Interface has no source for a Network Address Name at startup it will generate a name in the form cmm742_xxxxxx where 15 the ASCII representation of the last six hexadecimal digits of the MAC address used by this module This mechanism will be used whenever there exists no other configuration source for a name neither module configuration nor backup data The second scenario deals with the assignment of a Network Address Name to the Ethernet Interface by the PLC Programmer if supported The Network Address Name is configured for an Ethernet Interface and stored into the PLC If a Network Address Name is not configured at the PLC Programmer a Network Address Name may be locally defined or modified at the Ethernet Interface with the station manager command chmyname This command is documented in the TCP IP Ethernet Communications Station Manager Manual GFK 1186 The third scenario dealing with name assignment involves the building of a Name Table which contains a mapping of symbolic names to associated IP addresses This table may be created at the PLC Programmer if supported a
40. each node on the net work is assigned a unique IP address TCP IP Ethernet Communications User s Manual August1997 GFK 1084B However if you have network administrator and simple isolated network with gateways you can use the following range of values for the assignment of local IP ad dresses 3 0 0 1 First PLC 3 0 0 2 Second PLC 3 0 0 3 Third PLC 3 0 0 255 Logicmaster TCP or host Also on an isolated network the Subnet Mask Gateway IP address and Name Server IP address can all be 0 0 0 0 The Name Server IP address is not currently used and is reserved for future use Note If the isolated network is ever connected to another network the IP addresses 3 0 0 1 through 3 0 0 255 must not be used and the Subnet Mask and Gateway IP address must be assigned by the Network Administrator The IP addresses must be assigned so that they are compatible with the connected network Refer to Appendix C for more information on addressing See also the section Determining If an IP Address Has Already Been Used in Procedure 4 5 Optionally after you have assigned the IP address etc press Page Down to display the following screen 1 NND Gun gt SERIES 90 30 MODULE IN RACK SLOT SOFTWARE CONFIGURATION Catalog rA ETHERNET INTERFACE PORT CONFIGURATION Station Mgr Port S W Load Port Data Rate 9608 Data Rate 19200
41. involves a simple table lookup to see if a mapping of the Symbolic Name to its IP Address information exists Configuration of this table is described as the third scenario in the Name Assignment section of this Appendix DDP Name Resolution If Local Table Name Resolution fails DDP a GE Fanuc Naming protocol is used to dynamically resolve the Symbolic Name This resolution is performed by having the client node broadcast a message on the network asking if anybody recognizes a particular name If someone does recognize the name they respond and supply the associated IP address The client can then proceed with communication directly to that IP address DDP uses broadcast traffic to perform name resolution Certain routing configurations do not support routing of broadcast traffic which implies that DDP Name Resolution will not work over such routers DNS Name Resolution If DDP Name Resolution fails DNS is attempted This protocol is an industry standard for resolving symbolic names to IP Addresses The format of DNS usage is defined by RFC 1034 and 1035 Our implementation conforms to the industry standard A DNS server is required for this operation To use DNS Name Resolution the IP address of the remote DNS Name Server must be supplied to the Ethernet Interface in the PLC configuration The symbolic name must be defined at the DNS Name Server device Name Usage Various areas of the PLC system support the use of this naming architec
42. memory local to the Ethernet Interface This does not indicate that the Ethernet Interface has processed the only that it has been received by the Ethernet Interface Barring ladder programming errors the OK and FT outputs should not both be set in the same scan by the same FT Output of the COMMREQ Function Block This output is set if there is a programming error in the Function Block itself if the rack and slot specified the COMMREQ Task parameter is not configured to contain an Ethernet Interface or if the data block length specified in the Command Block is out of range This output also may indicate that no more COMMREO functions can be initiated in the ladder program until the Ethernet Interface has time to process some of the pending COMMREQ functions If the FT Output is set the CPU does not transfer the Command Block to the Ethernet Interface In this case the other status indicators are not updated for this COMMREQ Status Bits The status bits are updated in the CPU once each PLC scan by the Ethernet Interface These bits are generally used to prevent initiation of a COMMREQ function when certain errors occur or to signal a problem on an established channel The status bits include the LAN Interface Status bits and the Channel Status bits The starting location of these bits is user configurable See Chapter 2 for more information The LAN Interface Status bits monitor the healt
43. no responsibility for the accuracy completeness sufficiency or usefulness of the information contained herein No warranties of merchantability or fitness for purpose shall apply Thefollowing are trademarks of GE Fanuc Automation North America Inc Alarm Master Field Control Modelmaster Series One CIMPLICITY GEnet PowerMotion SeriesSix CIMPLICITY Control Genius ProLoop Series Three CIMPLICITY PowerTRAC Genius PowerTRAC PROMACRO VuMaster CIMPLICITY 90 ADS Helpmate Series Five Workmaster CIMSTAR Logicmaster Series 90 Copyright 1995 1997 GE Fanuc Automation North America Inc Rights Reserved Preface Content of This Manual Chapter 1 Chapter 2 Chapter 3 Chapter 4 Appendix A Appendix Appendix C Appendix D Appendix E Introduction Discusses the TCP IP Ethernet Interface its communications capabilities and generally how to get your system running Also included is a quick guide to the manual Installing the TCP IP Ethernet Interface Describes the basic features of the TCP IP Ethernet Interface the installation and power up of the Inter face and a procedure for the initial checkout of the Interface on your Ether net cable Programming Communications Requests Describes the ladder program ming necessary for communications between PLCs Troubleshooting Describes troubleshooting and problem isolation for the Ethernet Interface Glossary of Terms Communications Port Characteristics Advan
44. of the LAN Interface Status bits monitors the health of the Ethernet Interface If it is OK to send a COMMREQ the HEALTHY coil is ON HEALTHY is used as an interlock for Rungs 3 6 Rung 2 Input BEGREAD triggers READREQ which enables execution of the MOVE and COMMREO functions READREQ is a one shot coil activating once when BE GREAD transitions from OFF to ON Rung 3 The MOVEWORD function moves a zero to the CRS word referenced in the Command Block see rung 4 This clears the CRS word This rung also resets the FT output coil of the Function Block in rung 6 It is vital that the CRS Status Word be cleared and the COMMREO fault output coil be cleared each time before initiating a COMMREO function Rungs 4 5 The BLKMVINT functions set up the COMMREO Command Block con tents When these rungs are activated the constant operands are moved into the memory beginning at the address indicated in the instruction The constant operands in this example are defined in the Establish Read Channel Example in Section 3 of this chapter Rung 6 The COMMREO Function Block has 3 input parameters and one output pa rameter The IN field points to the starting location of the Command Block parameters 00301 in this example Chapter 3 Programming Communications Requests 3 43 m The SYSID field of the COMMREO Function Block defines the target rack and slot of the Ethernet Interface to receive the command data The firs
45. on your particular application any of several types of user supplied transceivers may be used Typical configurations for 10Base2 thin wire and 10BaseT twisted pair and a configuration with an AAUI to AUI adapter for connection to 10Base5 thick wire and 10BaseF fiber optic are shown in the following figures Note Transceivers must be 802 3 compatible and must have the SQE option Enabled PLC power must be OFF when connecting or disconnecting the transceiver a45486 10 BASE 2 COAXIAL BNC BNC CABLE CONNECTOR CONNECTOR TRANSCEIVER CABLE TO ETHERNET INTERFACE lt RJ 45 CONNECTOR Figure B 3 10Base2 Transceiver Configuration with Detachable Transceiver Cable Avail able as GE Fanuc Part Number IC649AEA101 GFK 1084B Appendix BCommunications PortsCharacteristics B 7 LED a45487 10 BASE 2 COAXIAL CONNECTOR CABLE CONNECTOR TRANSCEIVER CABLE TO ETHERNET INTERFACE EE Figure B 4 10Base2 Transceiver Configuration with Built in Transceiver Cable a45488 fe 10 BASE 2 CONNECTOR CABLE TRANSCEIVER CABLE TO ETHERNET INTERFACE 44 Figure B 5 10Base2 Transceiver Configuration using BNC Connector B 8 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B TRANSCEIVER CABLE ETHERNET INTERFACE e a45490 10 BASET RJ 45 CABLE CONNECTOR Figure B 6 10BaseT Transceiver Configuration 45489
46. still complete even after a timeout occurs As a result an application can choose what to do if one occurs If the timeout value is specified as zero no timeout errors will be reported For most applications a timeout need not be specified because the read period in effect acts as a timeout Word 12 should be zero for no timeout However there are two special circumstances in which specifying a timeout is recommended m When the number of time units word 11 is zero so that a subsequent transfer will be issued as soon as the previous transfer completes and no period errors are reported In this case a timeout value can be specified so that timeout errors will be reported by the Channel Error bit TCP IPEthernet Communications User s Manual August1997 GFK 1084B 1084 When the read period is very long minutes or hours In this case shorter timeout value can be specified so the application doesn t have to wait for the read period to expire before taking action Word 13 Local PLC Memory Type Words 13 14 specify the location in the local PLC where the Ethernet Interface will store data received from the remote PLC The size of this area is set by the size of the data read from the remote PLC Word 17 The user is responsible for assuring that this area is large enough to contain the requested data without overwriting other application data Valid memory types are listed in Table 3 2 Table 3 2 Series 90 PLC Mem
47. 0 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 00000 0000 Length of Channel Command Data Block 45 53 words Always 0 no wait mode request Memory type of CRS word R CRS word address minus 1 R10 Reserved Reserved Establish Write Channel Command number Channel number 6 Number of write repetitions write indefinitely Time unit for write period 3 seconds Number of time units for write period every 7 seconds Timeout for each write 500 ms Local PLC Memory type from which to write data R Local PLC Starting address from which to write data 50 Remote PLC Memory type at which to store data R Remote PLC Starting address at which to store data R50 Remote PLC Number of memory units 8 registers Remote PLC Network address type 3 Symbolic Name Remote PLC Network address length in words 32 Remote PLC Network address name char 1 2 PL Remote PLC Network address name char 3 4 C_ Remote PLC Network address name char 5 6 1a Remote PLC Network address name char 7 8 a Remote PLC Network address name char 9 10 Remote PLC Network address name char 11 12 Remote PLC Network address name char 13 14 Remote PLC Network address name char 15 16 Remote PLC Network address name char 17 18 Remote PLC Network address name char 19 20 Remote PLC Network address name char 21 22
48. 18 specifies the format of the remote PLC address In this release Word 18 must contain the value 1 or3 A value of 1 indicates a dotted decimal IP address expressed using a separate register for each decimal digit A value of 3 indicates a Network Address name See Example 1 for information on using address type 1 Word 19 Network Address Length Word 19 specifies the length in words of the remote PLC Network Name address With an address type of 3 specified Word 19 must contain 32 Words 20 35 Network Address Name Works 20 35 specify the Network Address name of the remote PLC as an ASCII character string The Network Address name may contain up to 31 characters is case sensitive and must be terminated with a null An error will result if the Network Address name is empty or if the name could not be resolved into the address of an actual device The Network Address name must have each pair of ASCII characters reversed within the PLC memory For example the name PLC 1aa P 50H L 4cH C 43H 40H 1 31H 61H a 61H would have 4c50H in Word 20 4043H in Word 21 6131H in Word 22 and 0061H in Word 23 Words 24 35 all contain 0000H Note The Network Address name of the remote PLC must be defined in the Name Table in this Ethernet Interface or be defined as the Network Address name of the remote PLC or else be defined at a reachable DNS Name Server See Appendix F for more information Word
49. 1997 lt lt RUNG 1 gt gt LANIFO HEALTHY ME 63 lt lt RUNG 2 gt gt BEGREAD READREQ I lt lt RUNG 3 gt gt HEALTHY READREQ CMROFLT t ivt MOVE_ R WORD CONST 0 800010 0000 100001 lt lt RUNG 4 gt gt HEALTHY READREQ I t BLKMV BLKMV BLKMV INT INT WORD CONST IN1 0 800301 CONST Q4 R00308 CONST IN1 Q R00315 00017 00005 00008 CONST IN2 CONST IN2 CONST IN2 00000 00010 00050 CONST IN3 CONST IN3 CONST IN3 00008 00003 00008 CONST IN4 CONST IN4 CONST IN4 00009 00004 00001 CONST IN5 CONST IN5 CONST IN5 00000 00050 00004 CONST IN6 CONST IN6 CONST IN6 00000 00008 00003 CONST IN7 CONST IN7 CONST IN7 02003 00100 00000 1084 1084 lt lt RUNG 5 gt gt HEALTHY READREQ I mele BLKMV INT CONST IN1 Q R00322 00000 CONST IN2 00001 CONST IN3 00000 CONST IN4 00000 CONST IN5 00000 CONST IN6 00000 CONST IN7 00000 lt lt RUNG 6 gt gt HEALTHY READREQ 11 COMM_ REQ CMRQFLT R00301 IN FT S CONST 0004 SYSID CONST 5 00000000 Rung 1 Input LANIFOK bit 16
50. 711H Backplane drivernotinitialized 2a11H The backplane driver could not access the PLC 2b11H Invalid binding on the message sent to the backplane driver 2c11H The message could not be sent to its destination because the mailbox was not open 2d11H The maximum number of transfers to the destination is already taking place 2e11H The maximum number of transfers of this transfer type is already taking place 2f11H Cannot obtain backplane transfer buffer 3011H Cannot obtain resources other than backplane transfer buffers 3111H Connection ID or block transfer ID is not valid 3211H Timed out waiting for PLC CPU response 3311H The PLC CPU aborted the request 3411H Aninvalid message type was specified 3511H The specified task is not registered 3611H The mailbox offset specified is invalid 3a11H More than the allowable byte length in a single transfer 3b11H Bad sequence number in the request 3cl1H Invalid command in request 3f11H Request failed due to error on remote device most likely running out of Dual Port RAM textbuffers fellH Request failed due to mailbox error on remote device The remote device log will have more information Chapter 3 Programming Communications Requests 3 39 3 40 Table 3 7 Minor Error Codes for Major Error Code 90H at Client PLC Error Status Application Interface Error Descri
51. 84B the COMMREO function and then check for a non zero value indicating that the Ethernet Interface is responding to the COMMREQ good way to do this is to use a MOVE WORD function block to zero the CRS word 3 Astatus code of 1 in the low byte and 0 in the high byte indicates that the request was successful All other non zero values indicate errors Refer to the tables below for a complete listing of major and minor error codes The following tables list the error codes that are reported the COMMREQ Status word after the execution of a COMMREO function These codes also may appear in Word 1 of the Detailed Channel Status words Table 3 4 Major Error Codes Error Status Hexadecimal Major Error Description 01H SuccessfulCompletion This is the expected completion valuein the COMMREO Status word 02H InsufficientPrivilege atserver PLC For a Series 90 70 server PLC the minorerror code contains the privilege level required for the service request 04H ProtocolSequence Error The server CPU has received a message that is out of order Call GE FanucAutomationforassistance 05H Service Request Error at server PLC The minor error code contains the specificerror code See table of Minor Error codesbelow 06H IllegalMailbox Type at server PLC Servicerequestmailbox type is ei ther undefined or unexpected Call GE FanucAutomationforassistance 07H Theserver PLC CPUsService Reques
52. 90 30 90 20 MICRO v6 01 Page Ree ee hee ehe hehe hehe heh hehe hehe heh She he She he She he heh he he She he Se he Se he Se Se e e Se Se Se he he Se ce Se hc e e ERK KR KK KK KKK 2 BLOCK _ BLOCK SIZE BYTES 945 DECLARATIONS ENTRIES 37 HIGHEST REFERENCE USED INPUT I 10056 OUTPUT 0 NONE INTERNAL M NONE GLOBAL DATA G NONE TEMPORARY T 0020 REGISTER R 80218 ANALOG INPUT AI NONE ANALOG OUTPUT AQ NONE Ce FI m x 0 A m A eee e e ee e e e e ehe e e e ee KEK KK e eee ee IK IK IK IK Program CHAN4 Appendix D Sample Ladder Programs C LM90 LAN CHAN4 Block _MAIN D 19 07 20 95 07 57 START OF LD PROGRAM 4 VARIABLE DECLARATIONS VARIABLE GE FANUC SERIES 90 30 90 20 MICRO 1 cc 1 DECLARAT v6 01 Page 3 ION TABLE REFERENCE NICKNAME REFERENCE DESCRIPTION 10039 S2_FUSE Fuse blown for Serial Port 2 10040 AI_FUSE Fuse blown for AAUI Port 10045 _ Bit set LAN OK 10046 RSOURCE Set if resource problem 10048 LANIFOK LAN Interface OK 10049 XFER_1 Successful Data Transfer 10050 CH1_ERR Error detected on Channel 1 810051 XFER 2 Successful Data Transfer
53. AC 30 W 0 PWR321 SERIES 90 30 MODULE IN RACK 0 SLOT 1 SOFTWARE CONFIGURATION SLOT Catalog IC693CPU331 SERIES 90 30 CPU MODEL 331 1 CPUS31 IOScan Stop NO Baud Rate 19200 Pwr Up Mode LAST Parity t ODD Logic Cfg RAM Stop Bits 1 Registers RAM Modem TT 0 1 100 Second Count Passwords ENABLED Idle Time 10 Seconds Chksum Wrds 8 Sweep Mode NORMAL Tmr Faults DISABLED Sweep N A msec Folder C LM90 LAN LANRDWT Slot D 4 TCP IP Ethernet Communications User s Manual August 1997 1084 07 17 9 5 16 47 GE FANUC SERIES 90 30 90 20 v6 01 Page 4 SERIES 90 30 MODULE IN RACK 0 SLOT 2 SLOT 2 CMM321 ETHNET Catalog IC693CMM321 SOFTWARE CONFIGURATION ETHERNET INTERFACE Config Mode Status Address Status Length Address Subnet Mask Gateway IP Address Name Server IP Address TCP IP 10033 80 oooo oooo Note Default IP Address 0 0 0 0 requires network BOOTP server SERIES 90 30 MODULE IN RACK 0 SLOT 2 SLOT 2 CMM321 ETHNET Folder Catalog IC693CMM321 SOFTWARE CONFIGURATION ETHERNET INTERFACE Station Mgr Port Data Rate 9600 Parity NONE Stop Bits 1 Flow Contrl NONE TurnA Delay NONE Timeout LONG C LM90 LAN LANRDWT GFK 1084B Appendix D Sample Ladder Programs PORT CONFIGURATION S W Load Po
54. ATION Catalog ETHERNET INTERFACE Config Mode TCP IP Status Address 10081 Status Length 88 IP Address 8 8 8 8 Subnet Mask 8 8 0 8 Gateway IP Address 8 8 8 8 Server IP Address 8 8 8 8 Note Default IP Address 8 0 8 0 requires a network BOOTP server lt lt More Config Data Exists PgDn for Next Page PgUp for Previous Page gt gt OFFLINE NLHSBNTEST1 PRG TEST1 CONFIG VALID REPLACE Configuration Mode This is currently fixedasTCP IP Status Address The Status Address is the location of the LAN Interface Status LIS bits 16 bits and the Channel Status bits 64 bits The Channel Status bits are always located immediately following the LAN Interface Status bits Note Do not use the 80 bits assigned to the LIS bits and Channel Status bits for other purposes or your data will be overwritten Status Length This is fixed at 80 bits the sum of the LIS bits and the Channel Status bits IP Address Subnet Mask Gateway Address and Name Server IP Address The values for the IP Address Subnet Mask and Gateway Address should be assigned by the person in charge of your network the network administrator TCP IP network administrators are familiar with these parameters It is important that these parameters are correct other wise the Ethernet Interface may be unable to communicate on the network and or net work operation may be corrupted It is especially important that
55. Base2 Transceiver Configuration with Built in Transceiver Cable 10Base2 Transceiver Configuration using BNC Connector 10BaseT Transceiver Configuration Network Configuration Using a Subnet Software Loader Cable Assembly 690 901 TCP IP Ethernet Communications User s Manual August 1997 Contents 5 7 A B 8 2 B 8 2 9 AAUI to AUI Adapter Can be used to connect to 10Base5 shown above or 10BaseF IP Address Format for Network Classes Connecting Two Networks with a Gateway B 9 25 1 n C2 2 C 3 viii Contents Table 2 1 Problems During 2 17 2 19 Table 3 1 Time Unit Valuesfor Read Write Repetition Period 3 12 Table 3 2 Series 90 PLC Memory Types 3 13 Table 3 3 Status Bits LIS Bits and Channel Status Bits 3 34 Table 3 4 Major Error 3 37 Table 3 5 Minor Error Codes for Major Error Codes 05H at Remote Server PLC and S5E1 at Client PEG 25 ire be etel dain D TU Sa ons 3 38 Table 3 5
56. C is used here to identify the client PLC the PLC that initiates the communications request The term remotePLC is used here to identify the serverPLC the PLC that respondsto the request GFK 1084B Example 2 Command Block Example using a Network Address name This example is the same as example 1 except that the Network Address name of the Remote PLC PLC 1aa is used instead of its IP address For more information on Network Address names see Appendix E Establish a write channel channel 6 to a remote PLC at IP address 3 0 0 1 Return the Status word to 10 Write local PLC registers R50 R57 to remote PLC registers R100 R107 Repeat the write indefinitely once every 7 seconds with a timeout of 500 ms for each write Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word 7 Word 8 Word 9 Word 10 Word 11 Word 12 Word 13 Word 14 Word 15 Word 16 Word 17 Word 18 Word 19 Word 20 Word 21 Word 22 Word 23 Word 24 Word 25 Word 26 Word 27 Word 28 Word 29 Word 30 Word 31 Word 32 Word 33 Word 34 Word 35 Word 36 51 Dec Hex 00045 002d 00000 0000 00008 0008 00009 0009 00000 0000 00000 0000 02004 0744 00006 0006 00000 0000 00003 0003 00007 0007 00050 0032 00008 0008 00050 0032 00008 0008 00100 0064 00008 0008 00003 0003 00032 0020 19536 4c50 16451 4043 24881 6131 00097 0061 00000 0000 00000 0000 00000 000
57. CONST IN1 0 80212 00000 CONST IN2 00005 CONST IN3 00000 CONST IN4 00000 CONST IN5 00000 CONST IN6 00000 CONST IN7 00000 Program CHAN4 C LM90 LAN CHAN4 GFK 1084B Appendix D Sample Ladder Programs Block _MAIN D 25 D 26 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 9 RIAA kk k k k ko ke kk kk eoe ke ke ee PWR DLY activates a 2 second timer This timer provides a delay for the Ethernet Controller to complete diagnostics if power is cycled on the rack DOREADS is set one shot to initiate the function lt lt RUNG 14 STEP 0035 gt gt PWR_DLY DOREADS ST0016 T0009 TMR 10 103 CONST PV 00020 80011 lt lt RUNG 15 STEP 0038 gt gt DOREADS PWR_DLY TO009 T0016 MOVE_ R WORD RDiCRSW CONST IN 0 80001 0000 LEN 100004 LANIFOK transitions from 0 gt 1 restart all channel read commands CRRA AAA RAR ARAKI KR RR KR kck RRR kck ck k RR RR RR KK RY lt lt RUNG 17 STEP 0042
58. CONST IN4 CONST IN4 00002 00001 00001 CONST IN5 CONST IN5 CONST IN5 00000 00500 00004 CONST IN6 CONST IN6 CONST IN6 00000 00008 00003 CONST IN7 CONST IN7 CONST IN7 02003 00321 00000 lt lt RUNG 10 STEP 0023 gt gt lt gt BLKMV lt gt INT CONST Q4 R0182 00000 CONST IN2 00004 CONST IN3 00000 CONST IN4 00000 CONST IN5 00000 CONST IN6 00000 CONST IN7 00000 Program CHAN4 C LM90 LAN CHAN4 Block _MAIN TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 8 lt lt RUNG 11 STEP 0026 gt gt lt gt BLKMV BLKMV BLKMV lt gt CONST IN1 0 80191 CONST IN1 0 80198 CONST IN1 0 80205 00017 00004 00008 CONST IN2 CONST IN2 CONST IN2 00000 00000 00200 CONST IN3 CONST IN3 CONST IN3 00008 00003 00010 CONST IN4 CONST IN4 CONST IN4 00003 00001 00001 CONST IN5 CONST IN5 CONST IN5 00000 00500 00004 CONST IN6 CONST IN6 CONST IN6 00000 00008 00003 CONST IN7 CONST IN7 CONST IN7 02003 00331 00000 lt lt RUNG 12 STEP 0031 gt gt PWR_DLY f 0016 lt gt BLKMV S INT
59. Channel command to be per formed For information on how to fill in the Channel command information see Sec tion 3 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Section 3 Channel Commands This section describes the Channel Commands A detailed description and example of each channel command is included There are five Channel Commands Establish Read Channel Establish Write Channel Send Information Report Abort Channel Qr ue de d Retrieve Detailed Channel Status Establishing a Channel The Ethernet Interface transfers data to or from another PLC using a channel There are two channel commands for transferring data between PLCs m Establish Read Channel m Establish Write Channel The Ethernet Interface also transfers data to a host another computer on the network which is running Host Communications Toolkit HCT software There is one channel command for transferring data to a host computer m Send Information Report These Channel Commands are based on the concept of periodic data transfers The client local PLC uses a single COMMREO function to establish a channel connection to a server remote PLC and to request that specific data be periodically transferred between the PLCs Note To simplify the discussion of the Command Blocks we make the assumption that the operator programmer is local to the client PLC and the server is remote from this operator programmer The Ethe
60. D_ERR to restart the read write sequence Note The CRSW can assume a value that is represented as a negative j integer Therefore you must check for not equal to 1 rather than greater than 1 A k k k a k k Program LANRDWT C LM90 LAN LANRDWT Block _MAIN TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B GFK 1084B 07 20 95 07 58 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 8 lt lt RUNG 14 STEP 40030 gt gt ALW ON RD ERR 550007 T0003 NE 5 INT RD_CRSW R0001 11 Q4 INT RD_CRSW CONST 12 80001 11 0 00000 CONST I2 00001 gt If WT CRSW 1 COMREQ complete without error Set WRT OK on one shot t 5 issue Read Channel Command CBR eoe ee eoe dee E E EE EOS CE HB EE E lt lt RUNG 16 STEP 0035 gt gt ALW ON OK 50007 10005 E Er EOL INT WT CRSW 80002 11 Q CONST I2 00001 BREA RR RR RRR ARR RR RRR RR RR KARA TERE RRR ERE RRR ERR If WT CRSW is not equal to 0 and not equal to 1 an error occurred y processing the COMREQ Set WRT_ERR to restart the write read sequence
61. Ethernet IC641SWP313 with CIMPLICITY Control IC641CTL9xx and with applications developed using the Host Communications Toolkit IC641SWP05x GE Fanuc offers the Host Communications Toolkit separately from the Ethernet Interface The Ethernet Interface for the Series 90 30 PLC has client server capability As a cli ent it can initiate communications with other Series 90 PLCs containing Ethernet Inter faces This is done from the PLC ladder program using the COMMREQ function As a server it responds to requests from other devices such as Logicmaster 90 30 TCP IP Ethernet a Host computer running a Host Communications Toolkit application or another Series 90 PLC acting as a client No PLC programming is required for server operation Figure 1 1 shows the Series 90 30 PLC in a basic Ethernet Communications System Ethernet Cable a45694 Transceiver Transceiver Transceiver Transceiver _ Transceiver Network Network Connection Nid Connection Series 90 305 Series 90 205 PLC Ethernet PLC Ethernet Interface Interface Series 90 705 Interface ES Dera ean Host Computer or CIMPLICITY Control or Control Device Running a Logicmaster 90 TCP IP Host Communications Ethernet ru
62. Ethernet Interface Installation Use the following instructions as a guide when inserting a module into a slot in a baseplate These instructions assume that the power suppy on the baseplate is to your left Do not insert or remove modules with power applied This could cause the PLC to Stop damage the module or result in personal injury Be sure the Series 90 30 PLC baseplate power is OFE Align the module with the desired base slot and connector Tilt the module upwards so that the top rear hook of the module engages the slot on baseplate Swing the module downward until the connectors mate and the lock lever on the bottom of the module snaps into place engaging the baseplate notch 2 6 TCP IPEthernet Communications User s Manual August1997 GFK 1084B 4 Visually inspect the module to be sure that it is properly seated 5 Remove the front cover of the Interface 6 Connect the transceiver cable into the 14 pin AAUI Port of the Ethernet Interface Secure the cable The other end of the transceiver cable should be connected to an external IEEE 802 3 compatible transceiver which is attached to the Ethernet network If the transceiver has a switch or jumper for SQE it must be enabled Note The transceiver cable may be built in to the transceiver or removable 7 Replace the front cover and restore power to the baseplate 8 Use Logicmaster software CIMPLICITY Control or a Hand Held Programmer to stop the CPU 9 Continue wit
63. If the problem persists replace the Interface or PLC hardware Slowblink Restartbutton pressed m Connect a PC Software Loader and LAN Slowblink for 5 10 seconds load new software See Appendix SER Slowblink Software Station Manager LOAD 3 STAT Slowblink Loader commandissued Cycle power or press Restart All LEDs blink in unison Software corrupt button again for less than 5 seconds torestart the Interface and clear the load request OK Slowblink C Did not configure slot Useconfiguration software to Q LAN Off m New CPU with no configure the Interface then store SER Off Waitingfor configuration the configuration to PLC CPU STAT Off Configuration Condition can lasta maxi Make ps is in the correct from PLC mum of 2 minutes slot on the baseplate Power cycle the PLC PLCinSTOP FAULT m Clear faults and reset Interface Slowblink D Interface s IP address has m Configure the Interface with a Q LAN On Taffic Off not been configured or has non zero IP address Q SER Off Slowblink Waiting forIP been configured as 0 0 0 0 w Use a BOOTP server to provide STAT Slowblink Address Interface with a non zero IP address OK and STAT blink in unison Slowblink m Restartbutton pressed If you did not intend to enter LAN On Taffic Off for more than 10 Maintenance press the Restart 2 s
64. Interface does not have free memory to process communications User Action If problem persists contact GE Fanuc Automation LANduplicateMAC Address resuming A frame was received in which the source MAC Address was the same as this station s MAC Address Allstations on a network must have a uniqueMAC address Immediately isolate the offending station it may be necessary to turn it off or disconnect it from the network This station remains Online unless you intervene to take it Offline Chapter 4 Troubleshooting 4 3 4 4 Table 4 1 PLC Fault Table Descriptions Continued PLC Fault User Action LANI F can t init check parms running soft Sw utl Internal system error User Action If problem persists contact GE Fanuc Automation LANI Fcapacityexceeded discarded re quest Verify that connection limits are not being exceeded LANinterface hardware failure switched off network User Action Replace Ethernet Interface LAN network problem exists perfor mancedegraded Excessive backlog of transmission requests due to excessive traffic on the network For a sustained pe riod the MAC was unable to send frames as quickly as requested User Action If problem persists con tact GE Fanuc Automation LANseverenetwork problem attempting recovery External condition prevented transmission of frame in specified timeframe Could be busy network or network problem
65. LM90 LAN CHAN4 TABLE OF CONTENTS GFK 1084B Appendix D Sample Ladder Programs D 33 Appendix PC Software Loader E The GE Fanuc Series 90 30 Ethernet Interface has its operating firmware stored in FLASH memory as opposed to EPROMS Firmware upgrades for this board are provided on floppy disk The PC Software Loader utility controls downloading the new firmware from the floppy to the FLASH memory This utility requires an IBM AT PC compatible computer with at least 640K RAM one 3 5 inch floppy drive MS DOS 3 3 or higher and one RS 232 serial port This utility functions optimally with a hard drive with at least 1 Mbyte available space To install the new firmware perform the following steps 1 Stop the PLC CPU This will allow any existing channels to be terminated gracefully 2 Hold the Reset button on the Series 90 30 Ethernet Interface until the bottom LED STAT turns ON Upon releasing the button diagnostics are run and then all 4 LEDs will blink in unison This signifies that the Interface is in the Software Loader state 3 Connect the serial port of your computer to the Software Loader Port of the Ethernet Interface with the cable assembly shown below You must use a port marked COM1 or COM2 See Appendix for more information TO THE SOFTWARE LOADER PORT ON THE ETHERNET INTERFACE HE693SNP232 SNP TO RS232 ADAPTER Part Number 9 Female Connector 25 Female Connecto
66. PLC memory location of the CRS word Word 3 COMMREQ Status Word Pointer Memory Type This word specifies the memory type for the CRS word The memory types are listed in the table below Type Value Value Description Decimal Hex 8 08h Register memory word mode AI 10 0Ah Analog input memory word mode 12 OCh Analog output memory word mode 16 10h Discrete input memory byte mode 70 46h Discrete input memory bit mode Q 18 12h Discrete output memory byte mode 72 48h Discrete output memory bit mode 20 14h Discrete temporary memory byte mode 74 4Ah Discrete temporary memory bit mode 22 16h Discrete momentary internal memory byte mode 76 4Ch Discrete momentary internal memory bit mode G 56 38h Discrete global data table byte mode 86 56h Discrete global data table bit mode Word 4 COMMREQ Status Word Pointer Offset This word contains the offset within the memory type selected The status word pointer offset is zero basednumber For ex ample if you want R1 as the location of the CRS word you must specify a zero for the offset The offset for R100 would be 99 Note however that this is the only zero based field in the Channel commands For information on the contents of the Status word see Section 4 Word 5 Reserved Set to zero Word 6 Reserved Set to zero Words 7 and up Data Block The Data Block defines the
67. Parity NONE Parity ODD Stop Bits 1 Stop Bits 1 Flow Contrl NONE Flow Contrl NONE TurnA Delay NONE Turnf Delay NONE Timeout LONG Timeout LONG lt lt More Config Data Exists PgDn for Next Page PgUp for Previous Page gt gt OFFLINE NLHSBNTEST1 PRG 5 1 CONFIG VALID REPLACE GFK 1084B Chapter 2 Installing the Ethernet Interface 2 11 2 12 The Logicmaster 90 30 Configurator also allows you to optionally configure the Data Rate Parity Stop Bits Flow Control Turn around Delay and Timeout for each of the two serial ports Station Manager Port and Software Loader Port The defaults for both ports are shown on the previous screen Data Rate Data rate bits per second or bps for the port Choices are 300 600 1200 2400 4800 96001 or 19200 Parity of parity to be used for the port Choices NONE EVEN or ODD Stop Bits Enter the number of stop bits Choices are 1 t or 2 Flow Control Type of flow control to be used for the port Choices are HARDWARE or NONE T Turnaround Delay Turnaround delay time to be used for the port Choices are NONE 10 ms 100 ms or 500 ms Timeout Length of timeouts used for the port Choices are LONG T MEDIUM SHORT or NONE Default selection for the Software Loader Port Default selection for the Station Manager Port 6 Press the Escape key to return to the rack display Press Escape again to save the configuration to disk
68. Q RS_CH2 T0018 RD2CRSW CONST 0 80002 80131 IN FT 0000 LEN RESTART 100001 8 0014 CONST SYSID 0002 CONST TASK 00000000 lt lt RUNG 35 STEP 0097 gt gt DOREADS LANIFOK CR3_ERR TO009 10048 8 0012 4 MOVE_ _ 5 WORD RS_CH3 0019 RD3CRSW CONST 0 80003 80161 IN FT 0000 LEN RESTART 100001 8 0014 T CONST SYSID 0002 CONST 00000000 Program CHAN4 C LM90 LAN CHAN4 Block _MAIN Appendix D Sample Ladder Programs D 31 07 20 95 07 57 FANUC SERIES 90 30 90 20 MICRO v6 01 Page 43 lt lt RUNG 36 STEP 0104 gt gt DOREADS LANIFOK CR4_ERR 70009 10048 T0013 I MOVE_ COMM_ S WORD REQ RS_CH4 8 0020 RD4CRSW CONST 0 80004 80191 IN FT 0000 LEN RESTART 100001 8 0014 CONST SYSID 0002 CONST 00000000 END OF PROGRAM LOGIC Program CHAN4 C LM90 LAN CHAN4 Block _MAIN D 32 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B B 07 20 95 07 57 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Contents 1 LOGIC TABLE OF CONTENTS Ut eee CHAN4 1 _MAIN 2 Variable Table 3 Logic 4 Program CHAN4 C
69. R50 R57 to remote host Repeat the send 10 times once every 7 seconds with a timeout of 500 ms for each read Word1 00017 0011 Word 2 00000 Length of Send Information Report Data Block 17 words Always 0 no wait mode request Word3 00008 Memory type of CRS word R Word4 00009 0009 CRS word address minus 1 R10 Word 5 00000 0000 Reserved Word6 00000 Reserved Word7 02010 07DA Send Information Report Channel Command number Word8 00007 Word9 00010 Word 10 00003 Word 11 00007 Word 12 00050 0007 Channel number 7 000A Number of repetitions send 10 times Time unit for send period 3 seconds Minimum interval between host accesses every 7 seconds Timeout on each individual transfer response 500 ms Word 13 00008 Local PLC Memory type from which to send data R Word 14 00050 Local PLC Starting address from which to send data 7650 Word 15 00008 0008 Local PLC Number of memory units 8 registers Word 16 00000 0000 Reserved Word 17 00000 Reserved Word 18 00001 Remote Network address type IP Address Word 19 00004 Remote Network address length in words 4 Word 20 00003 Remote Host Register 1 of IP address 3 Word 21 00000 Remote Host Register 2 of IP address 0 Word 22 00000 0000 Remote Host Register 3 of IP address 0 Word 23 00001 0001 Remote Host Register 4 of IP address 1 Word 4 CRS word address is the only zero base
70. RDWT TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B GFK 1084B 07 20 95 07 58 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page Ree ee hee ehe hehe hehe heh hehe hehe heh She he She he She he heh he he She he Se he Se he Se Se e e Se Se Se he he Se ce Se hc e e ERK KR KK KK KKK 2 BLOCK _ BLOCK SIZE BYTES 604 DECLARATIONS ENTRIES 24 HIGHEST REFERENCE USED INPUT I 10048 OUTPUT 0 NONE INTERNAL M NONE GLOBAL DATA G NONE TEMPORARY T 0014 REGISTER R 80158 ANALOG INPUT AI NONE ANALOG OUTPUT AQ NONE Ce FI m x 0 A m A ee e e he e e ee ee eee KEK KEK e e KK Program LANRDWT Appendix D Sample Ladder Programs C LM90 LAN LANRDWT Block _MAIN D 7 07 20 95 07 58 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page 3 START OF LD PROGRAM LANRDWT 1 VARIABLE DECLARATIONS VARIABLE DECLARATION TABLE REFERENCE NICKNAME REFERENCE DESCRIPTION 10039 S2 FUSE Fuse blown for Serial Port 2 10040 AI FUSE Fuse blown for AAUI Port 10045 LAN OK Bit set LAN OK 10046 RSOURCE Set if resource problem 10048 LANIFOK LAN Interface OK 10049
71. RS word is updated before the Channel Error bit is set to 1 Monitoring the Data Transfer Bit Typically you will set up a channel to perform repetitive reads or writes The Data Transfer bit pulses 0 1 0 each time there is a successful read or write This be an indicator to the ladder program to move the most recent data to another location The Data Transfer bit for a channel is not meaningful until after the Ethernet Interface updates the CRS word confirming the Read or Write command for that channel Do not use data received from a server until the CRS word confirming the Read command for that channel is 1 or the Data Transfer bit goes to 1 Do not assume that when the Data Transfer bit goes to 1 that a transfer has just completed during the last scan The Data Transfer bit is not closely synchronized in time with the transfer The bit only indicates that a transfer has occurred in a past scan A rising edge on the Data Transfer bit indicating that a transfer has completed successfully does not guarantee that the next transfer has not begun or completed GFK 1084B Chapter 3 Programming Communications Requests 3 45 Sequencing Communications Requests If the Ethernet Interface receives Command Blocks from the PLC faster than the Inter face can process them the Interface will log an exception event 08 Entry 2 0024 and will log the PLC Fault Table entry Backplane Communications with PLC Fault Lost Request Only o
72. Request 4 4 Data lt A Data Data Data a 4 Pulse Data Transfer bit Data Transfer _ pulse received n n Figure 3 2 Operation of the Communications Request for an Establish Read Channel Command 1 ACommunications Request begins when there is power flow to a COMMREO func tion in the client PLC At this time the Command Block data is sent from the PLC CPU to the Ethernet Interface 2 For the Establish Read Channel Channel command the COMMREO Status word CRS word is returned immediately if the Command Block is invalid If the syntax is correct then the CRS word is returned after the first significant event upon failure to establish a channel correctly and in a timely manner or upon the first successful trans fer of data Once the channel is successfully set up to the server PLC the Ethernet Interface performs the periodic reads as specified in the Command Block GFK 1084B Chapter 3 Programming Communications Requests 3 5 Section 2 The COMMREQ Function Block and Command Block This section describes the programming structures common to all Communications Requests the Function Block and the Command Block The COMMREO Function Block The Communications Request is triggered when the logic program passes power to the COMMREO Function Block For the Series 90 30 PLC the COMMREO Function Block has four inputs and two outputs Enable Command Block Pointer Rack SlotLocation
73. TYPE IDENTIFIER DESCRIPTION CHAN4 PROGRAM NAME BLOCK DECLARATIONS START OF PROGRAM LOGIC Overview This program establishes 4 channels start up from 90 30 to 4 different 90 30 or 90 70 TCP IP Ethernet Interfaces and issues reads on each channel every second This example may be customized for a variety of applications This program automatically restarts the read command if an error is detected on a channel and automatically restarts the read command if the Ethernet Controller is restarted Note If you plan to establish 16 channels on start up the error handling code must explicitly issue an abort command for a channel in error because you are limited to 17 COMREQs in any one scan Hardware Configuration This ladder is written for 90 30 Ethernet Controller installed in Rack 0 Slot 2 of a 90 30 system The LAN Interface Status Word is configured for 133 The IP address for this Ethernet Controller is 3 0 0 1 IP address for the remote PLCs are 3 0 0 2 3 0 0 5 Rungs 5 12 use the BLKMV function to initialize data for the 4 Read Channel commands Refer to Chapter 3 for more information on programming COMREQs Appendix D Sample Ladder Programs RRR AE AE A A e IR ke k k a m 2 ub m m m m s m
74. User Action Check transceiver to make sure it is securely attached to the network Check for unterminated trunk cable LANsystem softwarefault aborted connectionresuming Internal system error User Action If problem persists contact GE Fanuc Automation LANsystem softwarefault restarted LAN I F Internal system error User Action If problem persists contact GE Fanuc Automation LANsystem softwarefault iresuming Internal system error User Action If problem persists contact GE Fanuc Automation LAN transceiver fault OFF network until fixed Transceiver or transceiver cable failed or became dis connected User Action Reattach the cable or re place the transceiver cable Check SOE test switch if presenton transceiver Local request to send was rejected dis cardedrequest Internal error Check that the Ethernet Interface is online User Action If problem persists contact GE Fanuc Automation Memory backupfault mayloseconfig log onrestart Internal erroraccessing FLASH device User Action If problem persists contact GE Fanuc Automation Replace Ethernet Interface Modulesoftware corrupted requesting reload Catastrophicinternal system error Contact GE Fa nuc Automation Modulestate doesn t permitComm Req discarded COMMREO received when Ethernet Interface can not process User Action Make sure Ethernet Interface is configured and online Unsup
75. XFER_1 Successful Data Transfer 10050 CH1_ERR Error detected on Channel 1 T0001 FIRSTRD First channel cmd after Fst Scn T0002 RD OK Commreq successful T0003 RD ERR Error processing Commreq T0004 RD FLT Fault output set for COMREQ T0005 WRT OK Write Channel cmd successful 0006 WRT_ERR Error processing write channel T0007 WRT FLT Write Chan COMREQ Fault output 70008 DO_READ Write done do read comreq 70009 DO_WRT Read done do write comreq T0010 RESTART Bit set if Enet card restarted T0011 CH ERR Error on read write restart T0012 PWR DLY Wait 2 sec for system power up T0013 RS_READ Read error detected restart T0014 RS_WRT Write error detected restart 80001 RD_CRSW COMREQ status word for read 80002 WT_CRSW COMREQ status word for write IDENTIFIER TABLE IDENTIFIER IDENTIFIER TYPE IDENTIFIER DESCRIPTION LANRDWT PROGRAM NAME BLOCK DECLARATIONS 1 START OF PROGRAM LOGIC Program LANRDWT NLM90NLANNLANRDWT Block MAIN TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B GFK 1084B 07 20 95 07 58 verview GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page This program provides an example of alternating reads and writes from a 90 30 client PLC to a 90 30 or 90 70 server PLC and
76. ally Counters kept by the LAN Interface to indicate load and performance information Topology The pattern formed by the physical medium interconnecting the nodes of a network Transceiver See Medium Attachment Unit MAU Transceiver Cable See Attachment Unit Interface AUI Transmission Path Delay The time required for a bit to travel between the two most distant network nodes in a bus network Transmission Control Protocol TCP The Internet standard connection oriented transport level protocol See also Internet Protocol IP Universal Address Administration See Global Address Administration Word A measurement of memory length usually 4 8 16 or 32 bits long In the Series 90 PLC a word is always 16 bits TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Appendix Communications Ports Characteristics GFK 1084B B This appendix describes the Ethernet Interface serial ports and the AAUI port used to connect to the network transceiver What this Appendix Contains Information pertaining to the Serial Ports Station Manager Port and Software Loader Port m Serial Port Pinouts m Serial Cable Diagrams Information pertaining to the Apple Attachment Unit Interface AAUI Port for Ethernet communications AAUI Port Pinouts m Cable Diagram m Transceiver Unit Description B 1 Station Manager Port This section presents the information you need to construct a cable for serial communic
77. asinsufficient memory to handle request cf05H cf85H Specified device is not available in the system not present d105H d185H Packet size or total program size does not match input d205H d285H Invalid write mode parameter d505H d585H Invalid blockname specified in datagram d605H d685H Total datagram connectionmemory exceeded d705H d785H Invaliddatagramtypespecified d805H d885H Point length not allowed d905H d985H Transfer type invalid for this Memory Typeselector da05H da85H Null pointer to data Memory Typeselector db05H db85H InvalidMemory Typeselectorin datagram dc05H dc85H Unable to find connection address 5 5 Unable to locate given datagram connection ID de05H de85H Size of datagram connection invalid df05H df85H Invaliddatagramconnectionaddress 005 085 Service in process cannot login e405H e485H Memory Type for this selector does not exist 905 985 Memory Type selector not valid in context ea05H ea85H Not logged in to process servicerequest ee05H ee85H Could not return block sizes ef05H ef85H Programmerisalready attached f005H f085H Request only valid in stop mode f105H f185H Request only valid from programmer f205H f285H Invalid program cannot login f405H f485H Invalid input parameter in request f505H f585H Invalidpassword f605H f685H Invalid sw
78. at when the Data Transfer bit goes to 1 that a transfer has just completed during the last scan The Data Transfer bit is not closely synchronized in time with the transfer The bit only indicates that a transfer has occurred during the preceding read or write period A rising edge on the Data Transfer bit indicating that a transfer has completed successfully does not guarantee that the next transfer has not begun or completed In the case of an Establish Channel command the CRS word is always updated before the Data Transfer bit is set to 1 Status Bits 18 20 22 48 Channel Error Bit This bit is set to 1 when an error is de tected on this channel It is set to 0 when the channel is initially established and if the channel resumes normal operation after a transient error condition subsides The Chan nel Error bit is also set to 0 when the channel is aborted by an Abort Channel command or when the PLC CPU transitions from RUN to STOP In the case of an Establish Chan nel command the CRS word is always updated before the Channel Error bit is set to 1 GFK 1084B Chapter 3 Programming Communications Requests 3 35 Communications Status Words The Status word CRS word and the first word of the two Detailed Chan nel Status words DCS words report status and errors in the same format as shown be low The second word of the DCS words indicates when the channel is active The CRS word location is specified in Words 3 and 4
79. ate visual summary of the operational state of the Interface Refer to Chapter 2 Installation for more information Use the Series 90 30 PLC Fault Table to troubleshoot a problem once the Interface is running It provides a record of exceptions logged by the PLC the Ethernet Interface and other Series 90 30 modules The PLC Fault Table may be accessed through the Logicmaster 90 30 Configurator or Programmer software or CIMPLICITY Control Refer to the Series 90 30 Programmable Controllers Reference Manual GFK 0467 for more information Look in the PLC Fault Table for a logged fault then refer to the PLC Fault Table section in this chapter for instructions on what action to take Use the StatusData to troubleshoot ladder programs containing functions that initiate communications The status data consists primarily of the Status bits and the Communications Status words Refer to Chapter 3 Programming Communications Requests for more information Use the Station Manager software to troubleshoot a problem with the Interface with the network with PLC backplane communication or with your application The LOG TALLY EXS and STAT Station Manager commands are especially useful The LOG command provides a complete record of exceptions occurring with the network and Interface The TALLY command provides statistics about operation and performance of the network and Interface The EXS command provides information abo
80. ations between the Ethernet Interface and a terminal or a PC with a terminal emulator Information in this section includes serial port settings pinouts and cable diagrams Station Manager Port Settings The serial port of the terminal or PC that is connected to the Ethernet Interface must use the same communications parameters as the Ethernet Interface The default values for the Station Manager port are 9600 bps 8 bits no parity and 1 stop bit If the configuration for Serial Port 1 of the Ethernet Interface used the defaults or the Ethernet Interface has not been performed using the Logicmaster 90 30 Configuration software or CIMPLICITY Control use these default values If the configuration for Serial Port 1 of the Ethernet Interface used different values use those values for the serial port of the terminal or PC Station Manager Port Pinouts The 6 pin RJ 11 modular phone jack RS 232 port is used to connect a terminal or terminal emulator to access the Station Manager software on the Ethernet Interface Connector pinouts are shown in Table B 1 a45696 Station Manager Serial Port Table B 1 Station Manager Port Pinouts RJ 11 Port Signal Description Pin Number 1 CTS Clear To Send input 2 TD Transmit Data output 3 SG SignalGround 4 SG SignalGround 3 RD Receive Data input 6 RTS Request to Send output TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Station Manag
81. ault Table entry in Logicmaster 90 30 pressing lt CTRL F gt will display an additional line of numeric data on the Message Line third line from the top An example of this line is shown below 00 1 042 00020000 1602 1F00 160006000300050000000000000000000000000000000000 For Ethernet Interfaces the leftmost 14 digits of the long string of digits on the right half of the Message Line underlined in the example above show the corresponding log Events 2 digits and Entries 2 3 and 4 in that order 4 digits each The example above is reporting an Event 16 Entry 2 6 Entry 3 3 and Entry 4 5 This information can be used to refer directly to detailed fault descriptions included in the LOG event table under the LOG command in GFK 1186 TCP IP Ethernet Communications Station Manager Manual 4 2 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B GFK 1084B Table 4 1 PLC Fault Table Descriptions PLC Fault User Action Backplanecommunications with PLC fault lost request User Action Check to make sure you are not send ing COMMREQs faster than the Ethernet Interface can process them If problem persists contact GE Fanuc Automation Bad localapplication request discarded request User Action Check for valid command code If problem persists contact GE Fanuc Automa tion Bad remote application request discarded request User Action Try to validate the operation of th
82. being executed repeatedly each CPU scan as this will overrun the capability of the Ethernet Interface and possibly require a manual restart Checking certain status bits before initiating a COMMREQ function is also important In particular the LAN Interface OK bit should be used as an interlock to prevent execution of the COMMREQ function when the Ethernet Interface is not operational See Section 5 and Appendix D for tips on developing your program TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Operation of the Communications Request The figure and text below explains how a Communications Request is executed The figure specifically illustrates the operation of an Establish Read Channel Command Domain of a TCP connection Domain of a channel Domain of a remote server Client Client Series 90 70 Ethernet Server Server PLC CPU Backplane Interface LAN Fihernetinteriace Interface Backplane o CPU _ Power flows to COMMREQ in ladder program Command Block sent to Interface gt Verify Command Block and set up channel to server PLC Read Request p Read Request lt A Data lt A Data Data Data lt Return COMMREQ Status CRS Word COMMREQ a to CPU Status Word lt Pulse Data Transfer bit Data Transfer _ pulse received Read R Sac eques Read Request lt A Data lt Data Data D 44 ala Pulse Data Transfer bit Data Transfer a pulse received Read Request Read
83. ble see the follow ing figure or IC690ACC900 GE Fanuc Converter only requires cable IC690CBL303 and either IC690CBL702 or IC690CBL705 below IC690CBL303 15 pin RS 422 Serial Cable IC690CBL702 9 pin RS 232 Serial Cable IC690CBL705 25 pin RS 232 Serial Cable Software Loader Port Cable GFK 1084B The figure below illustrates cable assembly IC690ACC901 This cable assembly is needed to connect the 9 pin or 25 pin serial port on a personal computer to the Software Loader Port on the Ethernet Interface Use the 9 pin to 25 pin adapter to connect to the 25 pin serial port on the personal computer TO THE SOFTWARE LOADER PORT a45484c ON THE ETHERNET INTERFACE HE693SNP232 SNP TO RS232 ADAPTER Part Number 9 Pin Female Connector 25 Pin Female 9 Pin Connector Male Connector TO THE 9 PIN SERIAL PORT NOTE ON THE PERSONAL COMPUTER Use the 9 pin to 25 pin adapter to connect to lt the 25 pin serial port on the personal computer Figure B 2 Software Loader Cable Assembly IC690ACC901 ddVLX 6945H Appendix BCommunications PortsCharacteristics B 5 The AAUI Port for the Ethernet Interface The Ethernet Interface is equipped with an Apple Attachment Unit Interface AAUI port for connecting to the network Compatible transceivers can be purchased that support 10 5 and 10Base2 coaxial cables as well as twisted pair and fiber optic cables The AAUI standard makes your select
84. ced Information About IP and MAC Addresses Sample Ladder Program PC Software loader Related Publications GFK 1186 GFK 0356 GFK 0466 GFK 1295 GFK 0467 GFK 0870 GFK 1063 GFK 1026 We Welcome Your TCP IP Ethernet Communications for the Series 90 PLC Station Manager Manual Series 90 30 Programmable Controller Installation Manual Logicmaster 90 Series 90 30 20 Micro Programming Software User s Manual Using CIMPLICITY Control Series 90 30 20 Micro Programming Software Reference Manual Host Communications Toolkit for C C Applications User s Manual Host Communications Toolkit for Visual Basic Applications User s Manual Host Communications Drivers for Microsoft Windows User s Manual Comments and Suggestions At GE Fanuc Automation we strive to produce quality technical documentation After you have used this manual please take a few moments to complete and return the Reader s Comment Card located on the next page GFK 1084B iti Contents Chapter 1 Initroduetiom sone ered 1 1 The Ethernet Interface 1 1 How to Make the System Work 1 4 Quick Guide to the Manual 1 5 Chapter 2 Installing the Ethernet Interface 2 1 Ethernet Interface Hardware Overview 2 1 Board Indicators
85. cifies the length in words of the remote PLC IP address When an address type of 1 is specified Word 19 must contain 4 Words 20 23 Remote PLC IP Address Words 20 23 specify the four integers one integer per word of the dotted decimal IP address of the remote PLC to be accessed Words 24 27 Remote PLC Program Name Word 24 27 specify the case sensitive zero terminated and padded program name also called task name which can be found through the PROG Station Manager command on the server Ethernet Interface to be used with access to remote P or L memory These words are required only for access to such memory and will be ignored if the Memory Type field is not P or L Word 28 31 Remote PLC Program Block Name Words 28 31 specify the case sensitive zero terminated and padded program block name which can be found in the program block declaration in the server ladder program to be used with access to remote L memory These words are required only for access to such memory and will be ignored if the Memory Type field is not P or L Note The Program Name words 24 27 and Program Block Name words 28 31 must have each pair of ASCII characters reversed within the PLC memory For example the name MARY M 4dH A 41H 52H Y 59H would have 414dH in the first word and 5952H in the second word TCP IP Ethernet Communications User s Manual August1997 GFK 1084B The term local PL
86. d address in the Command Block Only this address requires subtracting 1 from the intended address Word 7 Channel Command Number Word 7 requests that a Send Information Report channel be set up If the command is processed successfully it will result in attempting the specified number of transfers from the client to the server TCP IP Ethernet Communications User s Manual August1997 GFK 1084B AChannel Command setup to issue a single send can have only one pendingsend transfer GFK 1084B Word 8 Channel Number Word 8 specifies the channel to be used for the send This value must be in the range of 1 to 16 If the channel is out of range a command error indication will be placed in the COMMREQ Status word If the channel number is the same as a channel already in use the channel will be re tasked to perform this new command Word 9 Number of Send Repetitions Word 9 specifies the number of transfers to be performed before automatically completing the communications request and closing the channel If this value is set to 1 only a single transfer will be issued If this value is set to 0 transfers will be issued on the requested period until the channel is aborted Word 10 Time Unit for Send Period Words 10 11 together define how often the transfer is to be performed transfer period Word 10 specifies the time unit such as seconds or minutes for the send period Word 11 specifies the number of those units The choices for
87. d client capability The figure below illustrates these tasks a45695 Series 90 30 PLC User supplied Ethernet Interface IBM PC compatible m Programming Configuration software Install Install Programming Configuration software Interface in PLC Y Y Use Configuration Connect Interface package to create to Network interface Y Power up PLC Use programmer package to program COMMREQs to initiate communications from your Series 90 70 PLC Power up PLC again Fully Operational Interface Optional if client capability is needed Figure 1 2 The Main Tasks for Installing the Ethernet Interface 1 4 TCP IPEthernet Communications User s Manual August1997 GFK 1084B Quick Guide to the Manual The table below breaks down the tasks shown in Figure 1 2 and identifies where in the manual they are described Tasks Where to go in the Manual Installing the Interface Chapter 2 Installing the Ethernet Interface Procedure 1 Installing the Interface Configuring the Interface Procedure 2 Configuring the Interface Powering up the PLC Procedure3 Verifying Proper Power Up Operation of the Configured Interface PING Application Connection Tests Procedure 4 PingingtheTCP IP Interfaces on
88. d state Pressing the Restart button will disrupt communications LED Test Any time the Restart button is released all the LEDs flash ON The operator should visually verify that all the LEDs go OFF and then ON at this time Then the In terface performs either a restart a restart and enter Software Load state or a restart and enter Maintenance state depending on the duration that the operator depresses Restart Restart Pressing the Restart button momentarily less than 5 seconds requests a restart of the Ethernet Interface When the Restart button is pressed all LEDs go out When it is released all LEDs flash ON then power up diagnostics run and the software on the Interface is restarted into the Operational state Restart and Enter Software Load State Pressing and holding the Restart button for be tween 5 and 10 seconds forces a restart and requests entrance to the Software Load state A reload is used to install a software update into the module and is not part of normal operation When the Restart button is pressed all LEDs go out After 5 seconds have elapsed the STAT LED bottom LED comes ON to indicate that the Ethernet Interface will request a reload After the Restart button is released all LEDs flash ON then pow er up diagnostics run and the Ethernet Interface waits to be loaded with all LEDs blink ing in unison GFK 1084B Chapter 2 Installing the Ethernet Interface 2 3 Serial Ports Notes Reloading the Ethern
89. d the Ethernet Interface itself See Section 4 for more information Channel Status Bits The Channel Status bits comprise bits 17 80 64 bits of the status indication area The first 32 bits consist of an error bit and a data transfer bit for each of the 16 channels that can be established The last 32 bits are reserved for future use and set to zero by the Ethernet Interface See Section 4 for more information COMMREQ Status Word CRS Word 16 bit CRS word will receive the initial status of the communication request The location of the CRS word is assigned for each function in the Command Block See Section 4 for more information Detailed Channel Status Words DCS Words This detailed status data is retrieved for a particular channel using the Retrieve Detailed Channel Status Command See Section 3 for information on the command and Section 4 for the contents and format of the retrieved channel status FT Output of the COMMREQ Function Block This output indicates that the PLC CPU detected errors in the COMMREO Function Block and or Command Block and did not pass the Command Block to the Ethernet Interface See Section 4 for details The Logic Program Controlling Execution of the COMMREQ Function Block Care must be taken in developing the logic that controls the execution of the function The function must be initiated by a one shot to prevent the from
90. d with access to remote L memory These words are required only for access to such memory and will be ignored if the Memory Type field is not P or L TCP IPEthernet Communications User s Manual August1997 GFK 1084B Note The Program Name words 52 55 and Program Block Name words 56 59 must have each pair of ASCII characters reversed within the PLC memory For example the name MARY M 4dH 41H 52H Y 59H would have 414dH in the first word and 5952 in the second word GFK 1084B Chapter 3 Programming Communications Requests 3 17 Establish Write Channel 2004 The Establish Write Channel command requests that a channel be connected to a remote PLC and that data from the local PLC be transferred periodically to the remote PLC The Command Block specifies the period the number of writes to the server to perform and the timeout allowed in waiting for each transfer to complete The first write is performed immediately regardless of the period specified The term local PLC is used here to identify the client PLC the PLC that initiates the communications request The term remotePLC is used here to identify the serverPLC the PLC that respondsto the request Example 1 Command Block Basic Example Establish a write channel channel 6 to a remote PLC at IP address 3 0 0 1 Return the Status word to 10 Write local PLC registers R50 R57 to remote PLC regi
91. dOVLXE69SH NOTE the 25 pin serial port on the personal computer Figure E 1 Software Loader Cable Assembly IC690ACC901 GFK 1084B LJ TO THE 9 SERIAL PORT ON THE PERSONAL COMPUTER Use the 9 to 25 adapter to connect to lt 1 Insert the supplied floppy disk into your A drive At the C gt prompt type A install or B instal11 if you inserted the disk into drive B The install program will copy several files to the hard drive then invoke the PC Software Loader Altematively the install can be run from the floppy drive directly if there is no hard drive or not enough space on the hard drive To run from the floppy disk type A or B to change to the drive containing the floppy disk then type install from the A gt or B gt prompt Important Running the PC Software Loader directly from the floppy diskette will result in slower operation than running it from the hard drive See the notes below if you are using non default serial port settings or the COM2 port Note If the Software Loader port configuration of the Ethernet Interface was changed from the default values see Chapter 2 Procedure 2 the PC Software Loader serial port configuration must be changed to the same values before performing step 6 above Press the F2 key at the main menu and select port settings that match the Ethernet Interface configuration If you connected the serial cable to COM2 in step 3 you must pr
92. ddress length in words 32 Remote Host Network address name char 1 2 PL Remote Host Network address name char 3 4 C_ Word 22 24881 6131 Remote Host Network address name char 5 6 1a Word 23 00097 0061 Remote Host Network address name char 7 8 Word 24 00000 0000 Remote Host Network address name char 9 10 Word 25 00000 0000 Remote Host Network address name char 11 12 Word 26 00000 0000 Remote Host Network address name char 13 14 Word 27 00000 0000 Remote Host Network address name char 15 16 Word 28 00000 0000 X Remote Host Network address name char 17 18 GFK 1084B Chapter 3 Programming Communications Requests 3 27 Word 29 00000 0000 Remote Host Network address name char 19 20 Word 30 00000 0000 Remote Host Network address name char 21 22 Word 31 00000 0000 Remote Host Network address name char 23 23 Word 32 00000 0000 Remote Host Network address name char 24 25 Word 33 00000 0000 Remote Host Network address name char 26 27 Word 34 00000 0000 Remote Host Network address name char 28 29 Word 35 00000 0000 Remote Host Network address name char 30 31 Word 36 51 Reserved set to zero Word 4 CRS word address is the only zero based address in the Command Block Only this address requires subtracting 1 from the intended address Words 7 17 See the descriptions in Example 1 Word 18 Network Address Type Word
93. determines how many bits are in the net id and how many are in the host id In general the net id portion of the IP address on the left is assigned by the Internet authorities The host id portion on the right is assigned by your local network administrator Subnetting is locally optional and consists of designating some any number of the host id bits as an extended net id or subnet id The added subnet id bits are normally taken from the host id bits adjacent to the net id and the subnet mask identifies these bits In your Ethernet module configuration you specify these bits as one 1 and the remaining host id bits as zero 0 For example IP Address 11 22 33 44 Net Id bits 255 0 0 0 Net Id 11 0 0 0 Added Subnet Id bits 0 255 0 0 Subnet Id 0 22 0 0 Subnet Mask 255 255 0 0 Extended Net Id 11 22 0 0 All nodes on a subnetted network must use the same value for subnet mask subnets are distinguished by different subnet ids created by your local assignment of IP addresses For further information refer to the appendix titled Advanced Information About IP and MAC Addresses in your Ethernet module user manual Station Manager A part of the basic Ethernet Interface communications software that executes as a background activity on the Ethernet Interface The Station Manager provides interactive supervisory access to the Ethernet Interface The Station Manager may be accessed locally via the serial port or remotely over the LAN T
94. ding the IP address into a netid and a hostid via the class Inside a site the subnet mask is used to re divide the IP address into a custom netid portion and hostid portion Consider taking Network 2 a Class B network in the previous example and adding another network Selecting the following subnet mask would add two additional netid bits allowing for four networks 11111111 11111111 11000000 00000000 255 255 192 0 In effect two bits of the Class B hostid have been used to extend the netid Each unique combination of bits in the part of the hostid where subnet mask bits are 1 specifies a different network The new configuration would be a45406 A 128 1 0 1 Network 1 128 1 0 2 G B 128 2 64 3 128 2 64 1 128 2 64 2 Network 2 1 G2 D E 128 2 128 3 128 2 128 1 128 2 128 2 Network 2 2 Figure C 3 Network Configuration Using a Subnet Mask Asecond network with Hosts D and E has been added Gateway G2 connects Network 2 1 with Network 2 2 Hosts D and E will use Gateway G2 to communicate with hosts not on Network 2 2 Hosts B and C will use Gateway G to communicate with hosts not on Network 2 1 When B is communicating with D G the configured Gateway for B will route the data from B to D through G2 Appendix C Advanced Information About IP and MAC Addresses C 3 MAC Addresses C 4 It is recommended that you use the d
95. dress Length Word 19 specifies the length in words of the remote PLC IP address When an address type of 1 is specified Word 19 must contain 4 Words 20 23 Remote PLC IP Address Words 20 23 specify the four integers one integer per word of the dotted decimal IP address of the remote PLC to be accessed Words 24 27 Remote PLC Program Name Word 24 27 specify the case sensitive zero terminated and padded program name also called task name which can be found through the PROG Station Manager command on the server Ethernet Interface to be used with access to remote P or L memory These words are required only for access to such memory and will be ignored if the Memory Type field is not or L See Note below Word 28 31 Remote PLC Program Block Name Words 28 31 specify the case sensitive zero terminated and padded program block name which can be found in the program block declaration in the server ladder program to be used with access to remote L memory These words are required only for access to such memory and will be ignored if the Memory Type field is not P or L Note The Program Name words 24 27 and Program Block Name words 28 31 must have each pair of ASCII characters reversed within the PLC memory For example the name MARY M 4DH A 41H R 52H Y 59H would have 414D in the first word and 5952 in the second word TCP IP Ethernet Communications User s Manual
96. e confidence that your equip ment is working properly Ethernet Interface Hardware Overview The Ethernet Interface is mounted on the Series 90 30 PLC baseplate It is connected to an Ethernet network via a user provided transceiver cable and transceiver The follow ing figure shows the layout of the Ethernet Interface GFK 1084B 2 1 45481 2 SERIAL NUMBER LABEL CMM 321 ETHERNET INTERFACE 1 SER SER STAT sa gt C RESTART eL_ d JLI 11 STATION E MANAGER PORT PORT 1 n STATION o ADDRESS gt LABEL So 95 SOFTWARE 90 LOADER 00 90 AAUI J L TRANSCEIVER A PORT Figure 2 1 Ethernet Interface The Ethernet Interface has several user accessible elements Four LEDs are located at the top of the board The Restart button is located immediately below the LEDs The RS 232 serial port with the RJ 11 connector similar to a modular telephone connector is the Station Manager port The RS 485 serial port with the 15 pin D connector located below the Station Manager port is the module s Software Loader port The 14 pin AAUI connector facing downward is the T
97. e data for the ead Channel Command The command block starts at R101 This timer allows the system When the timer fires and DO READ is set on a Refer to Chapter 3 for detailed information about the channel commands Program LANRDWT Appendix D Sample Ladder Programs C NLM90NLANNLANRDWT Block MAIN ede dee E E REO EROR RO ER E ERE KE ES EE EO E E E ERE E EE S 5 2 2 2 c m x 5 m i 2 2 5 5 RRR D 9 D 10 Page 07 20 95 07 58 FANUC SERIES 90 30 90 20 v6 01 lt lt RUNG 5 STEP 0002 gt gt FST_SCN 50001 BLKMV BLKMV BLKMV INT INT INT CONST IN1 0 80101 CONST IN1 0 80108 CONST IN1 0 80115 00017 00001 00008 CONST IN2 CONST IN2 CONST IN2 00000 00001 00300 CONST IN3 CONST IN3 CONST IN3 00008 00002 00010 CONST IN4 CONST IN4 CONST IN4 00000 00000 00001 CONST IN5 CONST IN5 CONST IN5 00000 00500 00004 CONST IN6 CONST IN6 CONST IN6 00000 00008 00003 CONST IN7 CONST IN7 CONST IN7 02003 00201 00000 lt lt RUNG 6 STEP 0007 gt gt BLKMV TE
98. e is returned in lieu of the actual service re quest error 01h to avoid confusion with the normalsuccessful COMMREQcompletion Call GE Fanuc Automation forassistance 90H Client See table of Minor Error codes below GFK 1084B Chapter 3 Programming Communications Requests 3 37 Minor Error Codes The meaning of each Minor Error Code depends upon the Major Error Code for which it is defined Consult the appropriate Minor Error Code table for the indicated Major Error Code Table 3 5 Minor Error Codes for Major Error Codes 05H at Remote Server PLC and 85H at Client PLC Error Status Service Request Error Description Hexadecimal c105H c185H Invalidblock state transition c305H c385H Text length does not match traffic type c605H c685H Control Program CP tasks exist but requestor not logged into main CP c705H c785H Passwords are set to inactive and cannot be enabled or disabled c805H c885H Password s already enabled and cannot be forced inactive c905H c985H Login using non zero buffer size required for block commands 05 85 Deviceis write protected cb05H cb85H comm or write verify error occurred during save or restore 05 85 Data stored on device has been corrupted and is no longer reliable cd05H cd85H Attempt was made to read a device but no data has been stored on it ce05H ce85H Specified deviceh
99. e re mote node If problem persists contact GE Fanuc Automation Can t locate remote node discarded re quest Errorreported when message received where IP MAC address cannot be resolved Errormay indicate that remote host is not operational on the network User Action Check that remote host is operational on network and its addresses are correct Comm req Bad task ID programmed Message from PLC for unknown Ethernet Interface task User Action Check COMMREQ function block Comm req Wait mode not allowed UserAction Check COMMREO to make sure sent in no waitmode Config d gateway addr bad can ttalk off local net Error in configuration Verify IP address Subnet work Mask and default Gateway IP address are correct Connection to remote node failed resum ing without it Underlying communications software detects error transferring data resuming If persistent error check connection to LAN and operation of remote node LANcontrollerfault restart LANI F User Action HW fault perform power cycle If problem persists contact GE Fanuc Automation LANcontroller Txunderflow attempt re covery Internal system error User Action If problem persists contact GE Fanuc Automation LANcontrollerunderrun overun resum ing Internal system error User Action If problem persists contact GE Fanuc Automation LANdatamemory exhausted check parms resuming The Ethernet
100. ea describes the Channel Command to be executed When the function is initiated the Command Block is transferred to the Ethernet Interface for action See Section 2 for a description of the common area of the Command Block and Section 3 for details on the Data Block area and Channel Commands Channel Commands The Channel Commands are a set of client PLC commands used to communicate with a server PLC Advantages of Channel Commands The advantage of Channel Commands is their ability to establish a channel to execute multiple periodic reads or writes with a single initiation of a COMMREO function A Channel Command can also be used to execute a single read or write Up to 16 channels numbered 1 16 can be established by a client PLC The channel number is specified in the Command Block for the Channel Command The channel can be monitored using the Channel Status bits and the Detailed Channel Status words See Section 3 for more information GFK 1084B Chapter 3 Programming Communications Requests 3 3 Status Data There are several types of status available to the client PLC logic program LAN Interface Status Bits LIS Bits The LIS bits comprise bits 1 16 of an 80 bit status area The location of this 80 bit status area is assigned using the Logicmaster 90 Configuration Package or CIMPLICITY Control in the Status Address field The LIS bits contain information on the status of the Local Area Network LAN an
101. each node on the IP network or system of connected networks Note that Internet terminology often uses the term host to identify a node on a network The IP address is 32 bits long and has a netid part and a hostid part Each network is a Class A Class B or Class C network The class of a network determines how the IP Address bits are aportioned between the netid and hostid parts 245404 0 1 8 16 24 31 Class A 0 netid hostid 0 1 8 16 24 31 Class B 110 netid hostid 012 8 16 24 31 Class C 11110 netid hostid Figure C 1 IP Address Format for Network Classes A B C Each node on the same local network must have an IP address of the same class and must have the same Each node on the same network must have a different hostid thus giving it a unique IP address C 1 Gateways IP addresses are written as four decimal integers 0 255 separated by periods called dotted decimal where each integer gives the value of one byte of the IP address For example the 32 bit IP address 00000011 00000000 00000000 00000001 is written as 3 0 0 1 One can distinguish the class of an IP address from the first integer in its dotted decimal IP address as follows Range of first integer Class 0 127 A 128 191 B 192 223 C 224 255 other Gateways also known as routers connect individual physical networks into a system of networks When a node needs to commun
102. econds button for less than 5 seconds This SER Slow blink Maintenance clears the Maintenance request STAT On Off Station Manager MAINT command issued m Examine PLC Fault Table for clues OK and SER blink in unison Internal System Error If you need to use the Station when Interface was Manager to troubleshoot a Operational caused a see GFK 1186 CP IP restart and entrance into thernet Communications Station Maintenance Manager Manual e OK On F If the LAN LED is Off the Q LAN On Taffic Off problem may be SER Off Operational Transceivernot Connect cable and transceiver STAT On Off connected to Interface or tranceiver not connected to Ethernet cable or bad transceiver m Network cable not terminated properly m SQE not enabled on transceiver If the STAT LED is Off an exception condition has oc curred properly Replace transceiver Terminate network cable properly Set SQE ON on transceiver in accord with manufacturer s instructions Examine PLC Fault Table to find out why the STAT LED is Off GFK 1084B Identify the PLC fault message using Logicmaster 90 or CIMPLICITY Control then refer to Table 4 1 in Chapter 4 Troubleshooting forcorrectiveactions Chapter 2 Installing the Ethernet Interface 2 19 Procedure 4 Pinging TCP IP Ethernet Interfaces on the Network PING Packet InterNet Grouper is the name of a program used on TCP IP netwo
103. ed address Word 7 Channel Command Number Word 7 requests that a read channel be set up If the command is processed successfully it will result in attempting the specified number of transfers from the server to the client Chapter 3 Programming Communications Requests AChannel Command set up to issue a single read can have only one pending read transfer 3 12 Word 8 Channel Number Word 8 specifies the channel to be used for the read This value must be in the range of 1 to 16 If the channel is out of range a command error indication will be placed in the Status word If the channel number is the same as channel already in use the channel will be retasked to perform this new command Word 9 Number of Read Repetitions Word 9 specifies the number of reads to be performed before automatically completing the communications request and closing the channel If this value is set to 1 only a single read will be issued If this value is set to 0 reads will be issued on the requested period until the channel is aborted Word 10 Time Unit for Read Period Words 10 11 together define how often the read is to be performed read period Word 10 specifies the time unit such as seconds or minutes for the read period Word 11 specifies the number of those units The choices for the time units are specified in Table 3 1 Table 3 1 Time Unit Values for Read Write Repetition Period Value Meaning 1 hu
104. edium attachment unit MAU and the data terminal equipment Often called transceiver cable Bit Contraction of Binary Digit The smallest unit of memory Can be used to store one piece of information that has only two possible states or values e g One Zero On Off Yes No Data that requires more than two states or values e g numerical values requires multiple bits see Word BOOTP BOOTP is a bootstrap protocol that allows a TCP IP network node such as a Series 90 PLC with Ethernet Interface to discover its own IP address the address of a file server host and the name of a file to be loaded into memory and executed Broadcast Address A LAN group address that identifies the set of all nodes on a Local Area Network Bridge A functional unit that interconnects two Local Area Networks LANs that use the same logical link control protocol but may use different medium access control protocols Broadcast Sending of a frame that is intended to be accepted by all other nodes on the same Local Area Network Bus Network A Local Area Network in which there is only one path between any two network nodes and in which data transmitted by any node is available to all other nodes connected to the same transmission medium NOTE A bus network may be linear star or tree topology TCP IPEthernet Communications User s Manual August1997 GFK 1084B 1084 Byte A group of bits typically 8 bits operated as single unit A sin
105. eep state to set 3 38 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B 1084 Table 4 5 Minor Error Codes for Major Error Codes 5H and 85H Continued Error Status Service Request Error Description Hexadecimal f705H f785H Required to log in to a task for service f805H f885H Invalid task name referenced f905H f985H Task address out of range fc05H fc85H I Oconfigurationisinvalid fe05H fe85H Noprivilegeforattempted operation ff05H ff85H Servicerequest has been aborted Table 3 6 Minor Error Codes for Major Error Code 11H at Remote Server PLC Error Status SRIP Error Description hexadecimal 0111H Generic SRIP error 0211H The PLC is inaccessible 0311H Reserved 0411H Unexpected SRTP version encountered in received message 0511H UnrecognizedSRTP messagereceived 0611H Data present in SRTP message which should not contain data 0711H Genericresource problem detected 0811H SRIP message encountered in inappropriate connection state 0911H Generic refusal by backplane driver to handle request 0a11H Recognized butunsupported SRTP messagereceived 0b11H Lost transaction in server 1411H Request failed due to an error in the remote device The Remote device log will have more information 2411H InvalidAddress found in message sent to backplane driver 2
106. efault MAC address given by the factory however you may override that default with a MAC address of your own choosing with the Station Manager CHPARM MACADDR command See GFK 1186 Each byte of the MAC Address is an 8 bit binary number Thus the 12 digit hex address is really a 48 bit binary number The typical MAC Address shown above is represented as a binary number as follows Byte 1 2 3 4 5 6 Hex 0 8 0 0 1 9 0 0 5 3 1 2 Binary 0000 1000 0000 0000 0001 1001 0000 0000 0101 0011 0001 0010 Another characteristic that is important especially for multi vendor networks is the order of address bit transmission on the physical medium MAC Addresses are transmitted in ascending byte order with the least significant bit of each byte transmitted first The example above is shown including bit transmission order as follows Byte 1 2 3 4 5 6 Hex 0 8 0 0 1 9 0 0 5 3 1 2 Binary 0000 1000 0000 0000 0001 1001 0000 0000 0101 0011 0001 0010 Bit Order 8765 4321 ER MSB of the MAC LSB of the MAC Address first bit transmitted Address last bit transmitted If you assign your own MAC Addresses there are 2 bits of the 48 bit address that you must set according to the instructions that follow m BitlinByte1 must always be a 0 to indicate an individual station rather than a Group address m Bit 2 in Byte 1 must be a 1 to indicate that the address is locally administered In the typical default MAC Address shown above bit 2 in Byte 1 is a 0
107. er Port Cable Use the serial cable IC693CBL316A shown in Figure B 1 to connect your PC to the Station Manager If your terminal or PC is unable to communicate with the Ethernet Interface Station Manager consult the documentation for your terminal or PC to verify that your adapter is wired correctly a45485 RJ 11 CONNECTOR 9 PIN FEMALE CONNECTOR UL d Figure B 1 Serial Cable IC693CBL316A to Connect the Personal Computer to the Station Manager Port Table B 2 Serial Cable IC693CBL316A Connector Pinouts 9 PinConnector RJ 11Connector PinNumber PinNumber 7 1 Red 2 2 Yellow 5 3 Green 5 4 Brown 3 5 Black 8 6 Orange GFK 1084B Appendix BCommunications PortsCharacteristics B 3 Software Loader Port Serial Port 2 This section presents the information you need to construct a cable for serial communications between the Ethernet Interface and a PC with the PC Loader software installed Information in this section includes serial port settings pinouts and cable diagrams An RS 232 to RS 485 converter is required to interface to systems that provide RS 232 compatible interfaces Software Loader Port Pinouts The 15 pin D type RS 485 port is used to connect to the PC Software Loader when the communications software in the Ethernet Interface needs to be updated Table B 3 Software Loader Port Pinout
108. ess the F3 key from the main menu and then press the Tab key to select 2 From the main menu press the F1 key to attach to the Ethernet Interface Once attached a menu will be displayed which allows the baud rate to be changed from the default 19200 if desired Most PC compatibles will operate reliably at 38400 To change the baud rate press the F2 key Press the TAB key to toggle through the supported baud rates then press the Enter key to change the baud rates of both the PC Software Loader and the Ethernet Interface When the baud rate change operation is complete press the F1 key to load the new firmware Press the Y key to confirm the operation The load will take several minutes depending on the baud rate and the operating speed of the PC If the load is interrupted prior to completion power failure disconnected cable etc redo all the steps above TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Appendix Naming Architecture F This appendix gives an overview of the naming architecture concepts used within GE Fanuc Series 90 PLCs The goal of the naming architecture is to provide users the ability to think of their Ethernet Interfaces in terms of a symbolic name rather than a numerical address Use of this symbolic name will be capable in all areas that require an IP Address This name commonly referred to as the Network Address Name can be constructed from the following character set
109. et Interface requires the attachment of the PC Software Loader to the Software Loader port and initiating a load with the PC Software Loader The PC Software Loader is a separate software utility which updates the communications software in the Ethernet Interface This utility is supplied with any updates to the Ethernet Interface software See Appendix E for more information At any time before you initiate a load with the PC Software Loader you can restart the Ethernet Interface by pressing the Restart button Pressing this button will immediately cause the board to restart If the reload has been initiated see Appendix E for more information Restart and Enter Maintenance State Pressing and holding the Restart button for more than 10 seconds forces a restart and requests entrance to the Maintenance state Mainte nance state must be invoked to change Advanced Parameters While in Maintenance state all Advanced Parameters revert to their default value When the Restart button is pressed all LEDs go out After 5 seconds the STAT LED comes ON then after 10 se conds have elapsed the STAT and SER LEDs both come ON to indicate that the Ether net Interface will request entry to the Maintenance state After the Restart button is re leased all LEDs flash ON then power up diagnostics run and the Ethernet Interface enters the Maintenance state Notes In any case any data being transferred by the Ethernet Interface at the time of the Restart
110. etrieve Detailed Channel Status 2002 3 30 Send Information Report 2010 3 24 Timeout 3 12 3 19 3 25 Channel Error bit 3 34 3 35 3 45 Channel Status bits 3 2 3 4 3 34 Channel Status words 3 30 Channels Aborting 3 9 Establishing 3 9 Maximum that can be established 3 3 Monitoring 3 45 Index Numbers assigned 3 12 3 19 3 25 3 29 3 30 Re tasking 3 9 Retrieving Detailed Status on 3 10 Client PLC 3 11 3 15 3 18 3 21 Client Server Capability 1 1 Command Block 3 2 3 3 3 7 COMMREO Function Block 3 2 3 3 3 6 functions maximum ing 3 46 Status word 3 2 3 4 3 36 3 45 Minor Error Codes 3 38 Pointer 3 8 Communication Request 3 2 Communications Ports Characteristics B 1 Communications Status words 3 32 3 36 Configuring the Ethernet Interface Using CIMPLICITY Control 2 13 Configuring the Ethernet Interface with Logicmaster 90 30 2 8 CRS word 3 4 3 36 3 45 D Data Block 3 3 3 8 Length 3 7 Data Transfer bit 3 35 3 45 Data transfer bit 3 4 DCS words 3 4 3 36 DDP Name Resolution F 2 Default Station Address Label 2 5 Detailed Channel Status words 3 4 3 30 3 36 Determining if an IP address has been used 2 20 Display Terminal Settings B 10 DNS Name Resolution F 2 E Error bit 3 4 Error Codes COMMREQ Minor Error Codes 3 38 Index 1 Index Index 2 Establish Read Channel command 2003
111. etwork DEC VAX Alpha AXP and VMSare trademarks of Digital Equipment Corporation Windows and Windows NT are registered trademarks of Microsoft Corporation 1 2 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B GFK 1084B Attachment of the Ethernet Interface to the LAN The AAUI port provides the electrical and mechanical interface to the user provided Ethernet transceiver cable which connects the AAUI port to an external user provided transceiver The transceiver cable may be separate or built in to the transceiver The external transceiver is directly connected to the Ethernet cable Various Ethernet baseband media 10Base can be interconnected by appropriate re peaters Capabilities and limitations are defined in IEEE 802 3 Chapter 13 System Con siderations for Multi Segment Networks This document is published by the Institute of Electrical and Electroncs Engineers Inc 345 East 47th Street New York NY 10017 2394 USA The Ethernet Interface can operate on any of the following media with the appropriate user supplied transceiver cable and transceiver IEEE 802 3 specifies the definitive re quirements of each medium 10Base5 Coax 10Base5 uses a 0 4 inch diameter 50 ohm coaxial cable and is commonly called thick wire The maximum length of a cable segment is 500 meters The distance between any two stations must be a multiple of 2 5 meters A maximum of 100 stations is allowed
112. etwork address names see Appendix F 3 10 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Establish Read Channel 2003 The Establish Read Channel Command requests that a channel be associated with a remote PLC and that data from the remote PLC be transferred periodically to the local PLC The Command Block specifies the period the number of reads from the remote to perform and the timeout allowed in waiting for each transfer to complete The first read is performed immediately regardless of the period specified The term local PLC is used here to identify the client PLC the PLC that initiates the communications request The term remotePLC is used here to identify the serverPLC the PLC that respondsto the request GFK 1084B Example 1 Command Block Basic Example Establish a channel channel 5 to a remote PLC at IP address 3 0 0 1 Return the COMMREQ Status word to R10 Read remote PLC registers R50 R57 to local PLC registers R100 R107 Repeat the read 10 times once every 7 seconds with a timeout of 500 ms for each read Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word 7 Word 8 Word 9 Word 10 Word 11 Word 12 Word 13 Word 14 Word 15 Word 16 Word 17 Word 18 Word 19 Word 20 Word 21 Word 22 Word 23 Word 24 27 Word 28 31 Dec Hex 00017 0011 00000 0000 00008 0008 00009 0009 00000 0000 00000 0000 02003 07d3 00005 0005 00010 000A 00003
113. face The Command Block contains the details of a Channel Command to be performed by the Interface The address in CPU memory of the Command Block is specified by the IN input of the COMMREQ Function Block This address may be in any word oriented area of memory R AT or AQ The Command Block is set up using an appropriate programming instruction the BLOCK MOVE Function Block is recommended The Command Block has the following structure Word 1 Data Block Length words Word 2 WAIT NOMAIT Flag 0 Word 3 CRS Word Pointer Memory Type Word 4 CRS Word Pointer Offset Word 5 Reserved Word 6 Reserved Words 7 up Data Block Channel Command Details When entering information for the Command Block refer to these definitions Word 1 Data Block Length This is the length in words of the Data Block portion of the Command Block The Data Block portion starts at Word 7 of the Command Block The length is measured from the beginning of the Data Block at Word 7 not from the begin ning of the Command Block The correct value for each command and the associated length of each command is specified in Section 3 Word 2 WAIT NOWAIT Flag This flag must be set to zero for TCP IP Ethernet Commu nications Chapter 3 Programming Communications Requests 3 7 COMMREQ Status Word The Ethernet Interface updates the CRS word to show success or failure of the command Command words 3 and 4 specify the
114. gle ASCII character typically occupies one byte See Octet Carrier Sense In a Local Area Network an ongoing activity of a network node to detect whether another node is transmitting Carrier Sense Multiple Access with Collision Detection CSMA CD A bus network in which the medium access control protocol requires carrier sense and in which exception conditions caused by collision are resolved by retransmission Channel An association in a client PLC between the PLC application program and an Ethernet module in that same PLC The ladder program initiates the channel when it issues a Communications Request CommReq to its local Ethernet module In turn this local Ethernet module initiates a connection to a remote server and then makes periodic data transfers between the client and server PLCs Channel however is an entirely client function the server knows nothing of the channel See also Connection Channel Status Bits The Channel Status bits comprise bits 17 80 64 bits of the status indication area The first 32 bits consist of an error bit and a data transfer bit for each of the 16 channels that can be established The last 32 bits are reserved for future use and set to zero by the Ethernet Interface Client A node that requests network services from a server A client PLC initiates a communications request See also Server Collision A condition that results from concurrent transmissions by two or more nodes on the transmission
115. h Procedure 2 Configuring the Ethernet Interface Note An Ethernet Interface can be mounted on a CPU baseplate an expansion baseplate or a remote baseplate However due to power requirements only two Ethernet Interfaces are permitted per baseplate GFK 1084B Chapter 2 Installing the Ethernet Interface 2 7 Procedure 2a Configuring the Ethernet Interface with Logicmaster 90 30 Configuration Software Before you can use the Ethernet Interface with the Series 90 30 PLC you must configure the Interface using Logicmaster 90 30 configuration software or CIMPLICITY 9 Con trol see Procedure 2b for configuring using CIMPLICITY Control The Logicmaster 90 30 configuration software allows you to specify the modules and I O that will reside in your Series 90 30 PLC rack s The Hand Held Programmer may not be used to con figure the Interface For the Ethernet Interface specifically the configuration software allows you to m Define the status address of the Ethernet Interface Assign the IP Address for the Ethernet Interface and optionally the Subnet Mask and the Gateway Address m Configure the serial ports optional To configure the Ethernet Interface access the I O Configuration rack screen in the Logicmaster 90 30 Configuration Package and do the following 1 Move the cursor to the desired rack and slot location The slot may be either unconfigured or previously configured IEEE COPY UU DELETE UNDEL
116. h of the Ethernet Interface itself such as the LAN Interface OK bit and the AAUI Fuse Blown bit The Channel Status bits monitor the health and progress of a channel established using the Establish Read Write Channel Commands Communications Status Words There are two types of words that provide detailed information The COMMREQ Status word CRS word and the Detailed Channel Status words DCS words The communications status words are not updated in the CPU each scan as are the status bits They are generally used to determine the cause of a communications error after the function is initiated The cause is reported in the form of an error code described later in this section 3 32 TCP IP Ethernet Communications User s Manual August1997 GFK 1084B The Status word CRS word is returned from the Ethernet Interface to the CPU immediately if the Command Block contains a syntax error or if the command is local For remote commands with no syntax error it is returned either after the chan nel is established successfully and the first transfer has completed or if there is an error establishing the channel The location of the CRS word is defined in the Command Block for the COMMREO function The Detailed Channel Status words DCS words are returned to the CPU only by executing the Retrieve Detailed Channel Status Command If a channel error is indi cated by the Channel Error bit after the channel is established t
117. han 128 COMMREQ Status Word is Zero 0 and FT Output is OFF If after executing a COMMREO function the CRS word is zero 0 and the FT Output is OFF then the Command Block has been sent to the Ethernet Interface but no status has been returned yet If this condition persists check the PLC fault table for information COMMREQ Status Word is Not One 1 If after executing a COMMREO function the CRS word is not one 1 indicating success then there were m Errors in the Command Block the Channel Command code or parameters or m Foran Establish Read or Write Channel Command the command parameters were valid but there was an error in establishing a channel If the CRS word does not contain a 1 indicating success then it contains either a 0 or a code indicating what error occurred See Section 4 of this chapter for CRS word error codes TCP IPEthernet Communications User s Manual August1997 GFK 1084B Monitoring the Communications Channel Once you have a working ladder program you can use the status data to monitor your communications activity and take the desired action upon certain events The primary indicators of a communications channel are the Channel Status bits Channel Error bit and Data Transfer bit In addition the CRS word and the DCS words can be used to more precisely troubleshoot any problems that may occur Monitoring the COMMREQ Status Word It is critical to monitor the CRS word for each COMMREQ function y
118. hannels when there are none in use Neither is it an error to abort an idle channel Note For the Abort Channel and Retrieve Detailed Channel Status commands no actual data is transmitted on the network Communication occurs between the client PLC CPU and the local Ethernet Interface only For these commands the actual function is performed locally and then the COMMREQ Status word is sent immediately to the CPU GFK 1084B Chapter 3 Programming Communications Requests 3 29 Retrieve Detailed Channel Status 2002 The Retrieve Detailed Channel Status command requests that the current Detailed Channel Status words be returned for a channel The Detailed Channel Status words contain an active inactive channel indicator and the last channel error codes seen see Section 4 for more details These two words of detailed status supplement the information available in the COMMREQ Status word and the Channel Status bits The command has no effect on the value of the Channel Status bits Be aware that the Detailed Channel Status words are updated every time the status of the channel changes If for example the channel is operating with a fast repetition period the status words may change faster than the ladder executes the COMMREQ to retrieve them Therefore some status values will be missed from the ladder s point of view Example Command Block Retrieve detailed channel status for channel 5 Store the Detailed Channel Status words to Regis
119. he built in Station Manager software provides on line supervisory access to the Ether net Interface through either Serial Port 1 or over the Ethernet cable The Station Manag er services on the Ethernet Interface include m An interactive set of commands for interrogating and controlling the station m Unrestricted access to observe internal statistics an exception log and configuration parameters m Password security for commands that change station parameters or operation Access to the Station Manager is attained through a user provided computer terminal or terminal emulator See GFK 1186 for more information on the Station Manager Chapter 1 Introduction 1 3 The PC Software Loader The PC Software Loader is a separate software utility which updates the communications software stored in flash memory in the Ethernet Interface This utility is supplied with any updates to the Ethernet Interface software How to Make the System Work There are only a few simple tasks required to get your Ethernet Communications System working These tasks are addressed in detail later in this manual 1 4 Install the Ethernet Interface into the Series 90 30 baseplate and connect it to the network Configure the Ethernet Interface using Logicmaster 90 Configuration software or CIMPLICITY Control Power up the Series 90 30 PLC store the configuration and power up the PLC again Add COMMREQ functions in your ladder program if you nee
120. he first word of the DCS words will contain an error code indicating the cause of the error The second word of the DCS words indicates whether the channel is active or idle Be aware that the Detailed Channel Status words are updated every time the status of the channel changes If for example the channel is operating with a fast repetition period the status words may change faster than the ladder executes the COMMREO to retrieve them Therefore some status values may be missed from the ladder s point of view Description of the Status Data The errors and status reported in each type of status data are described below OK Output of the COMMREQ Function Block The OK output passes power when the COMMREQ has successfully been deposited into memory local to the target Ethernet Interface FT Output of the COMMREQ Function Block Status Bits GFK 1084B The FT Output passes power upon the following errors Invalid rack slot specified The module at this rack slot is unable to receive COMMREQ m Task ID not valid Task ID should be set to zero m Data Block length is zero or greater than 128 Too many simultaneous active COMMREQs overloading either the PLC CPU or the Ethernet Interface The status bits normally occupy a single block of memory The location of this block is specified during module configuration in the Configuration Software see Chapter 2 for details The first 16 bits of the block see table below
121. he requested data without overwriting other application data Word 15 Remote PLC Memory Type Words 15 16 specify the memory type and starting address in the remote PLC from which the data is to be read Valid values for Word 15 are given in Table 4 2 If P memory is used you must specify a Program name in words 24 27 If L memory is used you must specify a Program name in words 24 27 and a Program Block name in Words 28 31 Word 16 Remote PLC Memory Starting Address Word 16 specifies starting address in the remote PLC from which the data is to be read 1 based Valid ranges of values depend on the remote Chapter 3 Programming Communications Requests 3 13 Word 17 Remote PLC Number of Memory Units Word 17 specifies the number of bits bytes or words to be read determined by the remote PLC memory type specified For example if the memory type is l in bit mode this is the number of bits If the memory type is this is the number of words A maximum of 16384 bits 2048 bytes 1024 words of data may be specified Word 18 Remote PLC Network Address Type Word 18 specifies the format of the remote PLC address In this release Word 18 must contain the value 1 or 3 A value of 1 indicates a dotted decimal IP address expressed using a separate register for each decimal digit A value of 3 indicates a Network Address name See Example 2 for information on using address type 3 Word 19 Remote PLC Network Ad
122. icate with a node on another network a gateway transfers the data between the two networks The following figure shows gateway G connecting Network 1 with Network 2 45405 128 1 0 1 Network 1 128 1 0 2 G 128 2 0 B 8 2 0 3 128 2 0 1 128 2 0 2 Network 2 Figure C 2 Connecting Two Networks with a Gateway When host B with IP address 128 2 0 1 communicates with host C it knows from C s IP address that C is on the same network In an Ethernet environment B can then resolve C s IP address to a MAC address via ARP and communicate with C directly When host B communicates with host A it knows from A s IP address that A is on another network the netids are different In order to send data to A B must have the IP address of the gateway connecting the two networks In this example the gateway s IP address on Network 2 is 128 2 0 3 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Subnets GFK 1084B Note that the gateway has two IP addresses 128 1 0 2 and 128 2 0 3 The first must be used by hosts on Network 1 and the second must be used by hosts on Network 2 To be usable a host s gateway must be addressed using an IP address with a netid matching its own Subnet addressing is an extension of the IP address scheme that allows a site to use a single netid for multiple networks Routing outside the site continues as usual by divi
123. ick the OK button The module will now appear in the selected slot Rack System Local Rack ae xd Refer to 1295 Using CIMPLICITY Control for more information on using CIMPLICITY Control 90 30 software TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Procedure 3 Verifying Proper Power Up of the Ethernet Interface Powering up the Ethernet Interface After configuring the Interface as explained in Procedure 2 follow the procedure below to verify that the Ethernet Interface is operating correctly 1 Turn power OFF to the PLC for 3 5 seconds then turn the power back ON This will initiate a series of diagnostic tests OK LED will blink indicating the progress of power up 2 The LEDs will have the following pattern upon successful power up At this time the Ethernet Interface is fully operational and on line LED Ethernet Interface Online OK On LAN gt On Taffic SER Off STAT On If STAT LED is OF check the PLC Fault Table Alternatively use the Station Manager LOG command as explainedin GFK 1186 TCP IP Ethernet Communications Station Manager Manual Problems During Power up If a problem is detected during power up the Ethernet Interface may not transition di rectly to the Operational State If the Interface does not transistion to Operational check the LED pattern on the Interface and refer to Figure 2
124. id Network Anarrangement of nodes and interconnecting branches Node The physical module that connects a node to the network The Ethernet Interface is an example of a node It connects a station PLC or CNC to a network Factory LAN A station may contain more than one Bthernet Interface and therefore contain more than one node Octet A group of 8 bits operated on as a single unit See also Byte One Way Propagation Time See Transmission Path Delay Path The sequence of segments and repeaters providing the connectivity between two DTEs In networks there is one and only one path between any two DTEs Peer Another entity at the same level layer in the communication hierarchy Peer Peer Communication between nodes at the same level or layer in the hierarchy Physical Address The unique physical layer address associated with a particular node on the Local Area Network LAN Ethernet physical addresses are typically assigned by the manufacturer See for comparison Internet Address Protocol A set of rules for exchanging messages between two communicating processes Protocol Data Unit PDU Information that is delivered as a unit between peer entities of a local area network LAN and that contains control information address information and may contain data TCP IPEthernet Communications User s Manual August1997 GFK 1084B 1084 Remote Station Station located elsewhere on the network See also L
125. indicating that it is a globally administered address m All other bits be set as desired as long as all stations on the network have unique addresses Anexample of a locally administered MAC Address is shown below Byte 1 2 3 4 5 6 Hex 0 2 0 0 0 0 0 0 0 1 0 0 Binary 0000 0010 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 Bit Order 8765 4321 ead MSB of the LSB of the MAC Address first bit transmitted MAC Address last bit transmitted If you must change the Station MAC Address check with the person administering your network to make sure that you select an address that fits into your local administration scheme TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Appendix Sample Ladder Programs D This appendix contains the following Printout showing hardware configuration for sample ladder programs Printout of sample program LANRDWT This program shows a way to alternate reads and writes from a Series 90 30 client PLC to a Series 90 30 or Series 90 70 server PLC Printout of sample program CHANA This program establishes 4 channels on start up from a Series 90 30 client PLC to 4 different Series 90 30 or Series 90 70 server PLCs This program may be customized for a variety of applications GFK 1084B 07 17 95 16 47 GE FANUC SERIES 90 30 90 20 MICRO v6 01 Page d GGGG EEEEE FFFFF AAA N 0 0 0 UC G GGG EEEE FFF AAAAA NNN U UC
126. ing systems include Windows Windows NT HP UX 9000 DEC VAX VMS and DEC Alpha AXP VMS Communicate simultaneously to multiple devices The multiplexing capabilities of the Ethernet Interface along with Ethernet network s high capacity allow the PLC to communicate with several other devices at the same time Maintain compatibility with other GE Fanuc devices as well as with devices from other vendors The GE Fanuc Series 90 30 PLC with TCP IP Ethernet Interface is compatible with the Series 90 70 PLC with TCP IP Ethernet Interface It is also compatible with GE Fanuc Logicmaster 90 30 TCP IP Ethernet CIMPLICITY Control and GE Fanuc HCT Ethernet products available on DEC HP IBM and other computer platforms runningICP IP Diagnose and maintain your system using diagnostic and station management tools You can find problems before they become serious In the event that communications software upgrades are needed you can use a built in serial port to download the software to the Interface Indirectly attach to other Local Area Networks and or wide area networks via third party IP routers When configured to use an IP gateway router the Ethernet Inter face can communicate with remote PLCs and other nodes reachable through the router Communicate with remote computers via Serial Line Internet Protocol SLIP using modems and or serial lines Using third party SLIP software a remote host computer can be attanched to a TCP IP n
127. ion of transceiver and trunk cable medium transparent to the Ethernet Interface Your network cables must meet the applicable 802 3 standards This section presents the information you need to specify the cables and related components required for Ethernet Communications Information in this section includes AAUI port pinouts and AAUI cable diagrams Ethernet AAUI Port Pinouts The AAUI port is located on the front edge of the Ethernet Interface This port is a 14 pin D type female connector It is used to connect the Ethernet Interface to the 802 3 transceiver Connector pinouts are shown in Table B 4 Table B 5 Pinouts of the AAUI Port Pin Number Signal Description 1 FN Pwr 5V 1 9W 2 DI A Data In circuit A 3 DI B Data In circuit B 4 Ve Voltagecommon 5 CI A Control In circuit A 6 CI B Control In circuit B 7 5V 5V from host 8 5V Secondary 5V from host 9 DO A Data Out circuit A 10 DO B Data Out circuit B 11 Ve Secondary VoltageCommon 12 nc Reserved 13 nc Reserved 14 FN Pwr Secondary 5V SHELL PG ProtectiveGround Conductive shell and shield Note Pinouts are provided for troubleshooting purposes only Cables are readily available from commercial distributors GE Fanuc recommends that you purchase rather than make transceiver cables B 6 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Transceiver Configurations Depending
128. iven transfer but Channels will proceed to the next iteration A Channel will continue its repetitions if an attempt to read write data to the local CPU is rejected with an Error NAK The transfer bit and error bit will be set for this given transfer but Channels will proceed to the next iteration m A Channel will not continue its repetitions if the remote server Enet I F rejects the request with an SRTP Error PDU The transfer bit and error bit will be set for this given transfer and Channels will not proceed to the next iteration m A Channel will not continue its repetitions if an attempt to update the CRSW to the local CPU is rejected with an Error NAK The transfer bit and error bit will be set for this given transfer and Channels will not proceed to the next iteration TCP IP Ethernet Communications User s Manual August1997 GFK 1084B Chapter Troubleshooting 4 This chapter is a guide to troubleshooting and problem isolation for the Series 90 30 TCP IPEthernet Interface This chapter includes the sections listed below Diagnostic Tools Available for Troubleshooting What to do if you Cannot Solve the Problem The PLC Fault Table Diagnostic Tools Available for Troubleshooting There are several tools to assist you in diagnosing problems with the Series 90 30 Ethernet Interface and the network GFK 1084B Use the Ethernet Interface LEDs to troubleshoot a problem on power up of the Ethernet Interface and for an immedi
129. l this is the number of bits If the memory type is this is the number of words A maximum of 16384 bits 2048 bytes 1024 words of data may be specified Word 16 Reserved Word 16 is reserved and should contain the value zero Word 17 Reserved Word 17 is reserved and should contain the value zero Word 18 Remote Host Network Address Type Word 18 specifies the format of the remote PLC address In this release Word 18 must contain the value 1 or 3 A value of 1 indicates a dotted decimal IP address expressed using a separate register for each decimal digit A value of 3 indicates a Network Address name See Example 2 for information on using address type 3 Word 19 Remote Host Network Address Length Word 19 specifies the length in words of the remote PLC IP address When an address type of 1 is specified Word 19 must contain 4 Words 20 23 Remote Host IP Address Words 20 23 specify the four integers one integer per word of the dotted decimal IP address of the remote PLC to be accessed TCP IPEthernet Communications User s Manual August1997 GFK 1084B Example 2 Command Block Example using a Network Address name This example is the same as example 1 except that the Network Address name of the Remote PLC PLC 1aa is used instead of its IP address For more information on Network Address names see Appendix E Establish a channel channel 7 to a remote Host application server at IP address 3 0 0 1 Return
130. l be held at the value 1 as long as the Ethernet Interface software is able to communicate on the network If the network should be come inaccessible from this Interface due either to local or network problems this bit will be set to 0 If LAN communication becomes possible it is set to 1 Status Bit 14 Resource Problem This input is set to 1 whenever the Ethernet Interface software experiences a resource problem i e lack of data memory The bit is reset to 0 on a subsequent PLC sweep The Ethernet Interface may or may not be able to continue functioning depending on the severity of the problem Use the PLC Fault Table to un derstand the problem See Chapter 6 Troubleshooting for further information In addition you can use the Station Manager STAT B and LOG commands to further under stand the problem See Chapter 5 The Station Manager for more information Status Bit 16 LAN Interface OK Bit This input is set to 1 by the Ethernet Interface each PLC scan If the Ethernet Interface cannot access the PLC the CPU will set this bit to 0 When this bit is 0 all other Ethernet Interface Status bits are invalid TCP IP Ethernet Communications User s Manual August1997 GFK 1084B Each channel has a dedicated pair of bits as follows Status Bits 17 19 21 47 Data Transfer Bit This bit is normally set to 0 It is pulsed to 1 and back to 0 on successive PLC scans each time a transfer completes successfully Do not assume th
131. lid range is 0 250 to 1 75 6 Optionally after you have completed the Settings tab you can configure parameters for the Station Manager and Software Load ports by clicking the appropriate tab The details of the parameter settings for these ports are as follows Data Rate Data rate bits per second or bps for the port Choices are 1200 2400 4800 96007 or 19200 Parity of parity to be used for the port Choices are None Even or Odd Stop Bits Enter the number of stop bits Choices are 1 t or 2 Flow Control Type of flow control to be used for the port Choices are Hardware or None t Turnaround Delay Turnaround delay time to be used for the port Choices are None t 10 ms 100 ms or 500 ms Timeout Length of timeouts used for the port Choices are Long t Medium Short or None Default selection for the Software Loader Port Default selection for the Station Manager Port 7 If you want to assign variable names to specific points on the Ethernet card click the Point Reference tab To assign a variable to a point double click the reference address you want The Insert Variable dialog box will appear which will allow you to fill in a variable name and description GFK 1084B Chapter 2 Installing the Ethernet Interface 2 15 2 16 8 If you want to view the power consumption of this module click the Power Consumption tab After you have configured all of the module s applicable parameters cl
132. lision Detection Appendix Glossary A 3 DCS Words See Detailed Channel Status Words Detailed Channel Status Words Two status words containing detailed information on a single Series 90 channel The DCS words are retrieved using the Retrieve Detailed Channel Status Command Data Communications Equipment DCE Examples Modems and transceivers Distinct from DTE Data Terminal Equipment Data Link Layer In Open Systems Interconnection architecture the layer Layer 2 that provides services to transfer data over a physical link between open systems Consists of the LLC and MAC sublayers Data Terminal Equipment Examples computers terminals printers Distinct from DCE Data Communications Equipment Dotted Decimal The notation for IP gateway and name server addresses as well as the subnet mask It consists of 4 decimal numbers 0 255 separated by periods Example IP address 3 0 0 1 Ethernet Interface The general term used in this manual to identify the GEnet hardware module with or without software that connects a PLC or CNC to a network It may also appear in the shortened form Interface See also LAN Interface Flash Memory type of read only memory that can be erased and reprogrammed under local software control It is used to store data that must be preserved when power is off Frame A data structure that consists of fields predetermined by a protocol for the transmission of user data and control data Ga
133. lution F 2 Usage 41 e Ee dedu eu oki 2 1084 TCP IP Ethernet Communications User s Manual August 1997 vil Figure 1 1 Figure 1 2 Figure 2 1 Figure 2 2 Figure 3 1 Figure 3 2 Figure 3 3 Figure 3 4 Figure B 1 Figure B 2 Figure B 3 Figure B 4 Figure B 5 Figure B 6 Figure B 7 Figure C 1 Figure C 2 Figure C 3 Figure E 1 GFK 1084B Ethernet Communications System The Main Tasks for Installing the Ethernet Interface Ethernet oo ce ss a a States of the Ethernet Elements of the Communications Request Operation of the Communications Request for an Establish Read ChannelCommand Format of the Status Word CRS Word Format of the Detailed Channel Status Words DCS Words Serial Cable IC693CBL316A to Connect the Personal Computer to the Station Manager Port 222 Software Loader Cable Assembly 690 901 10Base2 Transceiver Configuration with Detachable Transceiver Cable Available as GE Fanuc Part Number 649 101 22 10
134. medium Collision Domain A single CSMA CD network If two or more nodes are within the same collision domain and both transmit at the same time a collision will occur Nodes separated by a repeater are within the same collision domain Nodes separated by a bridge are within different collision domains Command Dictionary Provides an alphabetical listing of the LAN Interface commands Command Field That part of a protocol data unit PDU that contains commands as opposed to the address field and information field COMMREQ Function Block The COMMREQ Function Block is the Series 90 PLC ladder instruction used to initiate a communications request COMMREO Status Word The 16 bit CRS word receives the initial status of the Series 90 PLC communication request from the Series 90 module to which the communication request was addressed The location of the CRS word is assigned for each COMMREO function in the common area of the Command Block Communications Window A part of the PLC scan that provides an opportunity for the LAN Interface to read and write PLC memory The window is executed automatically once per PLC scan Connection An association between a client and server on a network used to reliably transfer data between the two Here usually refers to a TCP or an SRIP connection where the client server or both are PLCs See also Channel CRS Word See COMMREO Status Word CSMA CD See Carrier Sense Multiple Access with Col
135. mory Type Words 9 and 10 specify the starting point in the client CPU memory where the Detailed Channel Status words are to be written The length of the transfer is implied and is equal to 2 words Section 4 describes the format of the DCS words Word 9 specifies the memory type See Table 3 2 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Word 10 Local PLC Memory Starting Address Starting address to store the Detailed Channel Status words For more information on detailed channel status see Section 4 Note For the Abort Channel and Retrieve Detailed Channel Status commands no actual data is transmitted on the network Communication occurs between the client PLC CPU and the local Ethernet Interface only For these commands known as local commands the actual function is performed locally and then the COMMREQ Status word is sent immediately to the CPU GFK 1084B Chapter 3 Programming Communications Requests 3 31 Section 4 Status Data This section describes all the status data that is available to the ladder program to deter mine the state of the Ethernet Interface and its channels Types of Status Data There are four main types of status data available to your ladder program 1 OK Output of the COMMREQ Function Block This output is set if the PLC CPU was successful in transferring the data from the reference table memory specified by the function block into the
136. nd the Ethernet Interface will wait for a write transfer to complete before setting the Channel Error bit and Detailed Channel Status bits to indicate a non fatal timeout error The transfer can still complete even after a timeout occurs As result an application can choose what to do if one occurs If the timeout value is specified as zero no timeout errors will be reported For most applications a timeout need not be specified because the write period in effect acts as a timeout Word 12 should be zero for no timeout However there are two special circumstances in which specifying a timeout is recommended m When the number of time units word 11 is zero so that a subsequent transfer will be issued as soon as the previous transfer completes and no period errors are reported In this case a timeout value can be specified so that timeout errors will be reported by the Channel Error bit m When the write period is very long minutes or hours In this case a shorter timeout value can be specified so the application doesn t have to wait for the write period to expire before taking action Word 13 Local PLC Memory Type Words 13 14 specify the location in the local PLC from where the Ethernet Interface will get the data to be written to the remote PLC The size of this area is set by the size of the data written to the remote PLC Permissible memory types are given in Table 3 2 Chapter 3 Programming Communications Requests 3 19
137. nd must be terminated with a null An error will result if the Network Address name is empty or if the name could not be resolved into the address of an actual device The Network Address name must have each pair of ASCII characters reversed within the PLC memory For example the name PLC 1aa P 50H L 4cH C 43H 40H 1 31H 61H a 61H would have 4c50H in Word 20 4043H in Word 21 6131H in Word 22 and 0061H in Word 23 Words 24 35 all contain 0000H Note The Network Address name of the remote PLC must be defined in the Name Table in this Ethernet Interface or be defined as the Network Address name of the remote PLC or else be defined at a reachable DNS Name Server See Appendix F for more information Words 36 51 Reserved set to 0 Words 52 55 Remote PLC Program Name Word 52 55 specify the case sensitive zero terminated and padded program name also called task name which can be found through the PROG Station Manager command on the server Ethernet Interface to be used with access to remote P or L memory These words are required only for access to such memory and will be ignored if the Memory Type field is not or L See Note below Word 56 59 Remote PLC Program Block Name Words 56 59 specify the case sensitive zero terminated and padded program block name which can be found in the program block declaration in the server ladder program to be used with access t
138. nd stored into the PLC If a Name Table is not created at the PLC Programmer a local Name Table may be created within the Ethernet Interface entries in the local table are added edited and deleted using the station manager command chnametbl This command is documented in full detail in the TCP IP Ethernet Communications Station Manager Manual GFK 1186 F 1 Name Resolution Name Resolution involves resolving a symbolic name to its necessary address information required for communication Currently today a user is required to know this addressing information i e IP address to establish communication with a remote device Name Resolution provides users with a means to also use a Symbolic Name to reach the remote destination For the purposes of this description the client is the device which needs to resolve a symbolic name This symbolic namel represents the IP address of the server Possible clients include a user of the Host Communications Drivers and users of the client capability on the network adapter e g SRTP Client API Possible servers include the network adapter e g SRTP Server and the Host Communications Drivers e g Unsol Msgs Name Resolution of a Symbolic Name into an IP address follows a strict precedence rule Local Table resolution is attempted first followed by DDP then DNS Each of these is described in more detail in the following sections Local Table Name Resolution Local Table Name Resolution
139. ndredthsof seconds 10ms 2 tenths of seconds 100ms 3 seconds 4 minutes 5 hours Note If Time Unit Value is 5 hours then the maximum usable value of Number of Time Units is 5965 Word 11 Number of Time Units for Read Period Word 11 specifies the number of time units for the read period The read period is in effect even when the Channel Command is setup to issue a single read Example Read Period Calculation If Word 10 contains a value of 3 specifying seconds as the time unit and Word 11 contains a value of 20 then the read period is 20 seconds A read will normally be issued at the start of each read period If the pending read transfer has not completed during the read period the Channel Error bit and Detailed Channel Status words will be set to indicate a non fatal period error The pending transfer can still complete after the period error occurs For Channel Commands set up to issue multiple reads the next read transfer will be issued only after the pending read transfer completes If the Number of Time Units is zero a subsequent transfer will be issued as soon as the previous transfer completes In this case no period errors can occur Word 12 Timeout for Each Read Word 12 specifies the time in hundredths of a second the Ethernet Interface will wait for a read transfer to complete before setting the Channel Error bit and Detailed Channel Status words to indicate a non fatal timeout error The transfer can
140. ne COMMREQ function per channel can be pending at one time A COMMREQ function is pending from the time it is initiated in the ladder program until its CRS word has been updated by the Ethernet Interface Data Transfers with One Repetition 3 46 If your ladder program for issuing COMMREQs is constructed so it does all the follow ing all available TCP connections can quickly be used up The number of repetitions word 9 in an Establish Channel COMMREQ is set to 1 and new is issued immediately upon completion of the prior one Each successive is directed to the same target device same IP address m Each successive COMMREO is directed to the same channel number To avoid using up all connections set the number of repetitions word 9 to 2 and set the read write period COMMREQ words 10 and 11 to be very large for example 60 seconds With these parameters the ladder program will issue the first COMMREQ wait for the COMMREO Status CRS word to turn to 1 then issue the next wait for the CRS word to turn to 1 and so forth By interrupting an active channel you allow the reuse of an existing TCP connection while a repetition count of 1 started the time consuming TCP connection teardown immediately m AChannel will continue its repetitions if the remote server CPU PSR rejects the request with an Error NAK The transfer bit and error bit will be set for this g
141. nius Communications Module Communications Coprocessor themnet Intertace Chapter 2 Installing the Ethernet Interface 2 13 4 Inthe Module Catalog dialog box click the Communications tab select 1C693CMM321 Ethernet Interface then click the OK button The Parameters dialog Parameters Status Reference Type Status Length IP Address Subnet 5 This dialog box will allow you to edit the module s parameters To edit a parameter value click in the appropriate Values field The details of the Settings tab are as follows e Configuration Mode This is currently fixed as TCP IP e Status Reference Type The Status Reference Type is the location of the LAN Interface Status LIS bits 16 bits and the Channel Status bits 64 bits The Channel Status bits are always located immediately following the LAN Interface Status bits The default is the next available I address Note Do not use the 80 bits assigned to the LIS bits and Channel Status bits for other purposes or your data will be overwritten e Status Length This is fixed at 80 bits the sum of the LIS bits and the Channel Status bits e IP Address Subnet Mask Gateway IP Address and Name Server IP Address The values for the IP Address Subnet Mask and Gateway Address should be assigned by the person in charge of your network the network administrator TCP IP network administrators are familiar with these parameters It is important that these
142. nning on a PC Toolkit Application Figure 1 1 Ethernet Communications System GFK 1084B 1 1 Capabilities the Ethernet Interface The Ethernet Interface brings to your PLC a great deal of capability It will allow you to Become operational quickly The Ethernet Interface is made operational with very little effort You need only install the Interface in the baseplate and use the Logicmaster configuration package or CIMPLICITY Control to store basic configuration information to the module to make the basic server capability functional Client capability that is the capability to initiate communications can be added using the COMMREQ function in the ladder program Directly attach your PLC to an Ethernet network The Ethernet Interface allows you to directly attach the Series 90 30 PLC to an Ethernet LAN via a user supplied transceiver and AAUI cable and to communicate with host computers and other Series 90 PLCs on the local network All Series 90 30 models and all rack styles are supported Transfer data between PLCs The Ethernet Interface provides client capability the capability to initiate communications to other Series 90 Ethernet Interfaces using COMMREQ functions in the ladder program Access data using a Host computer Computer applications which use the GE Fanuc Host Communications Toolkit can access data within the Series 90 30 PLC through the server capability of the Ethernet Interface Supported computer operat
143. nterface Serial Number Label The Serial Number Label indicates the serial number of this Interface GFK 1084B Chapter 2 Installing the Ethernet Interface 2 5 Procedure 1 Installing the Ethernet Interface in the PLC This section describes the physical mounting of the Ethernet Interface onto the Series 90 30 PLC baseplate For information on the installation procedures for the baseplate Series 90 30 CPU Power Supply and other Series 90 30 modules refer to GFK 0356 Series 90 30 Programmable Controller Installation Manual Equipment Required to Perform the Installation Procedures In addition to the Ethernet Interface make sure you have the items listed below before you begin A Series 90 30 PLC CPU baseplate or any Series 90 30 baseplate and a Series 90 30 CPU version 5 03 or higher with power supply An operating Logicmaster 90 30 system release 6 0 or higher or CIMPLICITY Control runs on a personal computer An Ethernet compatible AAUI transceiver and Ethernet cables See Appendix B for more information A serial cable for the Station Manager port on the Ethernet Interface see Appendix B Optional A terminal or IBM compatible personal computer equipped with terminal emulation software Optional Note If your installation requires CE Mark compliance please refer to GFK 1179 Installation Requirements for Conformance to Standards shipped with the PLC programming software for additional guidelines
144. o remote L memory These words are required only for access to such memory and will be ignored if the Memory Type field is not P or L TCP IPEthernet Communications User s Manual August1997 GFK 1084B Note The Program Name words 52 55 and Program Block Name words 56 59 must have each pair of ASCII characters reversed within the PLC memory For example the name MARY M 4dH 41H 52H Y 59H would have 414dH in the first word and 5952 in the second word GFK 1084B Chapter 3 Programming Communications Requests 3 23 Send Information Report 2010 The term local PLC is used here to identify the client PLC the PLC that initiates the communications request The term SRTP Serveris used here to identify the Host server Send Information Report requests that a particular block of memory within the PLC CPU reference tables be transferred periodically from an Ethernet Interface SRTP Client to a Host Application SRTP Server The Command Block specifies the repetition period the number of transfers to the server to perform and the timeout allowed in waiting for each transfer to complete The first send is performed immediately regardless of the period specified Example1 Command Block Basic Example Establish a channel channel 7 to a remote Host application server at IP address 3 0 0 1 Return the COMM Status word to R10 Send local PLC registers
145. ocal Station Repeater In a Local Area Network a device that amplifies and regenerates signals to extend the range of transmission between network nodes or to interconnect two or more segments Responding Station A station which generates a message in response to a command that was directed to the station Round Trip Propagation Time Twice the time required for a bit to travel between the two most distant nodes in a bus network NOTE In a network using carrier sense each frame must be long enough so that a collision or jam signal may be detected by the transmitting node while this frame is being transmitted Its minimum length is therefore determined by the round trip propagation time Router A device similar to a bridge that allows access to multiple LANs Also known as a gateway in Internet terminology Server A network node that provides specific services to other network nodes clients See also Client EXAMPLE File server print server mail server Service Request Transfer Protocol SRTP A proprietary protocol that encodes Series 90 Service Requests the native language of the Series 90 PLC CPUS to provide general purpose communications with a Series 90 PLC SRTP is presently available over802 3 Ethernet networks SRIP is also used by Logicmaster 90 to communicate over an Ethernet network Signal Quality Error SQE An indication from the MAU transceiver to the Ethernet Interface to indicate any of three condi
146. of the Ethernet Interface Alwayszero 00000000 REQ IN SYSID TASK Function Faulted logic Each of the inputs and the output are discussed in detail below It is important to under stand that the Command Block pointer points to the location in memory you are using for the Command Block Enable Control logic for activating the Function Block See Section 5 and Appendix D for tips on developing your program IN The location of the Command Block It may be any valid address within a word ori ented area of memory R AI AQ or L SYSID A hexadecimal value that gives the rack high byte and slot low byte location of the Ethernet Interface Examples Rack Slot Hex Word Value 0 4 0004h 3 4 0304h 2 9 0209h 4 2 0402h 3 6 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B TASK This must always be set to zero for the Ethernet Interface Entering anumber other than zero for TASK may cause the Ethernet Interface to fail FT Output The FT output is set if the PLC rather than the Ethernet Interface detects that the COMMREO fails In this case the other status indicators are not updated for this See Section 3 for more information The COMMREQ Command Block GFK 1084B When the function is initiated the Command Block is sent from the PLC CPU to the Ethernet Inter
147. of the Command Block The DCS words location is specified in the Retrieve Detailed Channel Status Command The con tents of these status words are defined below The initial value of the Detailed Channel Status words is all zeros DCS words are reset to zero when The Ethernet Interface is powered up or restarted m The CPU transitions from STOP to RUN Achannel abort COMMREO aborts the channel CRS Word in Hex Format High Low 00 00 Minor Error Codes high byte Success and Major Error Codes low byte Figure 3 3 Format of the COMMREQ Status Word CRS Word DCS Word in Hex Format Word 2 Word 1 High Low 0000 00 00 Channel Active 0001 channel active o 0000 channel not active Minor Error Codes high byte Success and Major Error Codes low byte Figure 3 4 Format of the Detailed Channel Status Words DCS Words There are several points to remember when interpreting the contents of the COMMREQ Status word and Word 1 of the Detailed Channel Status words 1 Display the Status Words in hexadecimal form to more easily differentiate the high and low bytes A good way to do this is to use a MOVE WORD function block to display the hexadecimal value within the ladder program 2 The Ethernet Interface will never send a zero for the Status word to the PLC CPU The user program should zero the Status word before issuing TCP IP Ethernet Communications User s Manual August 1997 GFK 10
148. ory Types Value Type Decimal Description L 0 ProgramBlock Local register memory word mode P 4 Programregistermemory word mode R 8 Registermemory word mode VAI 10 Analoginputmemory word mode 12 Analog outputmemory word mode 16 Discrete inputmemory byte mode 70 Discrete input memory bit mode Q 18 Discrete outputmemory byte mode 72 Discrete outputmemory bit mode 20 Discretetemporary memory byte mode 74 Discretetemporary memory bit mode M 22 Discretemomentary internalmemory byte mode 76 Discretemomentary internalmemory bit mode 5 24 Discretesystemmemory group A byte mode 78 Discretesystemmemory group A bit mode SB 26 Discretesystemmemory group B byte mode 80 Discretesystemmemory group B bit mode SC 28 Discretesystemmemory group C byte mode 82 Discretesystemmemory group C bit mode S Y 30 Discretesystem memory byte mode 84 Discretesystemmemory bit mode G 56 Discrete global data table byte mode 86 Discrete global data table bit mode Read onlymemory cannot be written to Can only be accessed in the Remote PLC L and are available in Series 90 70 PLCs only Word 14 Local PLC Memory Starting Address Word 14 specifies the starting address in the local PLC in which the data from the remote PLC is to be stored 1 based The user is responsible for assuring that this area is large enough to contain t
149. ou initiate First zero the associated CRS word before executing the function Then when the CRS word becomes non zero you know the Ethernet Interface has updated it If the CRS word is updated to a one 1 then the Command Block was processed successfully by the Ethernet Interface If the CRS word is updated to a value other than 1 then an error has occurred in processing the Command Block See Section 4 of this chapter for CRS word error codes Do not use data received from a server until the CRS word for that channel is 1 or the Data Transfer bit goes to 1 Monitoring the Channel Error Bit This bit normally 0 is the primary indicator for an error on a channel It indicates any channel error fatal or non fatal It does not necessarily indicate that the channel is down idle You may want to monitor this bit and simply reinitiate the Read or Write command if the bit indicates an error Or you may want to execute the Retrieve Detailed Channel Status Command to find out if the channel is down and possibly why it went down Keep in mind however that the status code may change from between the time the Channel Error bit indicates an error and the time the Retrieve Detailed Channel Status Command retrieves the code The Channel Error bit for a channel is not meaningful until after the Ethernet Interface updates the CRS word confirming the Read or Write command for that channel In the case of an Establish Channel command the C
150. parameters are correct otherwise the Ethernet Interface may be unable to communicate on the network and or network operation may be corrupted It is especially important that each node on the network is assigned a unique IP address However if you have no network administrator and are using a simple isolated network with no gateways you can use the following range of values for the assignment of local IP addresses 2 14 TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B 3 0 0 1 First PLC 3 0 0 2 Second PLC 3 0 0 3 Third PLC 3 0 0 255 Logicmaster TCP or host On an isolated network the Subnet Mask Gateway IP address and Name Server IP address can all be 0 0 0 0 Note If the isolated network is ever connected to another network the IP addresses 3 0 0 1 through 3 0 0 255 must not be used and the Subnet Mask and Gateway IP address must be assigned by the Network Administrator The IP addresses must be assigned so that they are compatible with the connected network Refer to Appendix C for more information on addressing See also the section Determining If an IP Address Has Already Been Used in Procedure 4 Converter Allows you to account for the power consumption added by a serial port converter measured in watts Choices are 0 0 500 and 0 600 AAUI Transceiver Allows you to account for the power consumption added by the AAUI Transceiver attached to the Ethernet module measured in watts The va
151. ported featurein configuration PLC firmware does not support ethernet commu nications software User Action Check CPU revi sion order upgrade kit for CPU TCP IPEthernet Communications User s Manual August1997 GFK 1084B Glossary communications number of special terms are used many of these terms referenced by acronyms This appendix contains a concise alphabetized listing of conventional communications terms and where applicable their associated acronyms Most of these terms but not necessarily all are used in this manual Commonly Used Acronyms and Abbreviations This is a listing of acronyms and their derivation that are commonly used throughout this manual ARP AddressResolution Protocol ASCII American National Standard Code for InformationInterchange AUI Attachment Unit Interface AAUI AppleAttachment Unit Interface BOOTP Boot Strap Protocol BPS Bits Per Second CPU Central Processing Unit CRS COMMREO Status CSMA CD Carrier Sense Multiple Access with Collision Detection DCE DataCommunicationsEquipment DCS Detailed Channel Status DHCP Dynamic Host Configuration Protocol DOS Disk Operating System DTE Data TerminalEquipment GSM GEnet System Manager H Hexadecimal Input Output ICMP Internet Control Message Protocol IEEE Institute of Electrical and Electronics Engineers IP Internet Protocol K 1024 KB Kilobyte 1024bytes LAN LocalAreaNetwo
152. program whether in the developmental phase or the operational phase should do the following before initiating a COMMREO function 1 Initiate the COMMREO function with a one shot transitional coil This prevents accidentally sending the same COMMREO Command Block more than once 2 Include at least the LAN Interface OK bit in the LAN Interface Status Word as interlock contact for the COMMREO function You may choose to add more interlocks 3 Zero the word location you specify for the COMMREQ Status word CRS word and the FT Output of the COMMREO Function Block before the COMMREO function is initiated 4 Move the command code and parameters for the Channel Command into the memory location specified in IN input of the COMMREO Function Block before the COMMREO function is initiated GFK 1084B Chapter 3 Programming Communications Requests 3 41 The ladder program segment below illustrates how to incorporate these important points in your program Note The input values for the Block Move Functions in this example are taken from the Establish Read Channel Command example in Section 3 of this chapter Nicknames have used in this example to make the ladder program easier to follow LANIFOK is bit 16 of the LAN Interface Status bits All other nicknames can be assigned as you desire TCP IP Ethernet Communications User s Manual August
153. program stops if the COMREQ completes with error CRSW 0 CRSW 1 If the completes with error indicating the first read was not successful the problem is most likely an incorrect IP address or remote node not accessible through the network Check network and COMREQ data block Appendix D Sample Ladder Programs 5 the CRSW is updated to reflect the success or failure of the FIRST read T 5 m m A e e e k e 2 27 D 28 07 20 95 07 57 Program CHAN4 C LM90 LAN CHAN4 TCP IP Ethernet Communications User s Manual August 1997 GE FANUC SERIES 90 30 90 20 v6 01 Page 11 lt lt RUNG 24 STEP 0054 gt gt ALW_ON RD1_OK 550007 0001 5 INT RDICRSW 580001 11 0 CONST 12 00001 lt lt RUNG 25 STEP 0057 gt gt ALW_ON RD1_ERR 50007 T0002 4 NE 5 INT RDICRSW 80001 11 0 INT RD1CRSW CONST 12 RO001 11 0 00000 CONST 12 00001 lt lt RUNG 26 STEP 0061 gt gt ALW_ON RD2_OK 50007 T0003
154. ption Hexadecimal 0190H Timeout expired before transfer completed still waiting on transfer 0290H Period expired before transfer completed still waiting on transfer 8190H COMMREQ data block too short for the command 8290H data block too short for server PLC node address 8390H Invalidservermemory type 8490H Invalid ProgramName 8590H Invalid Program Block Name 8690H Zero server unit length is not allowed 8790 Server unit length is too large Maximum permitted 1024 words 8890H Invalid channel number 8990H Invalid time unit for period Maximum permitted 3965 hours 8a90H Period value is too large 8b90H Zero servermemory starting address is not allowed 8c90H Invalidclient memory type 8d90H Invalidserver host address type 8e90H Invalid IP address integer value Must be 0 255 8f90H Invalid IP addressclass 9090H Insufficient TCP connection resources to do request 9190H Zero local starting address is not allowed 9290H Address length value invalid Must be 4 for address type 9390H data block too short for Program Block name including 0 pad 9490H data block too short for Programname including 0 pad 9590H Internal API error See PLC fault table or exception log for details This problem may occur due to the Ethernet Interface being asked to perform beyond its capacity Try transferring less data per message or establishing fewer simultaneous connections 9690
155. quested period until the channel is aborted Word 10 Time Units for Write Period Words 10 11 together define how often the write is to be performed write period Word 10 specifies the time unit such as seconds or minutes for the write period Word 11 specifies the number of those units The choices for the time units are specified in Table 3 1 Word 11 Number of Time Units for Write Period Word 11 specifies the number of time units for the write period The write period is in effect even when the Channel Command is setup to issue a single write Example Write Period Calculation If Word 10 contains a value of 3 specifying seconds as the time unit and Word 11 contains a value of 20 then the write period is 20 seconds A write will normally be issued at the start of each write period If the pending write transfer has not completed during the write period the Channel Error bit and Detailed Channel Status words will be set to indicate a non fatal period error The pending transfer can still complete after the period error occurs For Channel Commands set up to issue multiple writes the next write transfer will be issued only after the pending write transfer completes If the Number of Time Units is zero a subsequent transfer will be issued as soon as the previous transfer completes In this case no period errors are reported by the Channel Error bit Word 12 Timeout for Each Write Word 12 specifies the time in hundredths of a seco
156. ransceiver port The Restart button Station Manager port Software Loader port MAC address label and serial number label are normally concealed by the front cover Remove the front cover to access them TCP IP Ethernet Communications User s Manual August1997 GFK 1084B Board Indicators There are four LEDs on the Ethernet Interface OK LAN SER and STAT Each of these LEDs can be ON OFF BLINKING slow or BLINKING fast They indicate the state of the Interface traffic on the network port LAN ONLINE LED and that an exception event has occurred All LEDs are briefly turned ON whenever the Restart button described below is re leased This permits the operator to verify that all LEDs are operational See Procedure 3 Verifying Proper Power Up of the Ethernet Interface for more LED information Restart Button The Restart button serves four functions LED test Restart Restart and enter Software Load state and Restart and enter Maintenance state These four functions behave simi larly in all states except for the Software Load state While in this state pressing the but ton will cause an immediate restart into the Operational state if the software in the Ethernet Interface has not been corrupted or erased If the software has been corrupted or erased pressing the button will cause an immediate restart back into the Software Load state The following text describes Restart button behavior while not in the Soft ware Loa
157. rk LED LightEmitting Diode LISW LANInterface Status Word LLC Logical Link Control LSAP Link Layer Service Access Point MAC Medium AccessControl MB Megabyte 1 048 576bytes GFK 1084B 1 PersonalComputer compatible PDU Protocol Data Unit PLC ProgrammableLogicController RAM RandomAccess Memory SQE Signal Quality Error SRTP Service Request Transfer Protocol TCP Transmission Control Protocol TCP IP Transmission Control Protocol Intenet Protocol UDP User Datagram Protocol Glossary of Terms A 2 AAUI Port The connector on the network interface AAUI Cable The cable between the AAUI port and the transceiver some transceivers plug directly into the AAUI port thus requiring no separate AAUI cable Address Administration The assignment of LAN addresses locally or on a universal basis Address Field The part of a Protocol Data Unit PDU that contains an address Address Resolution Protocol The Internet Protocol that binds dynamically a high level Internet Address to a low level physical hardware address such as a MAC address Apple Attachment Unit Interface AAUI A lower power smaller connector adaptation of the IEEE 802 3 AUI ASCII Code The American Standard Code for Information Interchange is an information code standard by which digits letters symbols and control characters can be encoded as numbers Attachment Unit Interface AUI In a network node on a Local Area Network the interface between the m
158. rks to test reachability of destinations by sending them an ICMP echo request message and waiting for a reply Most nodes on TCP IP networks including the Series 90 30 Ethernet Interface implement a PING command The user should ping each installed Ethernet Interface When the Ethernet Interface re sponds to the ping it verifies that the interface is operational and configured properly Specifically it verifies that acceptable TCP IP configuration information has been stored to the Interface Pinging the Interface from a UNIX host or a PC Running TCP IP Software The ping be executed from a UNIX host or PC running TCP IP sincemost TCP IP communications software provides a ping command or from another Ethernet Interface When using a PC or UNIX host the user can refer to the documentation for the ping com mand but in general all that is required is the IP address of the remote host as a parameter to the ping command For example at the command prompt type ping 3 0 0 1 Determining If an IP Address Has Already Been Used It is very important not to duplicate IP addresses To determine if you have configured your Ethernet Interface with the same IP address as another node 1 Disconnect your Interface from the LAN 2 Ping the disconnected Interface s IP address If you get an answer to the ping then the chosen IP address is already in use by another node You must correct this situation by assigning unique IP addresse
159. rnet Interface automatically manages the establishment of communications and the periodic data transfer Parameters in the Command Block specify the frequency and direction of the transfer and the memory locations in the client and server to be used in the transfer Aborting and Re tasking a Channel There are four ways a channel can be aborted 1 When the PLC CPU is stopped all channels in use are aborted 2 A channel or all channels can be aborted by issuing an Abort Channel command 3 Achannelin use can be re tasked by issuing an establish command for its channel number This aborts the previous channel operation and then performs the new channel operation 4 Achannelis also automatically aborted if a fatal error occurs GFK 1084B Chapter 3 Programming Communications Requests 3 9 Retrieving Detailed Status on the Channel As discussed before there are several forms of status available to the ladder program These are all discussed in Section 4 One form of status is obtained through the Retrieve Detailed Channel Status RDCS command described later in this section Specifying a Network Address Allestablish commands must identify the remote server device with which data will be transferred The remote device may be specified in two ways By IP address or by a name previously defined with the proper IP address Examples of each network address type are provided for all establish commands For further information on the use of n
160. rt Data Rate 19200 Parity ODD Stop Bits 1 Flow Contrl NONE TurnA Delay NONE Timeout LONG Slot D 5 07 20 95 07 58 FANUC SERIES 90 30 90 20 MICRO v6 01 Page d GGGG EEEEE FFFFF AAA N 0 0 0 UC G GGG EEEE FFF AAAAA NNN U UC G GE U C GGG EEEEE UUU 0 U TITIT 000 U T T I O NN N AAAAA U U T T ONNN A AU U T T I ON NN A UUU T M MA A T 000 eee e e e e e e ee e e ee e e e e e Ce Program LANRDWT PLC PROGRAM ENVIRONMENT HIGHEST REFERENCE USED INPUT I 512 INPUT 510048 x OUTPUT 50 512 OUTPUT NONE gt INTERNAL M 1024 INTERNAL NONE n GLOBAL DATA G 1280 GLOBAL DATA NONE TEMPORARY T 256 TEMPORARY 10014 REGISTER R 2048 REGISTER 80158 ANALOG INPUT AI 128 ANALOG INPUT NONE s ANALOG OUTPUT 64 ANALOG OUTPUT NONE 25 PROGRAM SIZE BYTES 608 ce CREE ee ee ehe ee ehe ee ee ee ee ee ee ede ede ede ehe hee ee ee hee IK ede ede ede ede dede dede hee ee hee ee dee ee ee ER EK EH EH e Program LANRDWT C NLM90NLANNLAN
161. s TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B Chapter GFK 1084B 3 Programming Communications Requests This chapter describes how to program PLC to PLC communications over the Ethernet Network Details of the function and the Channel commands are pres ented here The chapter is divided into 5 sections Section 1 The Communications Request Section 2 The Function Block and Command Block Section 3 Channel Commands Section 4 Status Data Section 5 Controlling Communications in the Ladder Program Note This chapter applies only to PLCs being used as client PLCs to initiate communications No programming is required for server operation Section 1 The Communications Request Communications Request is a term used to describe all the user elements required for correctly initiating Channel Commands from a Series 90 PLC This section describes the elements of the Communications Request No programming of Communications Requests is required for PLCs acting as servers which are merely targets of other systems requests but do not themselves initiate re quests Structure of the Communications Request The Communications Request is made up of the following elements m The COMMREO Function Block ladder instruction The COMMREO Command Block m The Channel Command m Status Data Status word LAN Interface Status and Channel Status bits
162. s 36 51 Reserved set to 0 TCP IP Ethernet Communications User s Manual August1997 GFK 1084B Abort Channel 2001 The Abort Channel command immediately disconnects an active channel from its remote PLC and renders the channel idle The Channel Transfer bit the Channel Error bit and the Detailed Channel Status words for the channel are set to zero Example Command Block Abort Channel 5 Return the CRS word to R10 Dec Word 1 00002 0002 Length of Channel Command Data Block 2 words Word 2 00000 0000 Always 0 no wait mode request Word 3 00008 0008 Memory type of CRS word R Word 4 00009 0009 CRS word address minus 1 R10 Word 5 00000 0000 Reserved Word 6 00000 0000 Reserved Word 7 02001 0741 Abort Channel Command number Word 8 00005 0005 Channel number 5 Word 4 CRS word address is the only zero based address in the Command Block Only this address requires subtracting 1 from the intended address Word 7 Channel Command Number This command parameter requests that a channel be aborted If the command is processed successfully it will terminate the processing on the channel by the time success is indicated in the COMMREQ Status word Word 8 Channel Number The channel number specifies the channel to be disconnected 1 16 As a convenient way to abort all channels if the channel number parameter is 1 all channels in use will be aborted It is not an error to abort all c
163. sensitive and must be terminated with a null An error will result if the Network Address name is empty or if the name could not be resolved into the address of an actual device The Network Address name must have each pair of ASCII characters reversed within the PLC memory For example the name PLC_laa P 50H L 4cH C 43H 40H 1 31H a 61H a 61H would have 4c50H in Word 20 4043H in Word 21 6131H in Word 22 and 0061H in Word 23 Words 24 35 all contain 0000H Note The Network Address name of the remote PLC must be defined in the Name Table in this Ethernet Interface or be defined as the Network Address name of the remote PLC or else be defined at a reachable DNS Name Server See Appendix F for more information Words 36 51 Reserved set to 0 Words 52 55 Remote PLC Program Name Word 52 55 specify the case sensitive zero terminated and padded program name also called task name which can be found through the PROG Station Manager command on the server Ethernet Interface to be used with access to remote P or L memory These words are required only for access to such memory and will be ignored if the Memory Type field is not or L See Note below Word 56 59 Remote PLC Program Block Name Words 56 59 specify the case sensitive zero terminated and padded program block name which can be found in the program block declaration in the server ladder program to be use
164. ss 0 Remote PLC Register 3 of IP address 0 Remote PLC Register 4 of IP address 1 Remote PLC Program Name needed for access to remote P or L zero terminated and padded Remote PLC Program Block needed for access to remote L zero terminated and padded Word 4 CRS word address is the only zero based address in the Command Block Only this address requires subtracting 1 from the intended address Word 7 Channel Command Number Word 7 requests that a write channel be set up If the command is processed successfully it will result in attempting the specified number of transfers from the client to the server TCP IP Ethernet Communications User s Manual August 1997 GFK 1084B AChannel Command setup to issue a single write can have only one pendingwrite transfer GFK 1084B Word 8 Channel Number Word 8 specifies the channel to be used for the write This value must be in the range of 1 to 16 If the channel is out of range a command error indication will be placed in the COMMREQ Status word If the channel number is the same as a channel already in use the channel will be re tasked to perform this new command Word 9 Number of Write Repetitions Word 9 specifies the number of writes to be performed before automatically completing the communications request and closing the channel If this value is set to 1 only a single write will be issued If this value is set to 0 writes will be issued on the re
165. ss name char 19 20 Remote PLC Network address name char 21 22 Remote PLC Network address name char 23 23 Remote PLC Network address name char 24 25 Remote PLC Network address name char 26 27 Remote PLC Network address name char 28 29 Remote PLC Network address name char 30 31 Reserved set to zero Word 52 55 Remote PLC Program Name needed for access to remote or L zero terminated and padded Word 56 59 Remote PLC Program Block needed for access to remote L zero terminated and padded Word 4 CRS word address is the only zero based address in the Command Block Only this address requires subtracting 1 from the intended address Words 7 17 See the descriptions in Example 1 Word 18 Network Address Type Word 18 specifies the format of the remote PLC address In this release Word 18 must contain the value 1 or 3 A value of 1 indicates a dotted decimal IP address expressed using a separate register for each decimal digit A value of 3 indicates a Network Address name See Example 1 for information on using address type 1 Word 19 Network Address Length Word 19 specifies the length in words of the remote PLC Network Name address With an address type of 3 specified Word 19 must contain 32 Words 20 35 Network Address Name Works 20 35 specify the Network Address name of the remote PLC as an ASCII character string The Network Address name may contain up to 31 characters is case
166. sters R100 R107 Repeat the write indefinitely once every 7 seconds with a timeout of 500 ms for each write Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word 7 Word 8 Word 9 Word 10 Word 11 Word 12 Word 13 Word 14 Word 15 Word 16 Word 17 Word 18 Word 19 Word 20 Word 21 Word 22 Word 23 Word 24 27 Word 28 31 Dec Hex 00017 0011 00000 0000 00008 0008 00009 0009 00000 0000 00000 0000 02004 07d4 Sa 00006 0006 00000 0000 00003 0003 00007 0007 0032 0008 0032 0032 00000 0000 00001 0001 Length of Channel Command Data Block 17 25 words Always 0 no wait mode request Memory type of CRS word R CRS word address minus 1 R10 Reserved Reserved Establish Write Channel Command number Channel number 6 Number of write repetitions write indefinitely Time unit for write period 3 seconds Number of time units for write period every 7 seconds Timeout for each write 500 ms Local PLC Memory type from which to write data R Local PLC Starting address from which to write data 50 Remote PLC Memory type at which to store data R Remote PLC Starting address at which to store data R50 Remote PLC Number of memory units 8 registers Remote PLC Network address type IP address Remote PLC Network address length in words 4 Remote PLC Register 1 of IP address 3 Remote PLC Register 2 of IP addre
167. t MAC and Physical Layer standard IEEE 802 4 Token Bus MAP LANs and Physical Layer standard IEEE 802 5 Token Ring IBM MAC and Physical Layer standard Information Field That part of a protocol data unit PDU that contains data as opposed to the address field and command field Initiating Station The station from which an instance of communication a transaction originates Also referred to as client Interface Shortened form for Ethernet Interface The general term used in this manual to identify the GEnet hardware module with or without software that connects a PLC or CNC to a network See also LAN Interface Internet Any collection of networks and gateways that use the TCP IP protocols and function as a single cooperative virtual network specifically the world wide Connected Internet Internet Address A unique Internet address identifies each node on an IP network or system of connected networks The Internet address is assigned to the node by the user Also known as an IP address See also Physical Address Internet Control Message Protocol ICMP The Internet Protocol that handles error and control messages Internet Protocol IP The Internet standard protocol that defines the Internet datagram and provides the basis for the Internet packet delivery service See also Transmission Control Protocol TCP Inter Repeater Link IRL A mechanism for interconnecting two and only two repeater units
168. t Queue is full usually due to heavy CPU loading The client should retry later It is recommended that the client wait a minimum of 10 milliseconds before sending anoth er servicerequest ObH IllegalService Request The requested service is either not defined or not supported at the server PLC This value is returned in lieu of the actualservicerequest error 01h to avoid confusion with the normal successfulCOMMREQcompletion Call GE Fanuc Automation for assis tance 11H SRTP Error Codes at server An error was detected at the SRTP server See table of Minor Error codes below 82H InsufficientPrivilege at client PLC For Series 90 70 PLC the minor er ror code contains the privilege level required for the servicerequest 84H ProtocolSequence Error The CPU has received a message that is out oforder Call GE FanucAutomationforassistance 85H Service Request Error at the client PLC The minor error code contains the specific error code See table of Minor Error codesbelow 86H IllegalMailbox Type Servicerequestmailbox type is either undefined or unexpected Call GE FanucAutomationforassistance 87H The client PLC CPUsService Request Queue is full The client should retry later It is recommended that the client wait a minimum of 10 mil liseconds before sending another servicerequest 8bH IllegalService Request The requested service is either not defined or not supported This valu
169. t two digits of SYSID 00 in this example indicate the rack number the last two digits 04 in this example indicate the slot number of the Ethernet Interface m The TASK field of the COMMREO Function Block indicates which mailbox task ID to use for the specified rack and slot This field should always be zero 0 for the Ethernet Interface m The FT output CMROFLT in this example is turned on set to 1 if there were problems preventing the delivery of the Command Block to the Ethernet Interface In this case the other status indicators are not updated for this COMMREO Troubleshooting Your Ladder Program 3 44 As explained in Section 4 of this chapter there are several forms of status data which can be used in your ladder program The use of the LAN Interface OK bit in the LAN Interface Status Word was described in the ladder program fragment above Some of the status data can be used to troubleshoot your program in its developmental stage The two primary sources of this data are the FT Output on the COMMREO Function Block and the Status word CRS word FT Output is ON If after executing a Function the FT Output is ON then there is a programming error in one or more of the following areas Invalid rack slot specified The module at this rack slot is unable to receive Command Block m Task ID not valid Should be set to 0 m Data Block length is specified as 0 or greater t
170. ters 100 101 Return the Status word to R10 Dec Word 1 00004 0004 Length of Channel Command Data Block 4 words Word 2 00000 0000 Always 0 no wait mode request Word 3 00008 0008 Memory Type of CRS word R term local PLC is Word 4 00009 0009 CRS word address minus 1 R10 used here to identify the Word 5 00000 0000 Reserved clientPLC thePLC Word 6 00000 0000 Reserved that initiates the Word 7 02002 07d2 Retrieve Detailed Channel Status Command number communications request Word 8 00005 0005 Channel number 5 Word 9 00008 0008 Local PLC Memory type to store Detailed Chan Stat R Word 10 00100 0064 Local PLC Starting address R100 Word 4 CRS word address is the only zero based address in the Command Block Only this address requires subtracting 1 from the intended address Word 7 Channel Command Number The command parameter in Word 7 requests that Detailed Channel Status words be returned If the command is processed successfully the Detailed Channel Status words will be written to the location specified in Words 9 and 10 Then the CRS word will indicate successful completion of the command If the specified channel is not currently in use the latest status will be returned Word 8 Channel Number The channel number in Word 8 specifies the channel whose status is to be read This value must be a channel number in the range of 1 to 16 decimal Word 9 Local PLC Me
171. teway A special purpose dedicated computer that attaches to two or more networks and routes packets from one to the other In particular an Internet gateway routes IP datagrams among the networks to which it connects Gateways route packets to other gateways until they can be delivered to the final destination directly across the physical network Also sometimes referred to as a router Global Address Administration Address administration in which all LAN individual addresses are unique within the same or other Local Area Networks See also Local Address Administration Group Address An LLC address that identifies a group of network nodes on a Local Area Network Host A computer or workstation that communicates with stations such as PLCs or CNCs across a network especially one that performs supervisory or control functions Note that this same term is widely used in TCP IP literature to refer to any network node that can be a source or destination for network messages See also Hostid Hostid The hostid is the part of the IP address identifying the host on the network See also Netid IEEE 802 The IEEE 802 LAN series of standards are as follows IEEE 802 Overview and Architecture IEEE 802 2 The Logical Link Control LLC sublayer of OSI Data Link Layer common above all IEEE 802 Medium Access Control MAC sublayers TCP IP Ethernet Communications User s Manual August1997 GFK 1084B 1084 IEEE 802 3 CSMA CD Etherne
172. the COMM REQ Status word to R10 Send local PLC registers 50 57 to remote host Repeat the send 10 times once every 7 seconds with a timeout of 500 ms for each read Dec Word 1 00045 002d Length of Send Information Report Data Block 45 words Word 2 00000 0000 Always 0 no wait mode request Word 3 00008 0008 Memory type of CRS word R Word 4 00009 0009 CRS word address minus 1 R10 Word 5 00000 0000 Reserved Word 6 00000 0000 Reserved Word 7 02010 07 Send Information Report Channel Command number Word 8 00007 0007 Channel number 7 Word 9 00010 000A Number of repetitions send 10 times Word 10 00003 0003 Time units for send period 3 seconds Word 11 00007 0007 Minimum interval between host accesses every 7 seconds The termlocal PLC is Word 12 00050 0032 Timeout on each individual transfer response 500 ms used here to identify the Word 13 00008 0008 Local PLC Memory type from which to send data R clientPLC thePLC Word 14 00050 0032 Local PLC Starting address from which to send data R50 that initiates the Comriumcations Word 15 00008 0008 Local PLC Number of memory units 8 registers request Word 16 00000 0000 Reserved The term SRTP Word 17 00000 0000 Reserved Serveris used hereto Word 18 00003 0003 identify the Host Word 19 00032 0020 STER Word 20 19536 4c50 Word 21 16451 4043 Remote Host Network address type 3 Symbolic Name Remote Host Network a
173. the Network PLC Ladder Programming COMMREQ Chapter 3 ProgrammingCommunicationsRequests Troubleshooting the Interface on Chapter 4 Troubleshooting the Network GFK 1084B Chapter 1 Introduction 1 5 Chapter Installing the Ethernet Interface 2 This chapter describes the basic features of the Ethernet Interface its installation config uration and a procedure for its initial checkout on your Ethernet cable The chapter first provides a hardware overview of the Ethernet Interface It is then divided into four Installation Procedures each providing an overview of the procedure and then explain ing the detailed steps to be performed As you work through a procedure you may encounter references to the appendices and other chapters in this manual These references provide more detailed information about the subject under discussion The installation procedures described in this chapter are listed below m Procedure 1 Mounting the Ethernet Interface on the PLC Baseplate Required Procedure 2 Configuring the Ethernet Interface Required Procedure 3 Verifying Proper Power Up of the Ethernet Interface Required Procedure 4 Pinging the Ethernet Interfaces on the Network Optional Some of the procedures require prior Ethernet cable plant design and installation By completing the Installation Procedures you will gain an understanding of the parts of the network and how they fit together You will also hav
174. the time units are specified in Table 3 1 Word 11 Number of Time Units for Send Period Word 11 specifies the number of time units for the send period The send period is in effect even when the Channel Command is setup to issue a single send Example Send Period Calculation If Word 10 contains a value of 3 specifying seconds as the time unit and Word 11 contains a value of 20 then the send period is 20 seconds A send will normally be issued at the start of each send period If the pending transfer has not completed during the send period the Channel Error bit and Detailed Channel Status words will be set to indicate a non fatal period error The pending transfer can still complete after the period error occurs For Channel Commands set up to issue multiple sends the next transfer will be issued only after the pending transfer completes If the Number of Time Units is zero a subsequent transfer will be issued as soon as the previous transfer completes In this case no period errors are reported by the Channel Error bit Word 12 Timeout for Each Send Word 12 specifies the time in hundredths of a second the Ethernet Interface will wait for a send transfer to complete before setting the Channel Error bit and Detailed Channel Status bits to indicate a non fatal timeout error The transfer can still complete even after a timeout occurs As a result an application can choose what to do if one occurs If the timeout value is specified as
175. tion Manager Port B 2 Serial ports 2 4 Series 90 PLC memory types 3 13 Server Capability 1 1 Server PLC 3 11 3 15 3 18 3 21 Simple isolated network configuration 2 14 Software Loader 2 19 E 1 Software Loader port 2 4 B 4 Cable Illustration B 5 Cables part numbers B 5 Configuring 2 12 Pinouts B 4 SQE 2 7 States of the Ethernet Interface 2 18 Station Manager port 2 4 B 2 Cable B 3 Configuring 2 12 Pinouts B 2 Settings B 2 Station Manager software 1 3 Status address location 2 10 2 14 Status bits 3 2 3 4 3 32 3 33 Status data 3 4 Status on a channel 3 10 Subnet mask 2 10 2 14 C 3 Subnets C 3 T 10Base2 1 3 B 7 Index 3 Index Index 4 10Base5 1 3 B 7 10BaseE 1 3 7 10BaseT 1 3 B 7 10Broad36 1 3 Terms Glossary A 2 Thick wire 1 3 Thin wire 1 3 Time units for command period 3 12 3 19 3 25 Timeout for Channel Commands 3 12 3 19 3 25 Transceiver Configurations B 7 Transceiver port 2 5 Troubleshooting Ladder programs 3 44 Summary of diagnostic tools with refer ences 4 1 Using LEDs 2 18 Using PLC Fault Table 4 2 Using the Status bits and Communica tions Status words 3 33 U Updating Ethernet Interface software 2 3 E 1 Updating software E 1 Waiting for configuration from PLC 2 19 Waiting for IP address 2 19 GFK 1084B
176. tions 1 improper signals received from the medium 2 collision detected or 3 SOE message test Slot Time in a CSMA CD network Minimum bitrate dependent unit of time which in case of collision is used to determine the delay after which network nodes may attempt to retransmit Slot time for all IEEE 802 3 10 Mbps implementations is 51 2 usec 512 bit times Soft Switches Basic system information set up by the Logicmaster 90 Configurator or CIMPLICITY Control and transferred to the LAN Interface upon powerup or restart Station computer PLC or other device that connects to one or more networks See also Node Station Address Each node on an Ethernet network must have a unique MAC address which is different from all other nodes on the network This is a 12 hexadecimal digitMAC address See also MAC Address Subnet Mask The subnet mask is a mechanism to logically divide a large network into smaller subnets according to your local assignment of IP addresses to nodes on the network Nodes on the network which have their IP addresses alike for the bits specified in the subnet mask can talk to each other directly nodes whose IP addresses are not alike in these same bits must talk indirectly via an intermediate gateway or router Appendix AGlossary 7 As described in an appendix to your Ethernet module user manual the 32 bits of an IP address are divided between a net id part and a host id part The class of the IP address
177. ture They can be broken into two categories Channel API commands and Station Manager commands TCP IP Ethernet Communications User s Manual August1997 GFK 1084B The Channel API commands have been enhanced to allow for the use of symbolic names in the remote node addressing fields of the COMMREQ Function Block This is described in further detail in the Chapter 3 of this manual In addition to the Station Manager commands described previously in this appendix the following commands involve use of the name services REM PING NAMETBL MYNAME RESOLVE and BROWSEDDP These are described in detail in the TCP IP Ethernet Communications Station Manager Manual GFK 1186 GFK 1084B Appendix F Assigning IP and MAC Addresses F 3 1084 AAUI port 1 3 2 5 B 6 Pinouts B 6 Abbreviations and Acronyms A 1 Abort Channel command 2001 3 29 Aborting a channel 3 9 Acronyms and Abbreviations A 1 Addresses IP and MAC C 1 Attachment of the Ethernet Interface to the LAN 1 3 B Board indicators 2 3 Cables Ethernet 1 3 B 7 Software Loader port B 5 Station Manager port B 3 Capabilities of the Ethernet Interface 1 2 Channel Command 3 2 3 3 Channel Commands Abort Channel 2001 3 29 Channel number 3 12 3 19 3 25 3 29 3 30 Command period 3 12 3 19 3 25 Establish Read Channel 2003 3 11 Establish Write Channel 2004 3 18 Local 3 29 3 31 Number of repetitions 3 12 3 19 3 25 R
178. ut COMMREQs The STAT command provides the current status on the operation of the Interface Refer to GFK 1186 TCP IP Ethernet Communications Station Manager Manual for information on how to access and use the Station Manager software What to do if you Cannot Solve the Problem If after using the troubleshooting guide you still cannot solve your problem call GE Fanuc Automation Please have the following information available when you call m The Name and Catalog Number marked on the product label on the outside of the side wall of the Interface cover m Description of symptoms of problem Depending on the problem you may also be asked for the following information The ladder logic application program running at the time the problem occurred A listing of the configuration parameters for the Ethernet Interface that failed A description of the network configuration number of stations length of trunk cable number of taps or transceivers and the manufacturer and model of all devices connected to the network at the time of failure PLC Fault Table The PLC Fault Table can be accessed in Logicmaster 90 configuration or programming software or CIMPLICITY Control If you are experiencing a problem with the Ethernet Interface check the PLC Fault Table for a fault message then refer to Table 4 1 in this chapter for instructions on what to do about the problem When displaying a PLC F
179. vents in the exception log is 16 Logical Link Control LLC Protocol In a Local Area Network the protocol that governs the exchange of frames between network nodes independently of how the transmission medium is shared MAC Address The Medium Access Control MAC address is a 12 digit hexadecimal number that identifies a node on a local network Each Ethernet Interface has its own unique MAC address Medium Access Control MAC Ina local area network LAN the part of the protocol that governs access to the transmission medium independently of the physical characteristics of the medium but taking into account the topological aspects of the network in order to enable the exchange of data between network nodes Medium Access Control Protocol In a Local Area Network the protocol that governs access to the transmission medium taking into account the topological aspects of the network to enable the exchange of data between network nodes Medium Attachment Unit MAU In a network node on a Local Area Network a device used to couple the data terminal equipment DTE to the transmission medium Often called transceiver The MAU may be built into the DTE or it may be a separate unit that attaches to the DTE through an AUI Multicast Address A LAN group address that identifies a subset of the network nodes on a Local Area Network Netid The netid is the part of the IP address identifying the network on which the node resides See also Host
180. will be lost The Restart button is not operable during the diagnostic phase of power up The Ethernet Interface is in diagnostic phase when the OK LED is BLINKING fast and other LEDs are OFE There are two serial ports on the Ethernet Interface the Station Manager port port 1 and the Software Loader port port 2 The Station Manager Port The 6 pin RJ 11 phone jack RS 232 port is used to connect a terminal or terminal emulator to access the Station Manager software on the Ethernet Interface A cable is needed to connect the terminal or emulator to the Ethernet Interface see Appendix B Communications Ports Characteristics The Software Loader Port The 15 pin D type RS 485 port is used to connect to the PC Software Loader in case the communications software in the Ethernet Interface needs to be updated The characteristics of this port are given in Appendix B Communications Ports Characteristics TCP IP Ethernet Communications User s Manual August1997 GFK 1084B AAUI Transceiver Port The 14 pin AAUI port provides the electrical and mechanical interface to the user pro vided IEEE 802 3 transceiver cable which connects the AAUI Port to an external Ether net compatible transceiver see Appendix B for the characteristics of the AAUI Port The external transceiver is directly connected to the Ethernet cable Default Station Address Label The Default Station Address label lists the MAC address to be used by this I
181. zero no timeout errors will be reported For most applications a timeout need not be specified because the send period in effect acts as a timeout Word 12 should be zero for no timeout However there are two special circumstances in which specifying a timeout is recommended When the number of time units word 11 is zero so that a subsequent transfer will be issued as soon as the previous transfer completes and no period errors are reported In this case a timeout value can be specified so that timeout errors will be reported by the Channel Error bit When the send period is very long minutes or hours In this case a shorter timeout value can be specified so the application doesn t have to wait for the send period to expire before taking action Word 13 Local PLC Memory Type Words 13 14 specify the location in the local PLC from where the Ethernet Interface will get the data to be written to the remote SRTP server Permissible memory types are given in Table 3 2 Chapter 3 Programming Communications Requests 3 25 Word 14 Local PLC Memory Starting Address Word 14 specifies the starting address in the local PLC from which the data is to be sent 1 based Word 15 Local PLC Number of Memory Units Word 15 specifies the number of memory units that are to be transferred The units associated with the memory may be bits bytes or words depending on the memory type specified in Word 13 For example if the memory type is
Download Pdf Manuals
Related Search
Related Contents
Manuale dellHutente Hotpoint - ImageBank Bedienungsanleitung Daewoo Electronics KOG-37DP0S User's Manual 取扱説明書 - amadana 本データの再配布を禁止します。ミリオン出版株式会社 - HERO-X!! Polar RC3 GPS Сохранить - SPARKY.eu Copyright © All rights reserved.
Failed to retrieve file