Home

Series 90 PLC SNP Communications Driver User`s Manual, GFK

image

Contents

1. IC690CBL701 OR EQUIVALENT RS 232 RS 422 RS 422 244508 RS 232 CONVERTER TWISTED SHIELDED SHIELDED PAIRS 690 900 PAIRS PIN 25 RT gt 2 LT 3 RD Le e foo pep a 2 2 Le R RD 3 rm 2 10 o 0 DCD B N 3 09 OR LI RTS 4 11 5 CTS o 00 e RD A 10 93 LX XUI 12 SD A 00 WORKMASTER CTS 5 1117120 DTR E 09 oo RD B tt II 13 SD B P 00 RS 032 8 1 8 o ool lt 50 12 11 1 10 RD A 0 SERIES 9 Li F o 00 lt SD B 3 IT 00 90 PLC PORT GND 7 rr 7 GND 9 MEE RT 9 1 9 RD 09 0 9 CTS A 15 6 RTS A F gt o Fg 0 0 RS 422 9 9 lt B 8 X 14 09 MALE FEMALE I 0 0 Bis 94 PORT a F 00 lt 6 15 CTS A 00 bg 00 00 5 14 TT 117 8 CTS M 0 0 5V 5 11 i 5 0 WH 1 sup o 0 0 lt 7 X 7 ov 09 25 PIN 0 149294 sup 1 fF 9 MALE 25 15 15 PIN 15 PIN 15 PIN FEMALE FEMALE MALE MALE FEMALE RS 232 5 422 PORT PORT POWER SOURCE FOR POINT TO POINT CONNECTION 10 FEET 3 METERS ONLY CONVERTER POWER SOURCE BEYOND 10 FEET 3 METERS AND FOR MULTIDROP CONNECTION MUST BE EXTERNAL SOURCE
2. 3 10 Table 3 4 PLC Major Minor Code Types 3 11 Table 3 5 Reference Data Segment Selectors 3 12 Table 3 6 PLC Time Date Destination 3 16 Table 3 7 PLC Time DateSource Buffer 3 17 Table 3 8 Fault Header 3 17 Table 3 9 PEC ENY s Secs e Ce e ee e ete Ce d ides cte atta a edes 3 18 Table 3 10 1 O Fault ENY iR EHE 3 19 Table 3 11 Fault Action Codes ose ene t te heme here n 3 20 Table 3 12 Fault Group Codes 3 20 Table 3 13 Major Error Status Codes 3 23 Table 3 14 Minor Error Status Codes Major Code 5 3 24 Table 3 15 Minor Error Status Codes Major Code 10 3 25 Table A 1 Connector Cable Specifications A 3 Table A 2 Series 90 PLC 5 422 Serial Port Pin Assignment A 4 Table A 3 Workmaster RS 232 Serial Port Pin A 5 Table A 4 IBM AT XTSerialPort Pin Assignment
3. 1 1 2 A 6 Table 5 RS 232 RS 422 Converter Pin Assignment A 8 GFK 0585A Series 90 PLC SNP Communications Driver User s Manual April 1994 ix Chapter 1 Introduction The Series Ninety Protocol SNP driver software is used to issue commands to send data to and retrieve data from a Series 90 Programmable Logic Controller PLC for operator interface or other applications The SNP driver handles the details of the SNP protocol allowing the application programmer to focus on the application software SNP Driver Overview GFK 0585 The SNP driver will reside in the host device supporting the master side of the communication link only The application software via the driver initiates all communications and the slave Series 90 PLC CPU responds to the master s requests There is no peer to peer capability with the SNP protocol i e a PLC cannot be the master the PLC can only be a slave The SNP driver supports the following communication requests Open Port allows the application program to open the serial port using the installed SNP Driver s port configuration Close Port allows the application program to close the serial port Change CPU ID allows the application program to change the SNP Driver s target CPU ID Change T1 allows the application program to change the SNP Driver s T1 timer value for subsequent communication sessions Chan
4. ox ed 3 7 Programmer Logon 3 9 Return Controller Type and 3 10 Read Write System 3 11 Return PLC Time Date 2 2222 eo Ier 3 16 Set PLC Time Date ot IA Ne e 3 16 Return Fault Table 3 17 Fault Entry Format ere CREE Sed 3 18 Clear Fault UE EE HERE RUE 3 21 Set PEC State oh ee 3 21 Example C Program este HER AI 3 22 Error Status Codes ste eL Ee ex 3 23 AppendixA Serial Port and Cables A 1 What this Appendix Contains A 1 Section 1 RS 422 RS 485 Interface and Cabling Information A 2 Cable and Connector Specifications A 3 Series 90 PLC SerialPort eret A 4 Workmaster Serial Port A 5 IBM AT XTSerialPort A 6 RS 232 RS 422Converter A 7 Section 2 The Isolated Repeater Converter IC655CCM590 A 9 Description of the Isolated Repeater Converter A 9 System Configurations 13 Cable Diagrams e
5. 1 C Program C Source File Cable Point to Point Specifications Index Cable Diagrams for Isolated Repeater Converter A 15 Clear Fault Code Types System Memory Common Mode A 2 CONFIG SNP Configuration Parameters Connection Multidrop 1 6 Point to Point RS 232 RS 422Converter Connection Definition of Terms 1 8 Connection Modem 1 6 Connection Multidrop 1 6 Connector Specifications Controller ID Request Type B10 Controller Destination Buffer Converter Date Default Timers Definition of Terms Destination Buffer Diskette Files B 1 Driver RS 422 E Electrical StandardsA 1 A2 Error Status Codes B 23 Establish Session 7 1 3 22 Executable Files B 1 Index 1 Index Index 2 F Fault Entry Format 3 18 Fault Table Fault Action Fault Group Codes I OFault 8 19 PLC Fault 8 18 Fault Table Clear Fault Files Diskette Files Application Notes C 1 Function Calls G Get Version 7 I OFault Entry Isolated Repeater Converter Cable Diagrams A 15 System Configurations A 13 L License Agreement 2 1 Logon Series 90 PLC B 9 M Modem Modem Turn Around Time Multidrop Multidrop Configuration PLC CPU Code Types PLC Fault Entry Point to Point RS 232 A 19 RS 422 Programmer Logon 359 Receiver A 1 Repeater Converter A
6. 45239 Ji SW CTS J2 PIN PIN Ye sole r3 EN RD 5 0 00 4 RD Cu ra 2 sp 00 o 00 Ld E 5 CTS 5 90 05 aoro 00 SJ STS Te RTS 00 CMM 00 repeater 00 GND 7 7 GND 10 gx 0 CONVERTER 90 i 4 A 00 BRICK 0 0 S 0 09 Fg Lg DoD 00 1 o 20 DTR 5 9 00 1 00 o 11 Fd 00 0 0 Ae 11 SHLD 0 25 PIN 25 PIN 25 PIN 25 PIN FEMALE MALE MALE FEMALE Figure A 14 Cable E RS 232 Converter to CMM A 18 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Serial Cable Diagrams This section describes only a few of the many and various Point to Point and Multidrop serial port connections for Series 90 PLCs In the point to point configuration only two devices can be connected to the same communication line The communication line can be directly connected using RS 232 50 feet 15 meters maximum or RS 422 4000 feet 1200 meters maximum Modems can be used for longer distances Note The cable connector for the Series 90 70 and Series 90 30 PLCs serial port must be a right angle connector in order for the hinged door on the module to close properly Refer to Table A 1 Connector Cable Specification Caution In configurations where ground potentials may exist between components ground isolation must be provided Ground potential di
7. Intelligent Platforms Programmable Control Products Series 90 PLC SNP Communications Driver User s Manual GFK 0585A February 2010 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 In situations 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 Intelligent Platforms assumes no obligation of notice to holders of this document with respect to changes subsequently made GE Intelligent Platforms makes no representation or warranty expressed implied or statutory with respect to and assumes no responsibilit
8. TERMINATION RESISTANCE FOR THE RECEIVE DATA RD SIGNAL NEEDS TO BE CONNECTED ONLY ON UNITS AT THE END OF THE LINES THIS TERMINATION IS MADE ON THE SERIES 90 PLC PRODUCTS BY CONNECTING A JUMPER BETWEEN PIN 9 AND PIN 10 INSIDE THE 15 PIN D SHELL WITH THE FOLLOWING EXCEPTION FOR SERIES 90 70 PLCs CATALOG NUMBERS 1C697CPU731 AND IC697CPU771 THE TERMINATION FOR RD AT THE PLC IS IMPLEMENTED BY A JUMPER BETWEEN PIN 9 AND PIN 11 Figure 17 Workmaster or IBM XT compatibles Personal Computer to Series 90 PLCs A 20 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 RS 422 Point to Point Connection If your host device is equipped with a RS 422 card you can connect directly to Series 90 PLCs as illustrated in Figure A 11 HOST a44509 COMPUTER PLC PIN SHIELDED TWISTED PAIRS PIN RD A 12 SD A RD B 13 SD B SD A 10 RD A SD B XOX 11 gt 9 RD CTS A 6 RTS A CTS B 14 RTS B 5 8 CTS B RTS A KEA 15 3 2 GND 7 GND SHLD v o 1 SHLD 4 UP TOA MAXIMUM OF 50 FEET 15 2 METERS WITHOUT ISOLATION TERMINATION RESISTANCE FOR THE RECEIVE DATA RD SIGNAL NEEDS TO BE CONNECTED ONLY ON UNITS AT THE END OF THE LINES THIS TERMINATION IS MADE ON THE SERIES 90 PLC PRODUCTS BY CONNECTING A JUMPER BETWEEN PIN 9 AND PIN 10 INSIDE THE 15 PIN D
9. Table 3 3 Controller Type and ID Destination Buffer Bytes Description Bytes Description Bytes 1 8 CPU Controller ID Bytes23 26 Total Length of ProgramBlocks Byte 9 PLC Series 90 Major Type Bytes27 28 Sum of Program Blocks AdditiveChecksums Byte 10 PLC Series 90 Minor Type Bytes 29 32 Sum of Program BlocksCRC Checksums Byte 11 Number of Control Programs Bytes 33 34 Length of Configuration Re cords Byte 12 Reserved Bytes 35 36 Sum of Configuration Additive Checksums Bytes 13 20 Main Control ProgramName Bytes 37 40 Sum of Configuration CRC Checksums Bytes 21 22 Number of ProgramBlocks 3 10 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Major Minor Code Types Table 3 4 PLC Major Minor Code Types Major Type Description Minor Type Description Series 90 70 PLC CPU Series 90 70 Model 731CPU_ 90 70 Model 731 CPU 32 20h Series 90 70Model732CPU_ 71 Z Series 50 70Model771CPU_ 72 pam 80 S0h Series90 70 Model 780CPU_ SIR 59 se SER 10h Series90 20 PLC CPU Series90 30PLC CPU 20h Zh The Return Controller Type and ID function call should return success AX 0 as long as a communication session has been established and no communication errors i e parity error overrun error framing error have been encountered Read Write System Memory This section describes the function requests that allow the user to read and write
10. 5 Q filename the 0 symbol must precede the filename Two methods of specifying a filename and specifying individual parameters can be used interchangeably on the same command line For instance the following is legal C gt SNP BAUD 9600 config snp PORT 1 If a variable is mentioned more than once the second definition is used For instance if a file named CONFIG SNP contains BAUD 19200 PORT 3 and the following command line is entered C gt SNP BAUD 9600 config snp PORT 1 then the baud rate is set to 19200 and the port is set to COMI If you specify a configuration file that does not exist the driver installation software will display an error message In the previous example if the file CONFIG SNP does not exist the following message is displayed Configuration file not found config snp GFK 0585 Chapter 2 Installation and Configuration 2 7 Chapter SNP Driver Functions 3 This chapter describes the SNP driver interface and function requests when operating in the MS DOS environment SNP Driver Interface AIISNP Driver function calls are invoked by interrupt 53H decimal 83 The individual driver functions are selected by placing the appropriate function number in the AX register Any parameter data required for a specific driver function are passed in the other registers e g BX CX DX ES DI All SNP Driver function calls return a status the AX register where 0 gt Driver function call
11. April 1994 Close Port The Close Port Request allows the application program to close the serial port The Close Port Request is issued by setting up the AX register and invoking the driver interrupt routine AX 1 Close Port function number This request cannot fail therefore AX always returns zero success Change CPU ID The Change CPU ID Request allows the application program to change the SNP Driver s CPU ID This request does not affect any communications session that may currently be active with another PLC CPU The next time an Establish Session Request is issued the new CPU ID specified by the Change CPU ID Request is used in the establish session sequence in order to connect to a PLC CPU whose CPU ID is a match The Change CPU ID Request is issued by setting up the following registers and invoking the driver interrupt routine Change CPU ID function number ointer to the new CPU ID tg If the request successfully completes the AX register returns zero success Otherwise AX contains an error status The only reason for an error status is Invalid input parameter in request where the CPU ID pointed to by ES DI was invalid either the first character of the CPU ID was not alphanumeric or it was not NUL terminated Change T1 Timer The Change T1 Timer Request allows the application program to change the SNP Driver s T1 timer value for subsequent communication sessions The T1 timer value for
12. Table A 1 Connector Cable Specifications Item Mating Connectors Cable Description Series 90 PLC Serial RS 422 port with metric hardware Connector 15 pin male D SubminiatureType Cannon DA15S solder pot Hood AMP 207470 1 connector shell Hardware Kit AMP 207871 1 Kit includes 2 metric screws and 2 screw clips WorkmasterII Serial RS 232 port with standard RS 232 connector Connector 25 pin female D SubminiatureType Cannon DB25S solder pot with DB110963 3 hood or equivalent standard RS 232 connector Workmaster Serial RS 232 port with standard RS 232 connector Connector 9 pin female D SubminiatureType Cannon DE9S solder pot with DE110963 1 hood or equivalent standard RS 232 connector IBM AT XT Serial RS 232 port with standard RS 232 connector Connector 9 pin female D SubminiatureType Cannon DE9S solder pot with DE110963 31 hood or equivalent standard RS 232 connector RS 232 RS 422Converter one 15 pin male and one 25 pin male connector 15 pin male connector requires metric hardware same connector hood and hardware as for Series 90 PLC listed above 25 pin male D Subminiature Type Cannon DA25S solder pot with DB110963 3 hood or equivalent standard RS 232 connector Computer grade 24 AWG minimum with overallshield Catalog Numbers Belden 9505 Belden9306 Belden9832 These cables provide acceptable operation for data rates up to 19 2 Kbps as follows RS 232 50feet 15
13. e Insufficient privilege must be level 2 or higher Note For Series 90 30 PLCs with Release 1 x CPU firmware privilege level 3 or higher is required Return Fault Table The Return Fault Table Request returns the fault data from either the PLC Fault Table or theI O Fault Table stored in the PLC CPU The PLC Fault Table has a maximum of 16 faults and the I O Fault Table has a maximum of 32 faults The Return Fault Table Request is issued by setting up the following registers and invoking the driver interrupt routine AX 29 Return Fault Table function number BX 1 I O Fault Table 2 PLC Fault Table DX Fault Table index CX number of faults to return ES DI pointer to the destination buffer in memory where the user wishes the returned Fault Table data to be stored The destination buffer must be allocated by the application software prior to invoking the Return Fault Table function call The size of the destination buffer must be large enough to handle all the fault data being returned The first twelve 12 bytes of the destination buffer returned to the user is the fault header which has the following format Table 3 8 Fault Header Format Byte Description Bytes 1 6 Time Stamp of last Clear Chapter 3 SNP Driver Functions 3 17 Bytes 7 8 Faults since last Clear Bytes 9 10 Faults in the Table Bytes 11 12 Fault Entries in this Response The remaining bytes in the d
14. MOUNTED ON THE CMM IT IS NOT RECOMMENDED TQ USE TERMINAL STRIPS OR OTHER TYPES OF CONNECTORS ALONG THE LENGTH OF THE TRANSMISSION LINE TO OTHER DEVICES MAXIMUM OF 8 DEVICES ON A MULTIDROP TERMINATE THE RD SIGNAL ONLY AT END OF MULTIDROP CABLE TERMINATE CONNECTION ON FIRST AND LAST DROPS ONLY ON THE CMM INSTALL JUMPER TO CONNECT INTERNAL 120 OHM RESISTOR ON THE ISOLATED REPEATER CONVERTER INSTALL 150 OHM RESISTOR SUPPLIED ON THE 311 ONLY PORT 2 CAN SUPPORT RS 422 RS 485 Figure A 12 Cable C 5422 Twisted Pair Series 90 PLC SNP Communications Driver User s Manual April 1994 0585 SHIELDED MAKE CONNECTIONS a44932 TWISTED INSIDE D CONNECTORS SW on J1 PIN PAIRS 1 XX N 13 v L L 2125 RDG SD A 0 XX L 1121 5048 44 SERIES 90 ISOLATED L1 Ll e 1 110 ATS o CMM REPEATER 11 XX 114 22 RTS CONVERTER Fg NI gt 14 PORT BRICK NI Fg pO OHMS E 00 oe VW 11 11 x 324 TERM o 2 7 GND 0 4 1 SHLD 25 px 25 PIN 25 PIN FEMALE MALE FEMALE x XxX xX i WHEN WIRING RS 422 485 MULTIDROPCABLES x 1
15. reference data from the Series 90 PLC Read System Memory Request Write System Memory Request Discrete data may be accessed as bit data or byte data Registers and Analog inputs and Analog outputs may be accessed as word data only Each possible access mode bit byte or word for all reference memory types is assigned a distinct selector Table 6 4 lists the reference data segment selectors accessible to the SNP user along with the size of the corresponding memory type on a per model basis Read requests to memory types within the table require a privilege level of 1 or higher Write requests require a privilege level of 2 or higher It should be noted that the 5 discrete memory types are READ ONLY GFK 0585 Chapter 3 SNP Driver Functions 3 11 Table 3 5 Reference Data Segment Selectors Selector Access Memory Decimal Hex Mode Discrete Inputs 9651 70 46 bit 16 10 byte Discrete Outputs 72 48 bit 18 12 byte Discrete Temporaries T 74 4A bit 20 14 byte Discrete Internals M 76 4 bit 22 16 byte SA Discretes 78 4E bit 24 18 byte SB Discretes 80 50 bit 26 1A byte SC Discretes 82 52 bit 28 1C byte S Discretes 84 54 bit 30 1E byte Genius Global Data G 86 56 bit 56 38 byte Analog Inputs 10 0 word Analog Outputs 12 0 word Registers R 08 08 word The maximum addressable ranges for each memory type depends on the
16. 1 Smp 1 SHLD lt 0 25 25 25 25 15 15 PIN 15 PIN 15 MALE FEMALE MALE FEMALE FEMALE MALE MALE FEMALE RS 232 RS 485 PORT PORT POWER SOURCE FOR POINT TO POINT CONNECTION 10 FEET 3 METERS ONLY CONVERTER POWER SOURCE BEYOND 10 FEET 3 METERS AND FOR MULTIDROP CONNECTION MUST BE EXTERNAL SOURCE TERMINATION RESISTANCE FOR THE RECEIVE DATA RD SIGNAL NEEDS TO BE CONNECTED ONLY ON UNITS AT THE END OF THE LINES THIS TERMINATION IS MADE ON THE SERIES 90 PLC PRODUCTS BY CONNECTING A JUMPER BETWEEN PIN 9 AND PIN 10 INSIDE THE 15 PIN D SHELL WITH THE FOLLOWING EXCEPTION FOR SERIES 90 70 PLCs CATALOG NUMBERS 1C697CPU731 AND IC697CPU771 THE TERMINATION FOR RD AT THE PLC IS IMPLEMENTED BY A JUMPER BETWEEN PIN 9 AND PIN 11 Figure A 15 Workmaster 25 pin Serial Connection to Series 90 PLCs GFK 0585 Appendix A Serial Port and Cables A 19 IC690CBL702 OR EQUIVALENT RS 232 RS 422 RS 422 244507 RS 232 CONVERTER TWISTED SHIELDED SHIELDED PAIRS 690 900 PAIRS PIN a PIN PIN PIN RD 2 Tp 2 7D fo pop a 2 2 Go TD 111 3 RD p 0 PCD B 3 3 09 COMPATIBLE gt RTS 7 11 5 00 oo RDA 10 PTT 12 SD A 00 CTS 8 1 120 0 oo RD B 11 NT E 13 S
17. Connection 6 NC 6 RTS A Request to Send 7 GND SignalGround 7 OV Ground Connection 8 DCD NC 8 CTS B Clear to Send 9 RT TerminatingResistor 9 19 NC 10 RD A Receive Data 11 RD B Receive Data 20 DTR JMP See FigureA 4 12 SD A Send Data 13 SD B Send Data 21 25 NC 14 RTS B Request to Send 15 CTS A Clear to Send NC NoConnection SD Send Data and RD Receive Data are the same as TXD and RXD used int eh Series Six PLC and B are the same as and and B denote outputs and A and B denote inputs Refer to the cable diagrams in the following pages for specific device RS 232 RS 422 converter connections A 8 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Section 2 The Isolated Repeater Converter IC655CCM590 This section describes how to use the Isolated Repeater Converter The section covers the following topics Description of the Isolated Repeater Converter System Configurations Cable Diagrams This unit can be purchased from GE Intelligent Platforms Please contact any GE Intelligent Platforms sales office or field service representative Note The catalog number for the Isolated Repeater Converter was previously IC630CCM390 Description of the Isolated Repeater Converter The Isolated Repeater Converter 1 655 590 can be used for the following pur poses To provide ground isolation where a common ground cannot be established be tween compon
18. NC NC Not Connected 22 Ring Indicate 23 25 NC For more information about the Workmaster industrial computer serial port refer to manuals GFK 0401 Workmaster II PLC Programming Unit Guide to Operation GEK 25373 Workmaster Programmable Control Information Center Guide to Operation GFK 0585 Appendix A Serial Port and Cables A 5 Serial Port The IBM XT or compatible computers RS 232 serial port is a 9 pin D type male connector as shown in the figure below a44523 IBM AT XT 5 9119 991116 1 Po Figure A 3 IBM AT XT Serial Port Table A 4 IBM AT XT Serial Port Pin Assignment IBM AT Signal Description IBM XT Signal Description Pin No Pin No 1 DCD Data Carrier Detect 1 NC 2 RD Receive Data 2 TD TransmitData 3 TD TransmitData 3 RD Receive Data 4 DTR Data TerminalReady 4 RTS Request to Send 5 GND SignalGround 5 CTS Clear to Send 6 NC 6 NC 7 RTS Request to Send 7 GND SignalGround 8 CTS Clear to Send 8 DCD Data Carrier Detect 9 NC 9 DTR Data TerminalReady A 6 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 RS 232 RS 422 Converter The RS 232 RS 422 Converter IC690ACC900 can be used to convert from RS 232 to RS 422 communications The converter has one 15 pin female D type port and one 25 pin female D type port This converter unit can be purchased from GE Intelligent Platforms Please contact
19. OModuleSoftwareFailure 17 11 Program Block Checksum Mismatch 18 12 Low Battery in the PLC CPU 19 13 Constant Sweep Exceeded 20 14 PLC Fault Table Full 21 15 I OFault Table Full 22 16 User Application Fault 128 80 System Bus Failure 129 81 No User s Program on Power up 130 82 Corrupted User s Ram Detected on Power up 131 83 Window Completion Failure in Constant Sweep Mode i e all windows failed to receive their allotted time 132 84 Password Access Failure 133 85 Genius Block Address Mismatch with User Configuration Reference Address 134 86 NULLSystem Configuration for RUN Mode 135 87 PLC CPU Software Failure 136 88 More than the allowable number of I O Bus Controllers were found in the system 137 89 Communication failure during a store operation by the programmer 3 20 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Clear Fault The Clear Fault Table Request clears either the PLC Fault Table or the I O Fault Table stored in the PLC CPU The Clear Fault Table Request is issued by setting up the following registers and invoking the driver interrupt routine AX BX 30 Clear Fault Table function number 1 I O Fault Table 2 PLC Fault Table The Clear Fault Table function call returns success AX 0 if the request successfully completes Otherwise AX contains an error status The most common reason for an error status is Insufficient privilege must be
20. SHELL WITH THE FOLLOWING EXCEPTION FOR SERIES 90 70 PLCs CATALOG NUMBERS 1C697CPU731 AND IC697CPU771 THE TERMINATION FOR RD AT THE PLC IS IMPLEMENTED BY A JUMPER BETWEEN PIN 9 AND PIN 11 Figure A 18 Typical RS 422 Host to PLC Connection with Handshaking GFK 0585 Appendix A Serial Port and Cables A 21 Diskette Files This appendix contains a listing of the files and a description of each of the files that are supplied on the SNP Master Driver diskettes SNP Master Driver Object Diskette Contents Executable Files 5 SNPLIB DEMOTSR EXE DEMOLIB EXE TSR SNP Driver executable file On execution of this file the driver is installed as a Terminate Stay Resident program Linkable Library file containing the SNP Driver Demonstration executable file GE Intelligent Platforms has provided a small program to demonstrate the capabilities of the TSR implementation of the SNP Master Driver Demonstration executable file GE Intelligent Platforms has provided a small program to demonstrate the capabilities of the Library implementation of the SNP Master Driver C Header Files SNPTYPES H GFK 0585 Three C header files are provided on the diskette These header files are used in programs compiled with Microsoft C R compiler but should be useable with other C compilers a few minor changes may be necessary The first two header files listed are the most important and will be of the m
21. Stay Resident TSR implementation and a linkable library implementation Installation and Configuration procedures differ between the two implementations The application programmer should choose between the two implementations and then refer to the appropriate sections in this chapter for Installation and Configuration procedures Refer to Chapter 1 and Appendix B for descriptions differences between the TSR and linkable library implementations Installation of the TSR SNP Driver Software Boot up the computer using DOS Insert the driver software diskette into the computer s floppy disk drive The TSR SNP Driver is contained one file called SNPEXE which may be copied to the hard disk using the copy command e g 5 Other files such as C Header files and example C Source files are included on the SNP Driver software diskette but are not necessary to the installation process See Appendix B Diskette Files for a description of all files included on the diskette GFK 0585 2 1 2 2 The SNP driver be installed from the hard disk or the driver diskette Install the SNP driver by typing SNP at the DOS prompt and pressing the ENTER key C gt SNP or A gt SNP At this point you should see the message Processing SNP Driver Configuration During this time the driver installation software validates any configuration data changes that you may have specified Refer to the
22. TSR and Library The SNPTSR RES file dependency lists are also included SNPLNK RES GFK 0585 Appendix B Diskette Files B 3 Appendix C Application Notes This appendix contains useful information notes for the application programmer Application Note for the TSR SNP Driver 1 One of the first things the application programmer should do is verify that the SNP TSR Driver is indeed loaded The GET VERSION SNP Function request should be used for this purpose If the SNP TSR Driver is loaded AX returns set to REQUEST OK the Major software version number is returned in the BX register and the Minor software version number is returned in the CX register If the SNP TSR Driver has not been loaded then AX will most likely return unchanged assuming that no other program have been loaded at the SNP TSR Driver vector Application Notes for the Library SNP Driver GFK 0585 1 The application programmer who uses the Library implementation of the SNP Master Driver must make a call to the function Iinit snp driver in order to install the driver before invoking any SNP Driver function request Any changes to the SNP configuration data must be made via the individual configuration function requests e g Change T1 timer Change T2 timer Change CPU ID etc or via the function request Process Configuration File On exit from the application program using the library implementation on the SNP Master Driver the progra
23. a current communication session is not affected The new T1 timer value set by the Change T1 Timer Request does not become active until an Established Session Request is issued The Change T1 Timer Request is issued by setting up the following registers and invoking the driver interrupt routine AX BX 3 Change T1 Timer function number new T1 Timer value in milliseconds If the request successfully completes the AX register returns zero success Otherwise AX contains an error status The only reason for an error status is Invalid input parameter in request where the new T1 timer value passed in the BX register was out of range The valid range for T1 is 5 to 50 milliseconds GFK 0585 Chapter 3 SNP Driver Functions 3 3 2 Change T2 Timer Request allows the application program to change the SNP Driver s T2 timer value for subsequent communication sessions The T2 timer value for a current communication session is not affected The new T2 timer value set by the Change T2 Timer Request does not become active until an Established Session Request is issued The Change T2 Timer Request is issued by setting up the following registers and invoking the driver interrupt routine AX BX 4 Change T2 Timer function number new T2 Timer value in milliseconds If the request successfully completes the AX register returns zero success Otherwise AX contains an error status The only reason for
24. allocated and set to the values to be written by the application software prior to invoking the Write System Memory function call Example of Write SMEM Q in Bit Mode This example writes to 23 discrete outputs Q19 through Q41 inclusive using the Q bit mode segment selector BL 48h a data offset DX 12 00 and data length CX 17 00 whose units are bit The example assumes that the master has already attached to the slave device set the privilege level to two 2 and that the current value of the discrete outputs Q17 through Q48 is zero It should be noted that those bits not included in the specified range remain as they were regardless of what value the master sends When the write request is complete Q17 through Q48 should look as follows Q32 Q17 0 1 01 41 51 01 21011 041 4 1 11 lll 0 011201 0 0 048 Q33 GFK 0585 Chapter 3 SNP Driver Functions Return PLC Time Date The Return PLC Time Date Requestreturns the current time and date stored in the PLC CPU The Return PLC Time Date Request is issued by setting up the following registers and invoking the driver interrupt routine AX 27 Return PLC Time Date function number ES DI pointer to the destination buffer The destination buffer must be allocated by the application software prior to invoking the driver interrupt routine The destinati
25. an error status is Invalid input parameter in request where the new T2 timer value passed in the BX register was out of range The valid range for T2 is 500 to 6500 milliseconds Change T3p Timer The Change T3p Timer Request allows the application program to change the SNP Driver s T3p timer value for subsequent communication sessions The T3p timer value for acurrent communication session is not affected The new T3p timer value set by the Change T3p Timer Request does not become active until an Establish Session Request is issued The Change T3p Timer Request is issued by setting up the following registers and invoking the driver interrupt routine AX BX 5 Change T3p Timer function number new T3p Timer value in milliseconds If the request successfully completes the AX register returns zero success Otherwise AX contains an error status The only reason for an error status is Invalid input parameter in request where the new T3p timer value passed in the BX register was out of range The valid range for T3p is 1 to 60 seconds Change 4 Timer 3 4 The Change T4 Timer Request allows the application program to change the SNP Driver s T4 timer value for subsequent communication sessions The T4 timer value for a current communication session is not affected The new T4 timer value set by the Change T4 Timer Request does not become active until an Establish Session Request is issued The Change T4 Timer Req
26. buffer one would take the number of fault entries requested N and apply the following formula total bytes returned 12 42 N where 12 is the number of bytes in the fault header and 42 is the number of bytes in each fault entry returned The Return Fault Table function call returns success AX 0 if the request successfully completes Otherwise AX contains an error status The most common reasons for an error status is Insufficient privilege Series 90 70 PLC must be level 1 or higher Invalid input parameter in the request Fault Table Type passed in Bx was invalid 1 2 I O 2 PLC all others invalid Tables 3 11 and 3 12 define the fault action and fault group fields GFK 0585 Chapter 3 SNP Driver Functions 3 19 Fault Codes Table 3 11 Fault Action Codes Fault Description 1 Informational 2 Diagnostic 3 Fatal Table 3 12 Fault Group Codes Fault Code Decimal Hexadecimal Description 1 1 Loss of or Missing Rack 2 2 Loss of or Missing IOC 3 3 Lossofor MissingI O Module 4 4 LossoforMissing Non I O Module 5 5 Addition of or Extra Rack 6 6 Addition of or Extra IOC 7 7 Addition of or 1 Module 8 8 Addition of or Extra Non I O Module 9 9 orI O Bus Fault 10 A I OModuleFault 11 B SystemConfigurationMismatch 12 C VME LPSystemBusError 13 D PLC CPU Hardware Failure 14 E ModuleNon Fatal Hardware Error 15 F IOC Software Failure 16 10 Non I
27. driver interrupt routine AX ES DI 11 Process Configuration File function number pointer to the pathname and filename to be processed as configuration data If the request successfully completes the AX register returns zero success Otherwise AX contains an error status The only reason for an error status is Invalid input parameter in request due to an error encountered with the configuration file provided Possible problems encountered that would produce the invalid input parameter return error include the following 1 Pathname or filename was not found 2 Invalid mnemonic keyword encountered within the configuration file 3 Value specified for a particular configuration item was invalid or out of range for that item Get Version The Get Version Request allows the user to obtain the SNP Driver s Major and Minor Software version numbers The Get Version Request is issued by setting up the following register and invoking the driver s interrupt routine AX 12 Get Version function number If the SNP Driver is installed AX returns zero success the Major Version number returns in BX and the Minor Version number returns in CX If AX does not return zero the driver is not installed and the return in AX is undefined Establish Session The Establish Session Request establishes a communication session with a SNP slave device Series 90 PLC This request must be issued prior to any of the other SNP Driver f
28. level 2 or higher Not logged on as a programmer attachment Series 90 30 PLCs only Set PLC State The Set PLC State Request sets the execution state of the PLC CPU to one of the following states RUN IOENABLED RUN IODISABLED STOP IOENABLED or STOP IODISABLED The Set PLC State Request is issued by setting up the following registers and invoking the driver interrupt routine AX BX 31 Set PLC State function number 0 RUN mode I O Enabled 1 RUN mode I O Disabled Series 90 70 only 2 STOP mode I O Disabled 6 STOP mode I O Enabled The Set PLC State function call returns success AX 0 if the request successfully completes Otherwise AX contains an error status The most common reason for an error status is Insufficient privilege must be level 2 or higher Not logged on as a programmer attachment Series 90 30 PLCs only Faults exist in the fault table run mode request Invalid program fault exists run mode request Invalid new state specified New state specified in the BX register was invalid valid values are 0 1 2 or 6 GFK 0585 Chapter 3 SNP Driver Functions 3 21 Example Program example of a Microsoft C language program call for the Programmer Logon Request would be include lt dos h gt include snptypes h Input arguments to SNP Driver union REGS snpin Output arguments from SNP Driver union REGS snpout char far taskname PROG_TSKN
29. meters maximum cable length RS 422 4000 feet 1200 meters maximum length Isolation at the remote end may be used to eliminate Common Mode voltages At shorter distances under 50 feet 15 meters almost any twisted pair or shielded twisted pair cable will work as long as the wire pairs are connected correctly When using RS 422 the twisted pairs should be matched so that both transmit signals make up one twisted pair and both receive signals make up the other twisted pair If this is ignored cross task resulting from the mismatching will affect the performance of the communicationssystem When routing communication cables outdoors transient suppression devices can be used to reduce the possibility of damage due to lightning or static discharge Care should be exercised that all connected devices are grounded to a common point Failure to do so could result in damage to the equipment GFK 0585 Appendix A Serial Port and Cables A 3 Series 90 PLC Serial Port The Series 90 PLC serial port is compatible with RS 422 A RS 232 to RS 422 converter is required to interface to systems that provide RS 232 compatible interfaces The Series 90 PLC RS 422 serial port provides the physical connection for SNP communication This port is a 15 pin D type female connector located as follows Series 90 70 PLC CPU Module Series 90 70 PLC Remote I O Scanner Series 90 30 PLC Power Supply Figure A 1 shows the serial port o
30. rg l RTS 0 0 00 15 6 20 to 2 E 2o o 4018 8 8 14 RTS B 20 27 o o 0 lt RTS 6 r1 15 CTS gt 00 0 0 0 lt RTS B 14 1 8 CTS B gt 0 0 11 0 0 1 1 0 GND 7 euo E 1 ER Bg LI ov to 1 sHip Vo LS SHLD 1 w w 1 Feo 25 PIN 25 PIN 15 15 15 15 MALE FEMALE FEMALE MALE MALE FEMALE RS 232 RS 422 PORT PORT POWER SOURCE FOR POINT TO POINT CONNECTION 10 FEET 3 METERS ONLY CONVERTER POWER SOURCE BEYOND 10 FEET 3 METERS AND FOR MULTIDROP CONNECTION MUST BE EXTERNAL SOURCE TERMINATION RESISTANCE FOR THE RECEIVE DATA RD SIGNAL NEEDS TO BE CONNECTED ONLY ON UNITS AT THE END OF THE LINES THIS TERMINATION IS MADE ON THE SERIES 90 PLC PRODUCTS BY CONNECTING A JUMPER BETWEEN PIN 9 AND PIN 10 INSIDE THE 15 PIN D SHELL WITH THE FOLLOWING EXCEPTION FOR SERIES 90 70 PLCs CATALOG NUMBERS IC697CPU731 AND IC697CPU771 THE TERMINATION FOR RD AT THE PLC IS IMPLEMENTED BY A JUMPER BETWEEN PIN 9 AND PIN 11 Figure A 5 Example RS 232 to RS 422 Converter Connection Table A 5 RS 232 RS 422 Converter Pin Assignment RS 232 Port 25 pin connector RS 422 Port 15 pin connector Pin No Signal Description Pin No Signal Description 1 SHD Shield 1 SHD Shield 2 5 Send Data 2 DCD A Data Carrier Detect 3 RD Receive Data 3 DCD B Data Carrier Detect 4 RTS Request to Send 4 NC 5 CTS Clear to Send 5 5V Power
31. the last character of an acknowledge is sent the first character of the next message must be transmitted within T3p time If one device is waiting for a message from the other device and T3p time is exceeded before any part of the message is received i e no character was received within T3p time a loss of communication is assumed and the device goes back to its start state Once any part of a message is received T3p time must elapse after the last character was received before the receiving device may assume loss of communication This timer is used by both the master and the slave The range for T3p is 1 to 60 seconds The following table shows the defaults for all four timers for Series 90 30 PLCs and Series 90 70 PLCs and Logicmaster 90 Table 2 3 Series 90 PLC Timer Defaults Timer Series 90 30 PLC Series 90 70 PLC T1 5 milliseconds modem turnaround 5 milliseconds modem turnaround T2 1second 500milliseconds T3p 10seconds 5 seconds currently disabled on Series 90 70PLCs T4 N A N A GFK 0585 Chapter 2 Installation and Configuration 2 5 2 6 Changing the Configuration Parameters Each configuration parameter has a SNP Driver Function Request by which the user can change the driver s configuration parameter value for subsequent communication sessions These function requests include Change CPU ID Change 1 Timer Change T2 Timer Change T3p Timer Change T4 Timer Change Mode
32. 01 MAXDATA 60 MODEMTIM 20 T1 15 T2 1000 T3p 5000 The user then invokes the Process Configuration File function request passing the name of this file to the driver The file is opened and processed and the configuration data is changed See Chapter 3 for further details The method of changing the SNP Driver s configuration data via the driver function requests discussed above can be used with either the TSR or Library SNP Driver implementation In fact it is the only method available to the Library SNP Driver implementation The next section discusses a method available only to the TSR implementation Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Alternative Method to Configuration Data change with TSR version If you use the TSR SNP Driver implementation the driver configuration data can be changed via another method via the command line when the driver is installed The command line has the following form C gt SNP parameter value parameter value where parameter is equal to a configuration mnemonic listed in Table 2 1 For example to change the default driver configuration to use COM2 at 9600 BAUD type the following at the DOS prompt C gt SNP BAUD 9600 PORT 2 The parameters not listed remain set to their default values A configuration file of the same format described above in the Process Configuration File function request can also be specified at the command level as follows
33. 2 OPTICAL RS 422 RS 232C dnm ISOLATION J2 J1 2 5 SD RS 232C 22 Pa RD B lt ea p gt 4 lt SD gt x gt RTS RS 232C CTS B 4 10 10 RTS RESISTORS H RTS A 4 19 9 194 gt lt RD B mod gd S RD a J SD A lt 24 Hm RS 232C T lt gt CTS B 13 KH E CTS 2 lt CTS RS 232C oo gt ISOLATED POWER 115 SUPPLIES 2 4 25 lt SE RS 232C 22 Figure A 7 RS 422 Isolated Repeater RS 232 Converter Logic Diagram Note Allinputs on the unit are biased to the inactive state Inputs left uncon nected will produce a binary 1 OFF state on the corresponding output GFK 0585 Appendix A Serial Port and Cables A 11 Pin Assignments for the Isolated Repeater Conver ter J1 RS 422 Port J2 RS 422 RS 232 Port 25 pin female connector 25 pin female connector 1 NC 1 NC 2 NC 2 5 Send Data RS 232 3 NC 3 RD Receive Data RS 232 4 NC 4 RTS Request to Send RS 232 5 NC 5 CTS Clear to Send RS 232 6 NC 6 NC 7 OV Ground Connection 7 OV Ground Connection 8 CTS B Clear to Send 8 CTS B Clear to Send Optional Termination Optio
34. 30 PLC Coo SERIES 90 30 PLC cuo SERIES 90 70 PLC Yy 5 422 Figure 1 6 Multidrop Serial Link Connection for Series 90 PLCs Optical isolation networks may be necessary for certain applications Refer to Figure 1 7 1 6 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Where isolation is required the 5 422 Isolated Repeater 5 232 Converter GE catalog number IC655CCM590 be used in place of the RS 232 RS 422 Converter Figure 1 6 In addition to converting from RS 232 to RS 422 communications this unit provides ground isolation where a common ground cannot otherwise be established between components 4 2000 FEET MAX 44784 HOST RS 232 RS 422 COMPUTER CONVERTER ISOLATED ISOLATED REPEATER REPEATER UNIT 1 UNIT 16 PLC PLC 1 241 PLC PLC 2 242 PLC PLC 16 256 Figure 1 7 Multidrop System Using RS 422 Isolated Repeater RS 232 Converter Refer to Appendix A for detailed information about the serial port cable connections and electrical signals GFK 0585 Chapter 1 Introduction 1 7 Definition of Terms Abrief list of acronyms abbreviations and terms used throughout th
35. 9 RS 232 RS 485 A 2 S Segment Selector 3 13 Serial Port 2 4 Cable esas perg 6 Series 90 PLC Workmaster Serial Port Converter A 7 Service Requests 5 1 Set Date Set Time 8 16 SMEM 1 8 SNP Data Size SNP Function Requests Login Requirements Privilege Level Software DOS Environment 2 1 Installation 2 2 License Agreement 2 1 Software Serial Port 2 4 Specifications Cable A 3 Connector 3 Standards RS 422 RS 485 Status Codes 3 23 System Memory B 11 I Terms GFK 0585 0585 Time Timers T1 Time 2 5 T2 Time T3 Time 2 5 T3p Time 2 5 T4 Time 2 5 Timers Default Timers 2 5 Index Index 3
36. AME SIZE 5 1 main snpin x ax PRG_LOGON snpin x bx LOGIN_SERIAL snpin x cx BLOCK_XFER_SIZE snpin x di int taskname int86 SNP_FUNCTIONS amp snpin amp snpout 3 22 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 0585 Error Status Codes Tables 3 13 and 3 14 provide a summary of the Major and Minor Error Status codes that are returned if the SNP Function request is unsuccessful Table 3 13 Major Error Status Codes Decimal Hexadecimal Description 01 01 IllegalService Request either not defined or not supported 02 02h InsufficientPrivilege the minor status field contains the privilege level required for the servicerequest 04 04h ProtocolSequence Error the CPU has received a message that is out of order 05 05h Service Request Error Minor status field contains the request specific error code See table of Minor Error Status Codes 07 07h The PLC CPUsService Request Queue is full Youshould retry later Itis recommended that you wait a minimum of 10 milliseconds before sending another servicerequest 10 SNP Driver Error Minor status field contains the request specificerror code See table of Minor Error Status Codes Chapter 3 SNP Driver Functions 3 23 Table 3 14 Minor Error Status Codes Major Code 5 Decimal Hexadecimal Description 1 Service request has been aborted 2 OFE Noprivi
37. Converter a44930 PIN PIN J2 SW ON J1 fo 9 xx a 16 RDA 5 t 0 i 241 500 21 17 RD B 9 00 4 15 SD A E gt 20 0 0 2 RD 25 bl X X 1 14 SD gt 0 ISOLATED 0 90 1 0 0 12 ll Ld 19 TERM 09 aar orem TERM H 18 1 TERM F gt o converter 90 on 00 e 10 m Fg 12 mE 0 0 HOST 11 00 M 00 7908 22 Fg 11 RTS A 00 0 0 00 lt cre 18 CTS A o 09 0 GND 7 7 GND 0 90 07 sup 1 w U 0 0 V 25 PIN 25 PIN 25 PIN 25 PIN FEMALE MALE MALE FEMALE TERMINATE CONNECTION ON THE CMM INSTALL JUMPER TO CONNECT INTERNAL 120 OHM RESISTOR ON THE ISOLATED REPEATER CONVERTER INSTALL 150 OHM RESISTOR SUPPLIED NOTE ASSIGNMENTS CORRESPOND TO SERIES 90 CMM MODULE PIN ASIGNMENTS MAY DIFFER FOR OTHER HOST DEVICES Figure A 11 Cable B RS 422 Device to Converter GFK 0585 Appendix A Serial Port and Cables A 15 16 SUBSTITUTE APPROPRIATE UP STREAM DEVICE a44931 WITHIN DOTTED BOX PER SYSTE
38. D B 9 RS 232 1 11 8 o oo SD A 12 1 10 RD A 9 SERIES 4 nin 99 oo 50 13 r1 PT 00 90 PLC GND 5 T1 7 P o 951 RT 9 Li 1 9 RD F o 9 PIN 9 PIN E gt 20 TETS 15 6 RTS A E 0 RS 422 it 1 CTS B 8 T3 14 RTS B 00 port MALE FEMALE 00 o RTS A 6 XXT 15 CTS A o of 00 RTS 14 TT 8 CTS B o 0 0 5 5 yi 5 5V 0 14 14 o 951 ovj 7 x SU 5 7 ov F 09 0 0 9 25 PIN Vitr 1 1 SHLD FR 2 MALE 25 PIN 15 15 15 15 FEMALE FEMALE MALE MALE FEMALE RS 232 5 422 PORT PORT POWER SOURCE FOR POINT TO POINT CONNECTION 10 FEET 3 METERS ONLY CONVERTER POWER SOURCE BEYOND 10 FEET 3 METERS AND FOR MULTIDROP CONNECTION MUST BE EXTERNAL SOURCE TERMINATION RESISTANCE FOR THE RECEIVE DATA RD SIGNAL NEEDS TO BE CONNECTED ONLY ON UNITS AT THE END OF THE LINES THIS TERMINATION IS MADE ON THE SERIES 90 PLC PRODUCTS BY CONNECTING A JUMPER BETWEEN 9 AND PIN 10 INSIDE THE 15 D SHELL WITH THE FOLLOWING EXCEPTION FOR SERIES 90 70 PLCs CATALOG NUMBERS IC697CPU731 AND IC697CPU771 THE TERMINATION FOR RD AT THE PLC IS IMPLEMENTED BY A JUMPER BETWEEN PIN 9 AND PIN 11 Figure A 16 IBM AT compatibles Personal Computer to Series 90 PLCs
39. M DIAGRAMS SHIELDED MAKE CONNECTIONS 1 TWISTEDNSIDE D CONNECTORS PIN PAIRS 4 an ease D lt sp e MED X11 lt 50 21 SERIES 90 1T 6 CMM my RBS XXI SERIES lt RD B 25 r1 CMM 90 PORT TERMS eee es N 10R2 TERM JE 1 RTS A 10 i bu 5 11 RTS 22 Ki OR lt 23 11 11 2 lt 7 1 4 25 25 25 FEMALE MALE FEMALE 1 1 J2 SW ON Ciz swzcrs 2 M E 4 ISOLATED vo ISOLATED REPEATER 4 0 50 OHMS CONVERTER D BRICK 23 TERM 00 USED AS n L 0 0 7 GND 25 125559 25 25 PIN FEMALE Fs MALE FEMALE A X wm 1 1 WHEN WIRING RS 422 485 MULTIDROPCABLES REFLECTIONS ON THE TRANSMISSION LINE BE REDUCED BY CONFIGURING THE CABLE IN A DAISY PIN SW ON CHAIN FASHION AS SHOWN BELOW 16 RD MASTER CMM SLAVE 1 17 15 5602 4 14 80 ISOLATED 19 TERM REPEATER 50 E gt CONVERTER 18 term BRICK CPU BUILT IN PORT CMM SLAVE 2 USED AS rm REPEATER q 0 17 ML 25 PIN 25 PIN ALSO IT IS RECOMMENDED TO MAKE ANY NECESSARY MALE FEMALE CONNECTIONS INSIDE THE CABLE CONNECTOR TO BE
40. NP Driver Configuration processing complete SNP TSR Driver Already Installed Rev 1 01 Example Installation Error Message Suppose that when you first install the driver you specify new values for the baud rate and the T1 timer but neither new value fall within the acceptable range The following messages will be displayed Processing SNP Driver configuration Unsupported Baud Rate Baud rate was not changed T1 time specified is out of range The time was not changed SNP Driver Configuration processing complete Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 The revision level displayed in each of these examples assumes the first revision of the driver The actual revision level displayed when you install the driver is dependent on the revision level of your driver software Installation of the Library Driver Software Boot up the computer using DOS Insert the driver software diskette into the computer s floppy disk drive The Library SNP Driver is contained in one file called SNPLIB which may be copied to the Hard disk using the copy command e g copy A SNP LIB C Other files such as C Header files and example C source files are contained on the SNP driver software diskette but are not necessary to the installation or usage of the library See Appendix B Diskette Files for a description of all files contained on the diskette The user application code must make a far call to a func
41. REFLECTIONS THE TRANSMISSION 1 1 141 1 LINE BE REDUCED BY CONFIGURING THE e ec J PIN J1 SW CTS J2 CABLE IN A DAISY CHAIN FASHION AS 6 15 RD A 0 SHOWN BELOW 4 14 RD B M 16 SD A MASTER CMM SLAVE 1 paler 1 ISOLATED 4 RTS A 5 REPEATER 4 12 RTS B 0 CONVERTER ES ERICK 25 pu USED AS A TERM 0 CPU BUILT IN PORT ES 24 NAI 23 TERM 9 4 7 GND D 25 25 MALE FEMALE ALSO IT IS RECOMMENDED TO MAKE ANY NECESSARY CONNECTIONS INSIDE THE CABLE CONNECTOR TO BE MOUNTED ON THE CMM IT IS NOT RECOMMENDED USE TERMINAL STRIPS OR OTHER TYPES OF CONNECTORS ALONG THE LENGTH OF PIN SW THE TRANSMISSION LINE 4 16 RD 17 RD 15 SD 4 11 Spi ISOLATED REPEATER 11 15 CONVERTER BRICK 48 TERM USED AS A 18 TERM 4 7 GND 25 25 MALE FEMALE TO OTHER DEVICES MAXIMUM OF 8 DEVICES ON A MULTIDROP TERMINATE THE RD B SIGNAL ONLY AT END OF MULTIDROP CABLE TERMINATE CONNECTION ON FIRST AND LAST DROPS ONLY ON THE CMM INSTALL JUMPER TO CONNECT INTERNAL 120 OHM RESISTOR ON THE ISOLATED REPEATER CONVERTER INSTALL 150 OHM RESISTOR SUPPLIED ON THE CMM311 ONLY PORT 2 CAN SUPPORT RS 422 RS 485 Figure A 13 Cable D RS422 Twisted Pair GFK 0585 Appendix A Serial Port and Cables A 17
42. any GE Intelligent Platforms sales office or field service representative 5 232 5 485 44539 RS 232 CONVERTER RS 485 25 PIN IC690ACC900 15 SHIELD K lt SHIELD lt TERMINATOR RESISTOR 5 1200 lt RD B imc pude e 242 SD A lt CTS B MODEM 3 EIS lt 2 CTS A 5 gt te c RTS DCD Cam DCD A eu s so lt t 1 se DTR oH RD Figure A 4 RS 232 to RS 422 Converter Logic Diagram Note Ground isolation is not a feature of this unit For isolation refer to Figure A 6 GFK 0585 Appendix A Serial Port and Cables A 7 RS 232 RS 232 RS 422 RS 422 244504 SHIELDED CONVERTER TWISTED SHIELDED EH o IC690ACC900 PAIRS BN 9 TD A 3 ved 000 2 2 0 0 0 DCD B 3 E oo 2 SD o lt 3 o 0 RTS 5 70 o ej RD 10 e 12 SD A 90 00 CTS r 4 RTS 00 00 e RD B 11 i 13 SD B 9o v DCD 5 00 e 80 12 10 RD E 90 SERIES HOST 00 DTR 1 20 00 00 lt 50 13 P1 gt 00 90 PLC COMPUTER 00 F o te s
43. cation program to retrieve the SNP Driver s Major and Mi nor software version number Establish Session allows the application program to establish a communication session with a Series 90 PLC Programmer Logon allows the application program to login and logout as a program mer attachment Return Controller TYPE and ID returns the CPU controller ID and the Major and Mi nor TYPE of the PLC CPU It also returns information about the current program and configuration stored within the PLC CPU Return PLC Time returns the current time and date stored in the PLC CPU to the ap plication program Set PLC Time allows the application program to set the internal time and date of the PLC CPU Return Fault Table returns fault data from either the PLC fault table or the I O fault table to the application program The PLC fault table has a maximum of 16 faults and the I O fault table has a maximum of 32 faults Clear Fault Table clears either the PLC fault table or the I O fault table Set PLC State allows the application program to change the execution state of the PLC Allowable choices are Run mode with I O enabled Runmode with I O disabled Series 90 70 only Stop mode with I O enabled Stop mode with I O disabled Read System Memory allows the application program to read a block of PLC reference data 991 96 T M 96S 96S A 96SB 96SC 6G o R o AT 9o AC Series 90 PLC SNP Communications Driver User s Man
44. ccess Otherwise AX contains an error status The most common reasons for an error status is e Invalid task name Series 90 70 PLC only e No Block Transfer size specified Series 90 70 PLC only Example of the Series 90 Programmer Logon Request The Programmer Logon Request to a Series 90 PLC would require the registers to be initialized as follows before invoking the interrupt routine AX 23 PLC Programmer Logon function number BX 2 Login Serial Mode CX 00 40 Block Transfer Buffer Size 16384 ES DI pointer to the Program Task Name e g STAT 1 GFK 0585 Chapter 3 SNP Driver Functions 3 9 Return Controller and ID The PLC Return Controller Type and ID Request returns the CPU Controller ID and the Major and Minor type of the PLC CPU It also returns information about the current program and configuration stored within the PLC CPU such as the Main Control Program name number of program blocks and the master checksums for the the program and configuration The Return Controller Type and ID Request is issued by setting up the following registers and invoking the driver interrupt routine AX ES DI 24 Return Controller Type and ID function number pointer to the destination buffer in memory where the user wishes the returned control information to be stored The destination buffer must be allocated by the application software prior to invoking this request The destination buffer is defined as follows
45. completed successfully lt 0 gt Anerror in the request was encountered where a Major Error Status code is returned in the AL register and the Minor Error Status code if applicable is returned in the AH register The Minor Error Status only has meaning for certain Major Error Status codes Tables 2 13 and 3 14 at the end of this chapter define the Major and Minor Error Status codes Minor codes are undefined for a given Major Error Status unless otherwise stated SNP Driver Functions The SNP Driver Functions are organized into two basic groups Local functions and Remote functions The Local functions interact with the installed driver to change the driver s configuration data to open and close the user s serial port device and to perform other driver housekeeping functions The Remote functions interact with the PLC CPU they are the means through which the user transfers data to or from the PLC CPU and issues commands to the PLC CPU Some of the remote functions require the requesting device to be at a minimum access privilege level before the request can be honored and some require the requesting device to be logged in as a programmer attachment The Local SNP Driver Functions Table 3 1 lists those functions that affect or interact with the installed SNP Driver along with their function number The Remote SNP Driver Functions Table 3 2 lists those functions that affect or interact with the PLC CPU along with the
46. d into main 59 0 5 Notask level Rack Slotconfiguration toread or delete 60 0 4 Verify with FA Card or EEPROM failed 61 0C3 Textlength does not match traffic type 62 0 2 The OEM key is NULL inactive 63 0C1 Invalid block state transition 80 50h Problem with sending mail to the slave Service Request task Series 90 70 PLC CPUs only 81 51h Problem with getting mail from the slave Service Request task Series 90 70 PLC CPUs only 85 55h Slave SNP task timed out before receiving SRP response Series 90 70 PLC CPUs only Table 3 15 Minor Error Status Codes Major Code 10 OAh Decimal Hexadecimal Description 110 92 NoSNP communication either communication has been lost communication session has not been established 111 91 Bad SNP communication transmission had to be aborted after suffi cient retries due to communication errors i e parity overrun or framing errors 112 90 Bad SNP BCC encountered transmission had to be aborted after sufficient retries due to a bad Block Check Code 113 8F Out of Sequence SNP message SNP message type received was not the type expected 114 8 Serial port configured for SNP Master driver is not open no commu nication can take place 115 8 Bad DOS Version Must have DOS 2 0 or later to support the SNP Master Driver GFK 0585 Chapter 3 SNP Driver Functions 3 25 Appendix A Serial Port and Cables This appendix describes t
47. eceiver sensitivity is 200 millivolt Care must be taken that common mode voltage specifications are met Common mode conditions that exceed those specified will result in er rorsin transmission and or damage to Series 90 PLC components Constructing RS 422 RS 485 Cables When connecting the Series 90 CMM modules to a non Series 90 device using the RS 422 RS 485 standard the non Series 90 device s line receiver must contain fail safe capability This means that in an idle open or shorted line condition the output of the line receiver chip must assume the marking state When using RS 422 RS 485 the twisted pairs should both be matched so that both trans mit signals make up one twisted pair and both receive signals make up the other twisted pair The CMM is supplied with a 120 Ohm terminating resistor in each RS 422 receiver cir cuit If the module is at either end of an RS 422 multidrop or point to point link pin 25 the RD signal must be connected directly to pin 24 the internal 120 ohm terminat ing resistor If the module is an intermediate drop in the multidrop link this connection should not be made A 2 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Cable and Connector Specifications The cable assembly presents one of the most common causes of communication failure For best performance construct the cable assemblies according to the recommended connector parts and specifications
48. ents boost 5 422 signals for greater distance and more drops convert signals from RS 232 to RS 422 or RS 422 to RS 232 GFK 0585 Appendix A Serial Port and Cables A 9 10 figure below shows the appearance of the unit and the location of the user ele ments TOP VIEW a42418 POWER CORD ISOLATED RS232 ADAPTOR UNIT FUSE BACK VIEW FUSE 1 AMP 2 2 020 CI Figure A 6 The Isolated Repeater Converter The user elements of the Isolated Repeater Converter are described below Two 25 pin female D type connectors Two 25 pin male D type connectors solder pot are included for user cabling e 115 230Vac power connection internal 4 position terminal block Fused 1 Amp power protection Power ON green indicator LED Three position toggle switch recessed in the back of the unit is set according to System Configurations later in this section Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Logic Diagram of the Isolated Repeater Conver ter The figure below provides a functional look at the unit Note the 3 position switch for controlling the J1 port transmitters This switch will be discussed in System Configura tions later in this section a4478
49. equest where the new Modem Turnaround Time value passed in the BX register was out of range The valid range for Modem Turnaround Time is 0 to 2550 milliseconds Change Port Parameters The Change Port Parameters Request allows the application program to change the SNP Driver s port configuration for subsequent communication sessions The port configuration for a current communication session is not affected The new port configuration specified by the Change Port Parameters Request does not become active until an Open Port Request is issued The Change Port Parameters Request is issued by setting up the following registers and invoking the driver interrupt routine AX 8 Change Port Parameters function number BX baud rate 300 600 1200 2400 4200 9600 19200 CL port number 1 2 3 or 4 DL number of stop bits 1 or 2 DH parity 0 1 2 Change Maximum Data Size The Change Maximum Data Size Request allows the application program to change the SNP Driver s maximum number of data bytes allowed in one SNP Data message for subsequent communication sessions The SNP Data Size for the current communication session is not affected The new SNP Data size set by the Change Maximum Data Size Request does not become active until an Establish Communication Session Request is issued GFK 0585 Chapter 3 SNP Driver Functions 3 5 The Change Maximum Data Size Request is issued by setting up the following re
50. er between pins 9 and 10 inside the 15 pin D shell with the following exception For Series 90 70 PLCs Cat s IC697CPU731 and IC697CPU771 the termination for RD at the PLC is implemented by a jumper between pins 9 and 11 A 4 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Workmaster Serial Port The Workmaster II industrial computer RS 232 serial port is a 25 pin D type male connector and the early model Workmaster is a 9 pin male connector Figure A 2 shows the serial port connector layout for both computers Table A 3 shows the pin numbering and signal assignment for both connector types 44522 WORKMASTER II WORKMASTER EARLY MODEL 51577 1311 2e 25 SE o PIN 29 o 1 1 2 6 T O 9 PIN o yes Figure A 2 Workmaster RS 232 Serial Port Connector Configuration Table A 3 Workmaster RS 232 Serial Port Pin Assignment Workmaster II 25 pin connector Workmaster 9 pin connector Pin No Signal Description Pin No Signal Description 1 NC 1 NC 2 TD Transmit Data 2 TD Transmit Data 3 RD Receive Data 3 RD Receive Data 4 RTS Request to Send 4 RTS Request to Send 5 CTS Clear to Send 5 CTS Clear to Send 6 NC 6 NC 7 GND SignalGround 7 GND Signal Ground 0V 8 DCD Data Carrier Detect 8 DCD Data Carrier Detect 9 10 NC 9 DTR Data TerminalReady 11 Tied to line 20 12 19 NC 20 DTR Data TerminalReady 21
51. er of stop bits either 1 or 2 MODEMTIM 0 The modem turnaround time MAXDATA 1000 The maximum SNP data size T1 10 The T1 timer s value in milliseconds T2 1000 The T2 timer s value in milliseconds T3p 3000 The T3p timer s valuein milliseconds T4 50 The T4 timer s value in milliseconds The BAUD rate can be set to any of the following values 300 600 1200 2400 4800 9600 19200 GFK 0585 Chapter 2 Installation and Configuration 2 3 CPU ID The CPU ID field is 8 bytes long For the Series 90 70 PLCs the CPU ID can be a maximum of 7 bytes followed by a NUL character 0 and can include any ASCII character For the Series 90 30 PLCs the CPU ID is restricted to a maximum of 6 bytes followed by a NUL character 0 The values of the 6 bytes are further restricted to the ASCII characters 0 through 9 inclusive and A through F inclusive must be capital letters Serial Port Designation The ports are numbered as shown in the table below Table 2 2 Port Designation Port Interrupt Serial Port Port Designation Base Address Request Input IRQ COM1 1 3F8h 4 COM2 2 2F8h 3 COM3 3 3E8h 4 4 2E8h 3 Modem Turn Around Time The Modem Turn Around Time is used specifically for modem applications where larger turn around times may be required due to modem characteristics If you are using modems to communicate this configuration parameter must be set to a
52. ere e hg eae gut PET aM e edt A 15 Serial Cable Diagrams A 19 RS 232 Point to Point Connections A 19 RS 422 Point to Point Connection A 21 GFK 0585A Series 90 PLC SNP Communications Driver User s Manual April 1994 Contents AppendixB 15 B 1 SNP Master Driver Object Diskette Contents B 1 Executable Files pesca eee eid acs RERO ERA B 1 C Header Files 2 2 ue 1 So rce File eben ERN 2 SNP Master Driver Source Diskette Contents 2 Assembly Files 2 CSource Bile 045 e 2 C Header Files igh he E ek eg ES B 3 Assembly Include B 3 Other Files bet re cube gape meta B 3 AppendixC C 1 Application Note for the TSR SNP Driver C 1 Application Notes for the Library SNP Driver C 1 Application Notes for Either TSR or Library Implementation C2 GFK 0585A Series 90 PLC SNP C
53. es Slave SNP Device Any CPU in the Series 90 PLC family Series 90 30 PLC Series 90 70 PLC VMEbus Pertains to any of the CPU models within the Series 90 30 PLC family specifically the 301 311 or 331 models Pertains to any of the CPU models within the Series 90 70 PLC family specifically the 731 732 771 772 781 or 782 models Versa Module European An electrical and mechanical bus specification used by Series 90 70 PLCs 1 8 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Chapter Installationand Configuration 2 This chapter includes installation and configuration instructions for the GE SNP driver software on a Personal Computer PC operating in the MS DOS environment SNP Driver Software The GE SNP driver software resides on a single 5 1 4 inch or a3 1 2 inch diskette Make a working copy of the SNP software diskette Store the original diskette in a safe place and use only the working copy License Agreement Use of software means you accept the provisions of the license packaged in the documentation and shipped with your software Software use is restricted no copies may be made except as provided in the license If the license is unacceptable do not use the software Return the entire contents of the package to GE Intelligent Platforms SNP Driver Implementations As previously stated in Chapter 1 two implementations of the Master SNP Driver are provided a Terminate and
54. essage This timer is used only by the master but its value is determined by the PLC CPUs on the serial link must be at least 50 milliseconds 600 milliseconds with modems T1 T1 is the amount of time that must elapse between the reception or transmission of the last character of one message and the transmission of the first character of the next message It is the minimum amount of time the sending device master or slave must wait before transmitting either a message or an acknowledgement This timer is used by both the master and the slave T1 time must account for the worst case time for the sending device to turn the link around and set up to bea receiving device including any modem turn around time The range for T1 is 5 to 50 milliseconds T2 2151 maximum amount of time that the sending device master or slave will wait for an acknowledgement to the message that it just transmitted The first character of the acknowledgement must be received within T2 time after the last character of the message is sent or else it is assumed that there has been a loss of connection and the device goes back to its start state The start state for the master is a state in which required conditions for establishing a communication session based on the user s given application are fulfilled This timer is used by both the master and the slave The range for T2 is 500 milliseconds to 6 5 seconds T3p link idle timeout time After
55. estination buffer is the actual data for each fault requested Each fault takes 42 bytes Taking into account the twelve 12 bytes of fault header Fault number 1 starts at byte 15 of the destination buffer Fault number 2 starts at byte 57 of the destination buffer Fault number 3 starts at byte 99 of the destination buffer etc Fault Entry Format The format of a fault table entry differs between the PLC Fault Table and the I O Fault Table PLC Fault Entry APLC Fault Entry has the following format Table 3 9 PLC Fault Entry Byte Description Bytes 1 4 Spare Bytes Byte5 RackNumber Byte 6 Slot Number Byte 7 UnitNumber Byte 8 Spare Byte Byte 9 FaultGroup Byte 10 Fault Action Bytes 11 12 Fault Error Code Bytes 13 36 Spare Bytes Bytes 37 42 Time Error Logged 3 18 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 10 Fault Entry AnI O Fault Entry has the following format Table 3 10 Fault Entry Byte Description Byte 1 Spare Byte Bytes 2 4 Reference Address Byte5 RackNumber Byte 6 Slot Number Byte 7 I OBusNumber Byte 8 Bus Address Bytes 9 10 Point Address Byte 11 FaultGroup Byte 12 Fault Action Byte 13 FaultCategory Byte 14 Fault Type Byte 15 FaultDescription Bytes 16 36 Spare Bytes Bytes 37 42 Time Error Logged determine the number of bytes that will be set in the destination
56. estination buffer must be large enough to handle the data being returned Example of Read SMEM M in Bit Mode This example reads the eleven discrete internal bits M99 through M109 using the M bit mode segment selector BL 4Ch and a data offset DX 62 00 and data length CX OB 00 whose units are bit The example assumes that the master has already attached to the slave device and the discrete points at M97 through 112 have the following values M112 M109 M99 M97 1 0 1 1 0 0 1 1 1 0 0 1 0 0 1 0 Reading M99 through M109 inclusive returns the two bytes 90 13 where M97 104 90h and 105 112 13h M109 M99 0 0 0 1 0 0 1 1 1 0 0 1 0 0 0 0 It should be noted that all bits not requested within a byte are returned as zero regardless of their true state Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Write System Memory The Write System Memory Request Write SMEM writes a block of PLC reference data I M 5 G YR WAQ to the PLC The Write System Memory Request is issued by setting up the following registers and invoking the driver interrupt routine AX 26 Write System Memory function number BL segment selector see table DX segment offset CX data length ES DI pointer to the source buffer The source buffer must be
57. fferences between non isolated components will result in errors in transmission and or damage to components RS 232 Point to Point Connections The next three figures illustrate typical RS 232 point to point connection to Series 90 PLCs IC690CBL705 OR EQUIVALENT RS 232 RS 485 RS 422 a44506 RS 232 CONVERTER TWISTED SHIELDED pi SHIELDED PIN IC690ACC900 PIN PAIRS PIN I s TD 2 TT 3 RD fo vc B 2 2 50 09 2 0 00 o 3 s 3 09 o RTS 4 r 5 018 00 00 lt 10 12 SD A 00 00 5 5 4 RTS 00 0 lt 11 ri rs 13 SD B 99 gt o 8 8 DCD 29 05 50 12 r1 1 10 RD A o SERIES WORKMASTER I 0 DTR 20 Li 09 00 lt 50 13 PT RD B 9 90 PLC E 00 bag E o 00 RT 9 bg ri 719 80 Fe RS 232 o 61g 09 9 5 15 11 xU 6 RTS B o Rs 422 PORT a 00 0 4 8 T3 14 9 port 20 0 0 RTS A 6 15 0 0 bg 0 0 X 0 gt 00 r o 0 0 RTS 14 8 CTS B o o 09 00 lt 45M 5 5 5 00 gt o9 GND 7 T 7 GND F 09 00 4 0 7 T T 7 ov o gt 0 WH SHLD 9 19
58. ge 2 allows the application program to change the SNP Driver s T2 timer value for subsequent communication sessions Change T3p allows the application program to change the SNP Driver s T3p timeout value for subsequent communication sessions Change T4 allows the application program to change the T4 timer value for subsequent communication sessions Change Modem Turnaround Time allows the application program to change the mo dem turnaround time value for subsequent communication sessions Change Port Parameters allows the application program to change the serial port con figuration for subsequent communication sessions by changing the following parame ters baud rate port number number of stop bits and parity 1 1 Change Maximum Data Size allows the application program to change the maximum number of data bytes allowed in a single SNP Data message for subsequent communica tion sessions De Install Driver allows the user to remove all SNP Master Driver Interrupt hooks specifically to un hook from the Hardware Timer Interrupt restore the Clock Frequency to its original value and restore the SNP Interrupt to its original value This request is only implemented in the Library Version of the SNP Master Driver it is not valid in the TSR version Process Configuration File allows the user to supply the SNP Master Driver with a configuration file which the driver will parse and process Get Version allows the appli
59. gisters and invoking the driver interrupt routine AX 9 Change Maximum Data Size function number BX n ew maximum data size If the request successfully completes the AX register returns zero success Otherwise AX contains an error status The only reason for an error status is Invalid input parameter in request where the new Maximum Data Size value passed in the BX register was out of range The valid range for Maximum Data Size is 40 bytes to 1000 bytes De Install SNP Master Driver The De Install SNP Master Driver Request allows the application program to remove all SNP Master Driver Interrupt hooks specifically to un hook from the Hardware Timer Interrupt restore the Clock Frequency to its original value and restore the interrupt vector used by the SNP Driver to its original value This request is only implemented in the Library version of the SNP Master Driver It is not a valid request to the TSR version of the SNP Master Driver If the application program makes a De Install request to the TSR version an error is returned in the AX register which reflects invalid parameter i e invalid function number The De Install SNP Master Driver Request is issued by setting up the AX register and invoking the driver interrupt routine 10 De Install SNP Master Driver function number If the request successfully completes the AX register returns zero success Otherwise AX contains an error status The only reas
60. h 96 bit index to 97 Data Length 1000 0010h 16 bits Examples of BYTE access 1 Q497 to Q512 in byte mode Segment Selector 12 Q memory in byte mode Data Offset 3E00 003eh 62 byte index to Q497 Data Length 0200 0002h 2 bytes 2 T17 to T208 in byte mode Segment Selector 14 memory byte mode Data Offset 0200 0002h byte index to T17 Data Length 1800 0018h 24 bytes Examples of WORD access 1 R1 to R78 in word mode Segment Selector 00 memory in word mode Data Offset 0000 0 word index to R1 Data Length 4E00 004Eh 78 words 2 R93 to 98 in word mode Segment Selector 08 R memory word mode Data Offset 5C00 005Ch 92 word index to R93 Data Length 0600 0006h 6 words GFK 0585 Chapter 3 SNP Driver Functions 3 13 Read System Memory The Read System Memory Request Read SMEM returns a block of PLC reference data 1 Q T 96S 905 5 SC G R WAI from the PLC The Read System Memory Request is issued by setting up the following registers and invoking the driver interrupt routine AX 25 Read System Memory function number BL segment selector see table DX data offset CX data length see table ES DI pointer to the destination buffer The destination buffer must be allocated by the application software prior to invoking the Read System Memory function call The size of the d
61. he serial port converters and cables used to connect Series 90 PLCs for Series 90 Protocol SNP This information is included for reference and for those users who have applications that require cable lengths different than the factory supplied cables What this Appendix Contains GFK 0585 Information in this section includes Communication Interfaces Cable and Connector Specifications Serial Port Configuration RS 232 RS 422 Converter Catalog No IC690ACC900 or IC690ACC901 RS 422 Isolated Repeater RS 232 Converter Catalog No IC655CCM590 Serial Cable Diagrams Point to Point Connection Multidrop Connection Cable Termination 1 Section 1 5 422 5 485 Interface and Cabling Information The RS 485 Interface The Series 90 PLC family of products are compatible with EIA RS 422 or RS 485 specifica tions RS 485 drivers and receivers are utilized to accomplish communications between several system components using multiple driver receiver combinations single cable with four twisted pairs The total cable length cannot exceed 4000 feet A multidrop system of a driver and 8 receivers can be configured The maximum com mon mode voltage between each additional drop is the RS 485 standard of 12 Volts to 7 Volts The driver output must be capable of 1 5 V minimum into 60 ohms The driver output impedance must be at least 120 K ohms in the high impedance state The receiver input resistance is 12K ohms or greater R
62. ime only 3 Set date only ES DI pointer to the source buffer The source buffer must be allocated and initialized by the application software prior to invoking the SNP driver The source buffer will be seven bytes in length and is defined as follows 3 16 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 0585 Table 3 7 PLC Time Date Source Buffer Item Byte Description Seconds Byte 1 Current seconds in packed BCD format Minutes Byte 2 Current minutes in packed BCD format Hour Byte3 Current hour in packed BCD format Day Byte 4 Current day of month in packed BCD format Month Byte5 Current Month in packed BCD format Year Byte 6 Current year in packed BCD format Day of Week Byte 7 Valid range 1 7 where Sunday 1 Saturday 7 Note Packed BCD format Tens digit in bits 4 thru 7 units digit in bits 0 thru 3 In the following example the current time and date in the PLC CPU will be set to 09 44 10 and Monday November 05 1990 respectively The DX register will be set to 1 and the source buffer would contain the following values in BCD format The extraneous bytes are disregarded when set time only or set date only DX values are specified 10 44 09 05 11 90 02 Set PLC Time Date function call returns success AX 0 if the request successfully completes Otherwise AX contains an error status The most common reason for an error status is
63. is manual are introduced here in order to facilitate the reading of this manual Acronyms and Abbreviations ASCII American Standard Code for Information Interchange An eight bit 7 bits plus 1 parity bit code used for data BCD Binary Coded Decimal CPU Central Processing Unit usage in this document refers to a Series 90 family PLCCPU Input Output K 1024 LM90 LogicMaster 90 GE Intelligent Platforms Programming software that can be used to createladder logic programs and configuration for the Series 90 PLC family The LM90 programming software connects to the target PLC via the Work Station Interface WSIB WSO9 hardwareoraserial communication port MS Millisecond NUL The ASCII NUL character 00h hexadecimal PLC ProgrammableLogic Controller SMEM System MEMory 1 Q T M SA SB SC 96S G 1 SNP Series Ninety Protocol TSR Terminate and Stay Resident UART Universal Asynchronous Receiver Aransmitter samplescommunications bit stream input data Basic Terms Hexadecimal Anumbering system having 16 as a base represented by the digits 0 through 9 and through F Master SNP Device Host device on which the master implementation of the SNP protocol is running ProgrammerAttachment A device which has identified itself as a programmer i e logged in to the PLC and therefore is granted access to certain extra commands such as changing the state of the PLC and clearing the Faulttabl
64. lege for attempted operation 3 Unable to perform auto configuration 4 I Oconfigurationisinvalid 5 0 CannotclearI Oconfiguration 6 OFA CannotreplaceI Omodule 7 0 9 Task address out of range 8 OF8 Invalid task name referenced 9 OF7 Required to log in to a task for service 10 OF6 Invalid sweep state to set 11 OF5 Invalidpassword 12 OF4 Invalid input parameter in request 13 OF3 I Oconfigurationmismatch 14 0 2 Invalid program cannotlog in 15 OF1 Requestonly valid from programmer 16 OFO Request only valid in stop mode 17 OEF Programmerisalready attached 18 OEE Could not return block sizes 19 OED VMEbuserrorencountered 20 OEC Task unable to be created 21 OEB Task unable to be deleted 22 Not logged in to process servicerequest 23 0 9 Segment selector not valid in context 24 0 8 user memory is available to allocate 25 0 7 Configuration is not valid 26 0 6 CPU model number does not match 27 0 5 DOS file area not formatted 28 0 4 Segment for this selector does not exist 29 CPU revision number does not match 30 0 2 IOS could not delete configuration or bad type 31 0 1 NoI Oconfiguration to read or delete 32 0 0 Service in process cannot login 33 ODF Invalid Datagramconnectionaddress 34 ODE Sizeof Datagram connection invalid 35 00 Unable to locate given connection ID 36 O0DC Unableto find connection address 37 ODB Invalid segmentselecto
65. m MUST invoke the De install driver function request in order to restore the hardware clock frequency to un hook from the hardware timer interrupt and restore the vector used by the SNP Driver to its original value Application Notes for Either TSR or Library Implementation 1 The application program should always invoke the OPEN PORT SNP function on entry in order to ensure that the serial port used in the SNP communication is properly set up 2 On exit from the application program the program should always invoke the CLOSE PORT SNP function 3 The SNP Timer T4 is configurable However non modem situations T4 should be set to 50 milliseconds and with modems T4 should be set to 600 milliseconds GE recommends the 600 milliseconds T4 time with modems based on the testing it has done with two modems DATARACE Action 24 modem and the FASTCOMM Communications FDX 9696 modem Other modems may require more time or they may require less time C 2 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 0585 Symbols AL 3 12 AQ 3 12 G 1 8 12 1 1 8 3 12 erage Bit Mode Q 1 8 3 12 Bit Mode R 3 12 8 1 8 3 12 SA 1 8 B 12 SB 1 8 5 12 5 1 8 3 12 1 8 B 12 Abbreviations 1 8 Access Bit Access Byte Access 3 13 Word Access 3 13 Acronyms Application Notes Basic Terms Baud Rate 7 Header
66. m Turnaround Time Change Port Parameters baud port number parity stop bits Change Maximum Data Size and are described in detail in Chapter 3 SNP Driver Functions There is another SNP Driver Function Request provided called Process Configuration File by which the user can specify new configuration data in a file The configuration file uses the mnemonics listed in Table 2 1 to specify individual parameters and sets them equal to new values The space tab carriage return and line feed characters are used as delimiters Any number of configuration parameters can be changed via one call to this request This clearly has an advantage over the individual configuration function requests listed above if you have a lot of configuration data to change For example suppose the user wants a baud rate of 9600 no parity two stop bits comm port number 3 CPU ID of PLC0001 a maximum data size of 60 modem turnaround time of 20 milliseconds a T1 time of 15 milliseconds a T2 time of 1000 milliseconds and a T3p time of 5 seconds Using the appropriate mnemonics from Table 2 1 a configuration file containing these parameter values delimited by a lt CR gt lt LF gt has the following format BAUD 9600 PARITY NONE STOPBITS 2 PORT 3 0001 MAXDATA 60 MODEMTIM 20 1 15 2 1000 5000 The same parameter data in a file delimited by spaces looks as follows BAUD 9600 PARITY NONE STOPBITS 2 PORT 3 CPUID PLC00
67. makes recommendations on proper setup of parameters driver interrupt invocation and error checking If you purchase the SNP Driver software source files additional files appear on the SNP Driver diskette along with those listed in Appendix B of GFK 0585 SNP Communications Driver User s Manual The following is a list and description of the SNP Driver Source files SNP Master Driver Source Diskette Contents Assembly Files SNPINST ASM SNPSOFT ASM SNPTIMER ASM SNPHARD ASM C Source File SNPC Contains the code that installs the SNP Driver It contains the entry point TSR version and the entry point linit snp driver Library version We check to see if the driver has already been installed so we do not install twice and we ensure that the DOS version is 2 0 or greater To install the driver the SNP Function Interrupt is hooked into and the routine that changes the clock frequency on the 8253 counter timer chip is called in order to achieve a finer resolution for the SNP timers If the TSR implementation is being used configuration data is updated and the install routine exists as a Terminate Stay Resident TSR program Contains the entry point to the SNP Driver when the SNP Driver Interrupt occurs On installation the address of Ssoft int was placed in the vector table at the interrupt for the SNP Driver All SNP Driver Function calls funnel through Ssoft int On entry the AX register contains the SNP D
68. model of CPU and memoryconfiguration 3 12 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 SegmentSelector Byte field which specifies the memory type to be accessed Refer to Table 3 5 Reference Data Segment Selector for valid values DataOffset Word field least significant byte first followed by most significant byte which specifies an index into the memory type where access is to begin Data Offset is zero based and is defined in terms of bit byte or word depending on the segment selector specified DataLength Word field least significant byte first followed by most significant byte which specifies the length of data to be accessed within the specified memory type Data Length is defined in terms of bit byte or word again depending on the segment selector specified The following examples show the values of these three fields for different modes of access bit byte or word The key items to remember when looking at these examples are that the two fields Data Offset and Data Length are defined in terms of bits bytes or words depending on the segment selector and that the field Data Offset is zero based Examples of BIT access 1 M35 in bit mode Segment Selector 4C M memory in bit mode Data Offset 22 00 0022h 34 bit index to M35 Data Length 0100 0001 one bit 2 97 to M112 in bit mode Segment Selector 4C M memory in bit mode Data Offset 60 00 0060
69. munications User s Manual At GE Intelligent Platforms we strive to produce quality technical documentation After you have used this manual please take a few moments to complete and return the following Reader s Comment card MS DOS is a registered trademark of Microsoft Corporation Contents Chapter 1 Introductions isis es ota Voi ied a abu Od m te E LU E duets 1 1 SNP Driver Overview sssi errog cp Ra ers I ME RP UE eb s 1 1 DOS Version 2rd aes 1 3 SNP Driver Implementations 1 3 Systems Configurations 1 4 RS 232 RS 422Point to Point Connection 1 4 RS 422 Point to Point Connection 1 5 Series 90 PLC Modem Serial Link 1 5 Series 90 PLC Multidrop Serial Link 1 6 Definition of Terms ais 1 8 Acronyms and Abbreviations 1 8 Terms eon redeat etd t td cnc eode 1 8 Chapter 2 Installationand 2 1 SNP Driver Soft Ware ut Ea E Eus 2 1 License Agreement eine Coq xe DH ee HERE Re he ted 2 1 SNP Driver Implementations 2 1 Installation of the TSR SNP D
70. n error status is Nocommunication There are several reasons why a No Communication error would be returned 1 The port configuration for the host device on which the SNP Driver is running does not match that of the PLC e g baud rates are different parity is different number of stop bits are different There is not a ID match between the SNP Driver configured CPU ID and PLCs CPU ID This breaks down into two scenarios point to point versus multi drop Point to Point If there is only one PLC on the link a SNP Driver s configured CPU ID of NUL default is sufficient The PLC will always respond to the NUL CPU ID If the Driver s CPU ID is not NUL then it must equal the PLC CPUs ID in order to establish a communication session Multi drop Each PLC CPU on a multi drop link must have a distinct CPU ID The user must change the SNP Driver s configured CPU ID according to the PLC it wishes to establish a communication session with Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Programmer Logon The PLC Programmer Logon Request allows a user to login and logout as a programmer attachment Some service requests require that the user be logged in as a programmer attachment such as Clear Fault Table and Set PLC State When the user establishes a communication session with a Series 90 70 PLC the user is automatically logged into the Null task Therefore no explicit logon request is required i
71. n order to issue the Clear Fault Table or Set PLC State service requests There is no automatic logon when the user establishes a communication session with a Series 90 30 PLC The user must make an explicit logon request to the Null task before issuing the Clear Fault Table or Set PLC State service requests PLC Programmer Logon The PLC Programmer Logon Request is issued by setting up the following registers and invoking the driver interrupt routine AX 23 PLC Programmer Logon function number BX 2 Login Serial Mode 3 Logout Mode used to logout from program task 4 Logout Bye Mode used when connection is to be broken CX word value Block Transfer Buffer Size ES DI pointer to an 8 byte NUL terminated ASCII string Program Task Name The Series 90 30 PLCs do not differentiate between logout mode and logout bye mode so either value can be used when logging out of the programmer window The Block Transfer Buffer Size is used by the Series 90 70 PLC only If you are communicating to a Series 90 70 PLC the Block Transfer Buffer Size must be a non zero positive number e g 16384 4000h If you are communicating to the Series 90 30 PLC the Block Transfer Buffer Size field and pointer to the Program Task Name are ignored The Program Task Name is a 8 byte NUL terminated ASCII string or 8 NULs if logged on to the Null Task If the Programmer Logon request successfully completes the AX register returns zero su
72. nal Termination 9 CTS A Clear to Send 9 CTS A Clear to Send Optional Termination Optional Termination 10 CTS B Clear to Send 10 RTS B Request to Send 11 CTS A Clear to Send 11 RTS A Request to Send 12 RTS B Request to Send 12 CTS B Clear to Send 13 RTS A Request to Send 13 CTS A Clear to Send 14 RD B Receive Data 14 5 Send Data 15 RD A Receive Data 15 SD A Send Data 16 SD A Send Data 16 RD A Receive Data 17 SD B Send Data 17 RD B Receive Data 18 NC 18 RD A ReceiveData Optional Termination 19 NC 19 RD B ReceiveData Optional Termination 20 NC 20 NC 21 NC 21 NC 22 RD B Receive Data 22 SD B Send Data Optional Termination 23 RD A Receive Data 23 SD A Send Data Optional Termination 24 SD A Send Data 24 NC 25 SD B Send Data 25 SE Enable RS 232C NotUsed NCzNo Connection SD Send Data and RD Receive Data are the same as TXD and RXD used in the Series Six PLC and B are the same as and A and B denote outputs and A and denote in puts A 12 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 The signal ground connections 7 on each connector must be made between the Isolated Repeater Converter and the PLC forJ1 and the Iso lated Repeater Converter and the host computer for J2 Pin 7 of the J1 portis connected to the metal shell of the J1 connector Pin 7 of the J2 port is con
73. nected to the metal shell of the J2 connector These two signal ground connections are isolated from each other and are iso lated from the power system ground green wire on the terminal block To maintain proper isolation these signal grounds cannot be tied togeth er System Configurations The figures below show various ways you can connect the Isolated Repeater Converter to convert signals expand the number of drops and obtain greater distance Any sys tem configuration can be reduced to a minimum number of cables each covering a part of the overall system configuration The example system configurations below refer to these cables as Cables A D shown in Cable Diagrams later in this section Downstream and Upstream Contention In this section simple multidrop configura tions are those where a single Isolated Repeater Converter is used Complex multidrop configurations contain one more multidrop sections where an Isolated Repeater Converter is included as one of the drops In both simple and complex multidrop config urations the transmitters directed downstream from the master can be on at all times There will be no contention for the communication line because only one device the master transmits downstream In simple multidrop configurations there will be no contention when transmitting up stream as long as devices tri state their drivers when idle and turn them on only when they have something to transmit This is
74. next section SNP Driver Configuration for details on how to change the default If errors are encountered an explicit error message will be displayed stating which configuration parameter is in error A separate message is displayed for each error encountered see example below Upon completion of configuration processing the message SNP Driver Configuration processing complete is displayed After all configuration data is processed the driver is installed as a Terminate Stay Resident TSR program The driver stays resident until you either CTRL ALI DEL or cycle power on the PC You should now see the message SNP TSR Driver Installed Rev 1 01 followed by a copyright message Therefore a first time installation with no configuration parameter errors should yield these messages Processing SNP Driver configuration SNP Driver Configuration processing complete SNP TSR Driver Installed Rev 1 01 Copyright 1994 All Rights including trade secret rights are reserved Unauthorized use of the information or program is strictly prohibited Installation of this software conforms acceptance of the terms and conditions of the license agreement distributed with this product Installation of the driver is now complete Any subsequent attempts to install the driver e g to change configuration parameters results in a message informing you that the driver is already installed Processing SNP Driver configuration S
75. nication over modems is also supported The following figures illustrate some of the possible master slave device connections If you have a host device equipped with an RS 232 Interface the RS 232 RS 422 converter GE catalog number IC690ACC900 IC690ACC901 is required RS 232 RS 422 Point to Point Connection WORKMASTER II SERIES 90 70 PLC 44496 nv RS 232 RS 422 CONVERTER RS 232 RS 422 cuo ia Figure 1 1 RS 232 RS 422 Point to Point Serial Connection to Series 90 70 PLC WORKMASTER 1 244497 RS 232 RS 422 SERIES 90 30 PLC CONVERTER dp RS 232 RS 422 P 0 In Figure 1 2 RS 232 RS 422 Point to Point Serial Connection to Series 90 30 PLC 1 4 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Write System Memory allows the application program to write a block of PLC refer ence data 1 Q T M SA SB SC G R DOS Version The SNP Master Driver requires MS DOS version 2 0 or later SNP Driver Implementations Two different implementations of the Master SNP Driver are available a Terminate and Stay Resident TSR implementation and a linkable library implementation If you choose to use the TSR implementation you m
76. of the CMM serial port to NONE flow control with a 10 ms Modem Turnaround Delay Applies to CCM SNP and SNP X protocols only Rule 3 Do not place more than 3 bricks in a single communication path between the host and the slave devices Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Cable Diagrams The cable diagrams below are referred to as Cables A E from the system configurations in the previous figures These diagrams show the principles for constructing your own cables and can be modified to fit your specific application a44929 PIN PIN J2 SW ON J o lt T 2 RD 03 00 lt 3 E 2 SD 9 9 0 x RTS 4 m i 4 RTS 09 00 0 CTS 5 5 CTS 0 0 0 Fd 0 ISOLATED 0 SERIES 90 9 8 1 gt 00 repeater 00 00 DTR 20 F 00 converter 0 Host 0 Lt E gt BRICK 0 0 0 0 0 11 11 0 0 0 ol Fd NE E 00 o 0 1 9 04 0 lt GND 7 7 GND 6 0 0 0 02 22 Ship a ES 90 0 25 PIN 25 25 25 FEMALE MALE MALE FEMALE NOTE PIN ASSIGNMENTS CORRESPOND TO SERIES 90 CMM MODULE PIN ASSIGNMENTS MAY DIFFER FOR OTHER HOST DEVICES Figure A 10 Cable A RS 232 Device To
77. ommunications Driver User s Manual April 1994 vii Figure 1 1 RS 232 RS 422 Point to Point Serial Connection to Series 90 70 PLC Figure 1 2 RS 232 RS 422 Point to Point Serial Connection to Series 90 30 PLC Figure 1 3 RS 422 Point to Point Serial Connection to Series 90 70 Figure 1 4 RS 422 Point to Point Serial Connection to Series 90 30 Figure 1 5 Point to Point Modem Serial Link Connection for Series 90 PLCs Figure 1 6 Multidrop Serial Link Connection for Series 90 PLCs Figure 1 7 Multidrop System Using RS 422 Isolated Repeater RS 232 Converter Figure A 1 Series 90 PLC RS 422 Serial Port Connector Configuration Figure 2 Workmaster RS 232 Serial Port Connector Configuration Figure 3 IBM AT XTSerialPort 2 22 2 2 2 2 Figure 4 RS 232 to RS 422 Converter Logic Diagram Figure A 5 Example RS 232 to RS 422 Converter Connection Figure A 6 The Isolated Repeater Converter Figure 7 RS 422 Isolated Repeater 5 232 Converter Logic Diagram Figure A 8 Simple System Configuration Using the Isolated Repeater Converter Figure 9 Complex System Configuration Using the Isolated Repeater C
78. on buffer will be eight bytes in length and is defined as follows Table 3 6 PLC Time Date Destination Buffer Item Byte Description Seconds Byte1 Current seconds in packed BCD format Minutes Byte2 Current minutes in packed BCD format Hour Byte3 Current hour in packed BCD format Day Byte4 Current day of month in packed BCD format Month Byte5 Current Month in packed BCD format Year Byte6 Current year in packed BCD format Day of Week Byte7 Valid range 1 7 where Sunday 1 Saturday 7 Spare Byte8 Reserved Don t Care Note Packed BCD format Tens digit in bits 4 thru 7 units digit in bits 0 thru 3 In the following example the current time in the PLC CPU is 10 48 59 and the date is Friday May 4 1990 The destination buffer would contain the following values in BCD format 59 48 10 04 05 90 06 xx where is the spare don t care byte The Return PLC Time Date function call should return success AX 0 as long as a communication session has been established and no communication errors i e parity error overrun error framing error have been encountered Set PLC Time Date Set PLC Time Date Request sets the internal time and date stored in the PLC CPU The Set PLC Time Date Request is issued by setting up the following registers and invoking the driver interrupt routine AX 28 Set PLC Time Date function number DX 1 Set both time and date 2 Set t
79. on for an error status is Invalid input parameter in request in the case where this function is called from a TSR implementation The De install Driver function has not been implemented in the TSR implementation an is therefore an invalid function to call In the Library implementation this function call always returns zero success Process Configuration File 3 6 The Process Configuration File Request allows the application program to change any of the driver configuration data i e port configuration SNP timer values CPU ID SNP Data Size for subsequent communication sessions The configuration data for a current communication session is not affected Any port configuration baud rate port number number of stop bits or parity changed by a Process Configuration File Request does not become active until an Open Port Request is issued All other driver configuration data SNP timer values CPU ID and SNP Data Size changed by a Process Configuration File Request does not become active until an Establish Communication Session Request is issued The user passes the pathname and filename in the form of a NUL terminated ASCII string of a configuration file to the driver The driver opens the file parses and processes it and then closes the file Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 The Process Configuration File Request is issued setting up the following registers and invoking the
80. onverter Figure A 10 Cable RS 232 Device To Converter Figure A 11 Cable B RS 422 Device to Converter Figure A 12 Cable C 5422 Twisted Pair Figure A 13 Cable D RS422 Twisted Pair Figure A 14 Cable E RS 232 Converter to Figure A 15 Workmaster II 25 pin Serial Connection to Series 90 PLCs Figure 16 IBM AT compatibles Personal Computer to Series 90 PLCs Figure A 17 Workmaster or IBM XT compatibles Personal Computer to Series 90 PLCs Figure A 18 Typical RS 422 Host to PLC Connection with Handshaking GFK 0585A Series 90 PLC SNP Communications Driver User s Manual April 1994 Contents 1 4 1 4 221 1 5 viii Contents Table 2 1 Default Configuration 2 0 nee 2 3 Table 2 2 Port Designation ee GEI E Nee atk NAN ig 2 4 Table 2 3 Series 90 PLC Timer 6 2 2 2 5 Table 3 1 Local SNP Driver Functions 1 4 0 3 2 Table 3 2 Remote SNP Driver 0 3 2 Table 3 3 Controller Type and ID Destination Buffer
81. or sig nal conversion greater distance and more drops RS 422 244928 CABLE C SERIES 90 PLC SERIES 90 PLC OR HOST SERIES 90 PLC RS 422 RS 422 z CABLE D x CABLE D BRICK BRICK SERIES 90 PLG Ji RS 232 SW ON SW ON Coe SERIES 90 PLC RS 422 CABLE B RS 422 RS 422 CABLE D x CABLE D BRICK BRICK SERIES 90 E Sw SW ON SERIES 90 PLC RS 232 CABLE E SERIES 90 PLCJ BRICK IS THE NICKNAME FOR THE BRICK 5 ISOLATED REPEATER CONVERTER SW CTS Figure A 9 Complex System Configuration Using the Isolated Repeater Conver ter Rules for Using Repeater Conver ters in Complex Networks When designing a complex multidrop network including PLCs and RS 422 repeater con verters bricks the following rules apply Rule 1 When using a brick as a repeater port J2 should always be directed toward the host device and Port J1 should always be directed away from the host device The switch located on the side of the brick should always be in the center position ON The only case in which Port J1 is directed toward the host is when the brick is used as a con verter RS 232 at the slave The switch is in the right position CTS Rule 2 If a Series 90 CMM slave device is located downstream of a brick set the config uration
82. ost use to the application programmer They contain constants and structures that would otherwise have to be set up by the application programmer The application programmer should study what these files have to offer If the application is not programmed in C these files can be converted to the language being used i e Pascal Fortran Assembler etc Contains useful constant and structure definitions for the SNP functions 1 Contains an enumeration of the SNP functions the mnemonics in the enumeration can be used when setting up the AX register in preparation for invoking the SNP Driver interrupt 2 Contains a constant declaration for the SNP Driver interrupt 3 Contains constant declarations for various parameters for use with the applicable SNP function 4 Contains structure definitions for Time Stamps PLC Status Word Piggy back Status Controller TYPE and ID information and Fault Tables B 1 STATUS H ACCESS H C Source File EXAMPLE C Contains the Major and Minor Error Status codes that are returned if the SNP Function request did not succeed Contains a table of segment selectors along with their access type BIT versus BYTE versus WORD The user may or may not find this file useful Its use is applicable to reading and writing system memory Example application source file which makes use of the SNP Master Driver It provides simple easy to understand examples of each available SNP Driver function It also
83. privilege level and logon requirements GFK 0585 3 1 Table 3 1 Local SNP Driver Functions Function SNP Driver Function Number Open Port 0 Close Port 1 Change CPU ID 2 Change T1 Timer 3 Change T2 Timer 4 Change T3p Timer 5 Change T4 Timer 6 Change Modem Turnaround Time 7 Change Port Parameters 8 Change Maximum Data Size 9 De install SNP Master Driver 10 Process Configuration File 11 Get Version 12 Table 3 2 Remote SNP Driver Functions Function Series 90 30 PLC Series 90 70 PLC SNP Driver Function Number Privilege Level min Privilege Level min Logged In EstablishSession 22 N A N A N A ProgrammeLogon Logoff 23 1 0 NO Return Controller Type and ID 24 1 1 NO Read System Memory 25 1 1 NO Write System Memory 26 2 2 NO Return PLC Time Date 27 1 1 NO Set PLC Time Date 28 2 2 Return Fault Table 29 1 1 NO Clear Fault Table 30 2 2 YES Set PLC State 31 2 2 YES For Series 90 30 PLCs with Release 1 x CPU firmware privilege level 3 or higher is required Open Port The Open Port Request allows the application program to open the serial port using the installed SNP Driver s port configuration The Open Port Request is issued by setting up the AX register and invoking the driver interrupt routine AX Open Port function number This request cannot fail therefore AX always returns zero success 3 2 Series 90 PLC SNP Communications Driver User s Manual
84. rientation and connector layout for both PLC types Table A 2 shows the pin numbering and signal assignment applicable to both PLCs 244521 SERIES 90 70 SERIES 90 30 PLC PLC PIN 15 09118 O O O O O O O O O o9 26 PIN 901145 04 1 Bue NOTE SERIES 90 PLC CONNECTORS USE METRIC HARDWARE SEE CONNECTOR SPECIFICATIONS Figure A 1 Series 90 PLC RS 422 Serial Port Connector Configuration Table A 2 Series 90 PLC RS 422 Serial Port Pin Assignment Pin No Signal Name Description 1 Shield 2 NC 3 NC 4 ATCH Hand Held Programmer attach signal 5 45V 5V Power for Hand Held ProgrammerRS 232 422Converter 6 RTS A Request To Send 7 Signal Ground Signal Ground OV 8 CTS Clear To Send 9 RD Terminating Resistor for RD 120 10 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 A Clear To Send Signalsavailable at the Connector but are not included in the RS 422 specification SD Send Data and RD Receive Data are the same as TXD and RXD used in the Series Six PLC and B the same as and A and B denote outputs and A and denote inputs Termination resistance for the Receive Data RD signal needs to be connected only on units at the end of the lines This termination is made on the Series 90 PLC products by connecting a jump
85. rin Datagram 38 ODA Null pointer to data in segment selector 39 009 Transfer type invalid for this selector 40 008 Point length not allowed 41 007 Invalid Datagram typespecified 42 006 Datagramconnectionboundary exceeded 43 05 Invalid specified in Datagram 44 004 Mismatchofconfigurationchecksum 45 003 User Program Module UPM read or write exceeded block end 46 0122 Invalid write mode parameter 47 001 Packet size total program size does not match input 48 000 One or more PLC modules configured have unsupported revision 49 0 Specified device is not available in the system not present 50 0 Specified device hasinsufficientmemory to handle request 3 24 Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Table 3 14 Minor Error Status Codes Major Code 5 Continued Decimal Hexadecimal Description 51 OCD Attempt was made to read a device but no data has been stored on it 52 0CC Data stored on device has been corrupted and is no longer reliable 53 OCB Acomm or write verify error occurred during save or restore 54 0 Device is write protected 55 0 9 Login using non zero buffer size required for block commands 56 0C8 Password s already enabled and cannot be forced inactive 57 0 7 Passwords set to inactive and cannot be enabled or disabled 58 0 6 Control Program tasks exist but requestor not logge
86. river Function Number Contains the routine that changes the clock frequency on the 8253 counter timer chip in order to achieve a finer resolution for the SNP timers and a routine that restores the clock frequency to its previous value This module also contains the routines that service the SNP timers Contains the routines which interface to the serial port including the programming of the 8250 UART and the 8259A Programmable Interrupt Controller Contains the Master implementation of the SNP Protocol It builds requests to the PLC in the form expected by the PLC and handles all PLC responses The public entry points in this module for the various SNP Driver Remote Function requests are called from the interrupt routines Ssoft int contained in the module SNPSOFT ASM Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Header Files SNP_INT H Contains the external declarations for the SNP Driver s public data and the prototypes for the public routines SNP_PROT H Contains constants and structure definitions for the SNP protocol Assembly Include File SNPINC Contains constant declarations for default timer values interrupt constants serial communication constants and Driver Function Number constants It also contains extra declarations for the SNP Driver s public data and prototypes for the public routines Other Files MAKEFILE Contains the compilation and link switches to build the SNP DOS
87. river Software 2 1 Installation of the Library Driver 2 3 SNP Driver 2 3 GFK 0585A Series 90 PLC SNP Communications Driver User s Manual April 1994 v Contents Chapter 3 SNP Driver Functions YA APA Ge dass 3 1 SNP Driver Interface circ terea paket aie etti e t 3 1 SNP Driver Functions 3 1 OpencPort uou 6 eck sas ce Sel 3 2 Glose scat lesa ette ete dec a 3 3 Change CPU TD iie jaa pea eeu Re Ars 3 3 Change TT Timer 3 3 Change T2 Timer 5x ee Sae ee Seek Ya veteris 3 4 Change Timer eR 3 4 Change TA TIMEN eee Ones eb AH HE 3 4 Change Modem Turnaround Time 3 5 Change Port Parameters 3 5 Change Maximum Data Size 3 5 De Install SNP Master Driver 3 6 Process Configuration 3 6 Get eso erect ei E eb aeo te reete 3 7 Establish Session
88. t least one 1 The range of values for modem turn around time is 0 to 2550 milliseconds SNP Data Size The SNP data size refers to the number of data bytes allowed in one SNP Data message A SNP Data message is one of the three SNP message types Text Buffer message Block Transfer message or Connection Data message All other SNP message types have a fixed size and therefore are not affected by the SNP data size You may specify the maximum amount of data allowed in SNP messages The default and the maximum allowed data for the SNP Driver is 1000 bytes You may decrease this value if needed for a given application where the minimum allowed is 40 bytes A smaller SNP data message may be useful in an environment where there is noise on the serial link The smaller data messages provide more frequent error checking Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 Timers The SNP Driver provides several timers whose values may be adjusted by the user to allow the serial communication link to run as efficiently as possible for a given situation The following is a description of the timers 4 break processing time It is the minimum time the master is required to wait between the end of transmission of the long break and the first character of the attach message The break processing time is necessary in order to give the slave time to recognize the long break and prepare to receive the Attach m
89. terrupt Int 8 and perform a divide by 16 adjustment so that the BIOS timer tick service is called at the normal rate If you are using the linkable SNP Driver the clock frequency MUST be restored upon exiting the user application program This is accomplished by the SNP De install function which is described in Chapter 3 SNP Driver Functions The user MUST invoke this function on exit from the user program Currently there is no De install feature implemented for the TSR version of the SNP Driver Therefore if you are using the TSR implementation the clock frequency is never restored until you either press CTRL ALT DEL or cycle power on the PC You must be aware of the changed frequency in case you load other applications that hook into the Clock Interrupt and assume a 54 925 millisecond frequency These applications must be loaded PRIOR to loading the TSR SNP Driver in order for proper timing to take place If an application which hooks into the Clock Interrupt is loaded after the TSR SNP Driver the application s Clock Interrupt will be called every 3 433 milliseconds rather than the normal 54 925 milliseconds GFK 0585 Chapter 1 Introduction 1 3 Systems Configurations Several system configurations are possible There may be just one PLC on the serial link direct point to point connection or there may be many Series 90 PLCs serial link multi drop port connection Only one SNP master may be on a multi drop link Commu
90. the case for the Series 90 70 and Series 90 30 CMMs In complex multidrop configurations however special steps must be taken to switch the upstream transmitters of the Isolated Repeater Converter Switching Upstream Transmitters For the 5 422 drivers to be active at the J2 port of the Isolated Repeater Converter the RTS input at J1 must be true The state of the RS 422 drivers at the J1 port depends on the position of the switch on the unit When the switch is in the center position the J1 transmitters will always be turned on When the switch is in the CTS position toward the power cable then either the RS 232 or 5 422 CTS signal must be true to turn on the J1 drivers Note Note the position of the switch on the Isolated Repeater Converter in the system configurations below GFK 0585 Appendix A Serial Port and Cables A 13 14 Simple Multidrop Configuration This configuration shows how to connect a single Isolated Repeater Converter for signal conversion or greater distance a44927 5 232 5 422 5 422 SERIES 90 PLC CABLE A CABLE CABLE BRICK SERIES 90 PLC HOST J2 SW ON SERIES 90 PLC BRICK IS THE NICKNAME FOR THE ISOLATED REPEATER CONVERTER y Figure A 8 Simple System Configuration Using the Isolated Repeater Conver ter Complex Multidrop Configuration This configuration shows how to connect multiple Isolated Repeater Converters f
91. tion called Iinit snp driver in order to install the library version of the SNP Driver This call MUST be made prior to invoking any of the SNP Driver Functions The function returns a status where the only error status is a bad DOS version You must have DOS version 2 0 or later See Chapter 3 for error status descriptions The file SNPLIB must be linked in with the user application object files which resolves the far call linit snp driver and contains the SNP Driver code Unlike the TSR implementation which always remains resident you can de install the library version of the SNP driver In fact you MUST de install the SNP driver on exiting the user application program in the library implementation This is accomplished via the De install SNP driver function see Chapter 3 SNP Driver Configuration This section explains the SNP configuration required to establish a successful communication link baud rate target PLC serial port parity stop bits modem turnaround time maximum data size and timers The installed SNP driver uses the following default configuration Table 2 1 Default Configuration Mnemonic Default Value Description BAUD 19200 Thebaud rate for the communication CPUID EightNULs The CPU ID of the PLC CPU that the host wishes to es tablish a communication session with PORT 1 The COM port number from COMI to PARITY ODD The parity used either NONE ODD or EVEN STOPBITS 1 The numb
92. tocol SNP Driver The Series 90 SNP protocol is used to retrieve store data or issue commands to a given Series 90 PLC via the serial port Asummary of the contents is provided here Chapter 1 Introduction Provides an overview of the GE SNP Driver software and briefly discusses the possible system configurations Chapter 2 Installation and Configuration Includes installation and configuration information for the GE SNP driver on a Personal Computer PC operating in the MS DOS environment Chapter 3 SNP Driver Functions Describes the SNP Driver function requests for operation in the MS DOS environment Appendix A Serial Port and Cables Describes the Series 90 PLCs serial port converter and cables used to connect to Series 90 PLCs Appendix B Files on the Diskette Provides a listing of the files and a description of each of the files that are supplied on the SNP Master Driver diskette Appendix C Application Notes Contains helpful information for the application programmer Related Publications The following documents are Series 90 PLC products that may be associated with the SNP software installation and application GFK 0262 Series 90 70 Programmable Controller Installation Manual GFK 0263 Logicmaster 90 Programming Software User s Manual e GFK 0356 Series 90 30 Programmable Controller Installation Manual GFK 0402 Series 90 30 Hand Held Programmer User s Manual 0582 Series 90 PLC Serial Com
93. ual April 1994 GFK 0585 Write System Memory allows the application program to write a block of PLC refer ence data 1 Q T M SA SB SC G R DOS Version The SNP Master Driver requires MS DOS version 2 0 or later SNP Driver Implementations Two different implementations of the Master SNP Driver are available a Terminate and Stay Resident TSR implementation and a linkable library implementation If you choose to use the TSR implementation you must run an executable file supplied by GE to install the TSR driver The TSR driver starts off as a normal program but when it exits it invokes the Terminate and Stay Resident DOS function thereby leaving some of the code resident Once you install the TSR the code remains until you either CTRL ALI DEL or cycle power your PC The SNP TSR Driver takes approximately 12K bytes If you choose to use the linkable library supplied by GE you must link in the SNP driverlibrary along with your application object files to produce an executable file The SNP Master Driver hooks into the Hardware Clock Interrupt Int 8 Normally this interrupt is generated every 54 925 milliseconds at which time the BIOS timer tick service is called SNP has timers which require greater resolution than 55 milliseconds To achieve greater clock resolution we adjust the 8253 clock chip to run at 16 times the normal frequency when the SNP Master Driver is installed We also hook into the Clock In
94. uest is issued by setting up the following registers and invoking the driver interrupt routine AX BX 6 Change 4 Timer function number new T4 Timer value in milliseconds Series 90 PLC SNP Communications Driver User s Manual April 1994 GFK 0585 If the request successfully completes the register returns zero success Otherwise AX contains an error status The only reason for an error status is Invalid input parameter in request where the new T4 timer value passed in the BX register was out of range The valid range for T4 is 50 to 6500 milliseconds Change Modem Turnaround Time The Change Modem Turnaround Time Request allows the application program to change the SNP Driver s Modem Turnaround timer value for subsequent communication sessions The Modem Turnaround timer value for a current communication session is not affected The new Modem Turnaround timer value set by the Change Modem Turnaround Time Request does not become active until an Establish Communication Session Request is issued The Change Modem Turnaround Time Request is issued by setting up the following registers and invoking the driver interrupt routine AX BX 7 Change Modem Turnaround Time function number new Modem Turnaround Time value in milliseconds If the request successfully completes the AX register returns zero success Otherwise AX contains an error status The only reason for an error status is Invalid input parameter in r
95. unctions that issue remote requests to a PLC CPU e g Programmer Logon Return Controller Typeand ID READ Write System Memory etc All configuration data required for this communication session must be set up prior to invoking this request The Establish Session Request takes the following actions Attaches to the Series 90 PLC whose ID matches the installed driver s configuration CPU ID In the case of a point to point connection where there is only one PLC CPU on the seriallink the installed driver s configuration CPU ID may be the ASCII NUL string The single PLC on the serial link will always respond to a NUL CPU ID regardless of its CPU ID In the case of a multi drop connection each PLC CPU must have a distinct CPU ID The driver establishes the communication session with the PLC whose CPU ID matches the driver s configured CPU ID GFK 0585 Chapter 3 SNP Driver Functions 3 7 The driver and the PLC resolve the time values for the SNP timers T1 T2 T3p and the maximum SNP Data Size to be used for this communication session Sets the user s access privilege level to the highest unprotected level The Establish Session Request is issued by setting up the AX register and invoking the driver interrupt routine AX 22 Establish Session function number The Establish Session function call returns success AX 0 if the request successfully completes Otherwise AX contains an error status The most common reason for a
96. ust run an executable file supplied by GE to install the TSR driver The TSR driver starts off as a normal program but when it exits it invokes the Terminate and Stay Resident DOS function thereby leaving some of the code resident Once you install the TSR the code remains until you either CTRL ALI DEL or cycle power your PC The SNP TSR Driver takes approximately 12K bytes If you choose to use the linkable library supplied by GE you must link in the SNP driverlibrary along with your application object files to produce an executable file The SNP Master Driver hooks into the Hardware Clock Interrupt Int 8 Normally this interrupt is generated every 54 925 milliseconds at which time the BIOS timer tick service is called SNP has timers which require greater resolution than 55 milliseconds To achieve greater clock resolution we adjust the 8253 clock chip to run at 16 times the normal frequency when the SNP Master Driver is installed We also hook into the Clock Interrupt Int 8 and perform a divide by 16 adjustment so that the BIOS timer tick service is called at the normal rate If you are using the linkable SNP Driver the clock frequency MUST be restored upon exiting the user application program This is accomplished by the SNP De install function which is described in Chapter 3 SNP Driver Functions The user MUST invoke this function on exit from the user program Currently there is no De install feature implemented for the TSR
97. version of the SNP Driver Therefore if you are using the TSR implementation the clock frequency is never restored until you either press CTRL ALT DEL or cycle power on the PC You must be aware of the changed frequency in case you load other applications that hook into the Clock Interrupt and assume a 54 925 millisecond frequency These applications must be loaded PRIOR to loading the TSR SNP Driver in order for proper timing to take place If an application which hooks into the Clock Interrupt is loaded after the TSR SNP Driver the application s Clock Interrupt will be called every 3 433 milliseconds rather than the normal 54 925 milliseconds GFK 0585 Chapter 1 Introduction 1 3 Series 90 PLC Multidrop Serial Link In the multidrop configuration the host device is configured as the master and one or more PLCs are configured as slaves Figure 1 6 illustrates a multidrop connection with conversion capability only Figure 1 7 illustrates a multidrop connection having isolation repeater and converter capabilities For detailed information and example multidrop connections refer to Appendix A Serial Port and Cables WORKMASTER II SERIES 90 70 PLC 244500 RS 232 S SERIAL CABLE o o cuo RS 232 RS 422 CONVERTER WORKMASTER CIMSTAR MACINTOSH OR COMPATIBLE 5 422 SERIES 90
98. y for the accuracy completeness sufficiency or usefulness of the information contained herein No warranties of merchantability or fitness for purpose shall apply indicates a trademark of GE Intelligent Platforms Inc and or its affiliates All other trademarks are the property of their respective owners Copyright 2010 GE Intelligent Platforms Inc All Rights Reserved Contact Information If you purchased this product through an Authorized Channel Partner please contact the seller directly General Contact Information Online technical support and http www ge ip com support GlobalCare Additional information http Awww ge ip com Solution Provider solutionprovider ip ge com Technical Support If you have technical problems that cannot be resolved with the information in this guide please contact us by telephone or email or on the web at www ge ip com support Americas 1 780 420 2010 if toll free 800 option is unavailable Technical Support Email support ip ge com Europe the Middle East and Africa 4352 26 722 780 if toll free 800 option is unavailable or if dialing from a mobile telephone Asia Pacific support jp ip 2 ge com ini i 21 3217 4826 su China 0585 Preface Contents of Manual The purpose of this manual is to describe the software installation operation and programming of the GE Series Ninety Pro

Download Pdf Manuals

image

Related Search

Related Contents

sigibuild® foam  User's Guide to Fish Habitat Descriptions that Represent Natural    Sony Microphone V6 User's Manual  Manual GHV1300  Kinetix 300 EtherNet/IP Indexing Servo Drives User Manual, 2097    MoshiMoshi01 Handset+Base  Safety Requirements - Camloc Gas Springs  kit prince 24v con k2 24v  

Copyright © All rights reserved.
Failed to retrieve file