Home
VME DLAN/DLAN+ Manual, GFK-1044A
Contents
1. Short start addr unsigned short atol argv 1 amp Ox0000fff L Std start addr atol argv 2 amp OxOOffffffL printf short non priv start addr 04x std non priv start addr 081x n short start addr Std start addr for status vme status std start addr If the target module is uninitialized or its status has changed Print the current status value if status SETUP CMPLT status last status printf status of vme module at base address 081x dWMn std start addr status If the module is uninitialized Attempt to initialize it Print the result if status SETUP CMPLT Status vme setup short start addr std start addr printf new vme setup result d n n status Save the current status value and wait 1 000 milliseconds last_status status Wait time MS COUNT MODE 0 1000 VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A GFK 1044A The source file DLANINIT C contains the code for vne setup and vme status dlaninit c Provides initialization service for a VME DLAN interface module This file assumes a standard Series 90 70 PCM is the execution environment It is intended as a starting point for developing the same service for other VME processors include lt vtos h gt include lt stdio h gt include lt memory h gt include dlaninit h define NO ERROR internal return valu
2. JP3 JP2 E lujo e ale Figure 2 3 Detail of DLAN Configuration Jumpers From Figure 1 1 Figure 2 4 shows the two possible positions for jumpers JP2 through JP6 All of the jumpers are installed in the 1 2 position at the factory If you need to change one or more jumper positions use this procedure Each jumper has a thin tab that extends beyond the edge of the DLAN daughter board toward the front of the module Grip the tab with needle nose pliers and pull it forward until it is free Then move the jumper so that it will engage pins 2 and 3 and push it onto the pins Repeat for each jumper that needs to be changed GFK 1044A Chapter 2 Installation and Initialization 2 5 247079 Pin 3 Pin 3 Pin 2 Pin 2 Pin 1 Pin 1 Jumper shown in 1 2 position Jumper shown in 2 3 position Figure 2 4 Selecting a DLAN Configuration Jumper Position Selecting the DLAN Network Type In addition to DLAN two types of DLAN networks are supported by version 1 04 and later versions of the DLAN Module optically isolated and RS 485 The DLAN network type is selected by setting jumpers JP2 JP3 and JP4 as shown in Table 2 1 At the factory these jumpers are set to select the optically isolated network Table 2 2 Jumper Positions For Selecting DLAN Network Type Optically Isolated LAN RS488LAN EP o JP3 3 JP4 3 If the DLAN modules is powered on
3. DLAN Interface module in a VME computer system Appendix A Example C Program to Initialize a VME DLAN Interface Module shows you how to write application code to initialize the DLAN module Related DLAN Interface Module Publications GFK 1044A For more information refer to these publications Important Product Information for VME DLAN DLAN Interface Module GFK 1049 Data Sheet for DLAN VME DLAN Interface Module GFK 0728 iii Preface We Welcome Your Comments and Suggestions At GE Fanuc Automation we strive to produce quality technical documentation After you have used this manual please take a few moments to complete and return the Reader s Comment Card located on the next page Henry A Konat Senior Technical Writer iy VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A Contents Chapter 1 Introductio hex pmo ex eae nS ew roc ERS OER DU 1 1 Section 1 System Overview eeeeeee nnn 1 1 DEAN B S l6 UE Ra CEU EUROS de URS SCAURUS 1 1 VME DLAN Interface Module Functions 0 0 0 ee ee eee 1 2 VME DLAN Applications 0 0 cece tenes 1 2 Section 2 DLAN Interface Module Description 1 3 LED Indicators iieuRietteeReernterentbeees e vt tear aed uA 1 3 Address Select Jumpets os eremo aE Saws ee ERS eae Se ee 1 4 Restart Pushbutton i oic o sae anak ERR RR RR RR RC OR ROS UR 1 4 DLAN Network Connector 0 cece eee e 1 5
4. it always reads invalid data This condition is detected by comparing the data that was read back from the target module to the data that was sent All but the last byte must be identical If a difference is detected vme setup immediately returns VME ERROR Finally the last byte of data read from the target module is checked for the value CONFIG COMPLETE indicating that a successful initialization was acknowledged by the target module If the byte contains some other value vme setup returns INIT ERROR Otherwise it returns SETUP CMPLT and exits Appendix A Example C Program to Initialize a VME DLAN Interface Module A 5 A 6 Send the setup data to the target module in short non privileged mode status vme write 0 short_base address SETUP_OFFSET setup data VME DATA LEN short am if status NO ERROR return status j Start a one second timeout to wait for success Reset ef EF 00 Start timer RELATIVE TIMEOUT MS COUNT MODE 0 1000 EF 00 In a loop wait for success or the timeout Read the setup data back from the target module in standard non privileged mode The read will return invalid data if the initialization did not succeed while status CONFIG COMPLETE amp amp Test ef amp EF 00 status vme read read data hi_adr SETUP_OFFSET VME DATA LEN STD NP AM Compare the data that was read back with the data that was sent All except the
5. 2 10 MODULE OK LED 1 4 Module start address standard non privileged mode 2 8 N Network connector DLAN 1 5 Network type jumpers 2 6 O Overview system 1 1 P Power up diagnostics result 2 10 R Reading the DLAN modules acknowledgement 2 9 Required inilization data 2 8 Restart pushbutton 1 4 RS 485 termination resistors 2 6 S Selecting DLAN network type 2 6 Selecting RS 485 termination resistors 2 6 Serial connectors not used 1 5 Setup data required 2 8 Status data daughter board ID code 2 10 module error code 2 10 module ID string 2 10 power up diagnostics result 2 10 System overview 1 1 V VME module access short non privileged mode 2 9 module start address standard non privileged mode 2 8 VME DLAN applications 1 2 VME DLAN interface module functions 1 2 VME DLAN module dual ported memory 2 8 initialization process described 2 9 required data 2 8 status data daughter board ID code 2 10 module error code 2 10 module ID string 2 10 power up diagnostic result 2 10 VME memory 2 8 VME DLAN DLAN module description 1 3 GFK 1044A Index W Watchdog timer 1 4 Writing initialization data 2 9 GFK 1044A Index 3
6. DATA IN D C RESTART B5 BEM 764 Fi MODULE OK XX COMMAND OUT rl Oo X DATAIN Oo o ON OK ACTIVE zS o OTHER LEDS FOR 99 le FACTORY USE 99 o 2o 2e o 99 o PUSH TO RESTART p 9 COMMUNICATION co o DLAN CONNECTOR o E TA afe o TA 2 e v TXB 3 o DLAN o NETWORK A ls als CONNECTOR 5 ay gla o e o RX e E D CONNECTORS Oo ze NOT USED 5 j DLAN Tql 3 z CONFIGURATION 29 JUMPERS 99 MODULE FUNCTION o 9 GE DRIVES E 99 DLAN INTERFACE 2o OLA set O ora JP2 f JP3 OS BEMTGA OLA JP4 7 LABEL 44A726758 141R01 ADDRESS O SELECT JUMPERS Figure 1 1 VME DLAN DLAN Interface Module GFK 1044A Chapter 1 Introduction 1 3 MODULE OK LED The MODULE OK LED indicates the current status of the DLAN Interface module It has three states Table 1 1 MODULE OK LED Status State Description Off When the MODULE OK LED is off the DLAN Interface module is not functioning This is the result of a hardware malfunction for example the diagnostic checks detected a failure Corrective action is required in order to get the module functioning again On When the LED is on steadily the DLAN Interface module is functioning properly Normally this LED should always be on indicating that both the diagnostic tests and the initialization by the VME CPU were successfully completed Flashing The LED flashes rapidly during power up diagnostics and then more slowly while it waits for initialization by
7. DLAN Configuration Jumpers 0 0 0 c eee eee eee 1 5 Battery amp ieceneebektietiesheebeenkietbvgheesepmeenebeeEFeA Y 1 5 serial Connectors sss ed WAS ON AERIS oR ee PE RAE 1 5 Chapter 2 Installation and Initialization eere 2 1 What You Will Need lseeeeeeeeee I e 2 1 Section 1 Installing the DLAN Interface module Hardware 2 2 QUINAIRE 2 2 Setting the Address Select Jumpers 0 0 0 0 002s 2 2 Installing a VME DLAN Interface Module 0 0 0 2 3 Section 2 DLAN Jumper Configuration e 2 5 DLAN Configuration Jumpers 00 00 00 eee eee eee 2 5 Selecting the DLAN Network Type 0 00 00 ee eee eee 2 6 Selecting RS 485 Termination Resistors 0000 000008 2 6 Section 3 Initializing the VMEbus Interface 2 8 Required Initialization Data 0 2 ee eee eee 2 8 The Initialization Process 00 0 eee eee eee 2 9 Addressing the Target VME DLAN Module 04 2 9 Writing Initialization Data 00 eee eee 2 9 Reading the DLAN Module s Acknowledgment 2 9 Status Data Available from a DLAN Module 2 10 Module ID String eet ae des da nie ie E LP EE 2 10 Power Up Diagnostics Result 0 0 0 0 2 10 Appendix A Example C Program to Initialize a VME DLAN Interface Module A 1 GFK 1
8. Interface Module Hardware Refer to Section 1 for a description of the physical installation of the DLAN Interface module in a VME rack A description of the module hardware is also included Step 2 DLAN Jumper Configuration Section 2 describes how to set the DLAN configuration jumpers located on the DLAN daughter board when a DLAN network rather than DLAN network is used Step 3 Software Initialization of the DLAN Interface Module Bus Interface Section 3 describes the steps that must be performed by the VME CPU to initialize the VMEbus interface hardware in the DLAN Interface module What You Will Need Before you can begin the installation procedure you must have the following equipment and software m A VMEbus based computer system that includes at least a VME rack power supply and CPU module m One or more VME DLAN Interface modules m An application development platform and tools for the VME CPU GFK 1044A 2 1 Section 1 Installing the DLAN Interface module Hardware Overview The first step in the installation procedure is to set the base address jumpers for VME short non privileged access mode Then the DLAN Interface module must be installed in a VME rack Each VME DLAN Interface module must reside in the same rack as the VME CPU The following illustration shows one possible system configuration for installing a DLAN Interface module in a VME rack VME RACK CONFIGURATION 247041 I f P C
9. accuracy completeness sufficiency or usefulness of the information contained herein No warranties of merchantability or fitness for purpose shall apply The following are trademarks of GE Fanuc Automation North America Inc Alarm Master GEnet Modelmaster Series One CIMPLICITY Genius ProLoop Series Six CIMPLICITY PowerTRAC Genius PowerTRAC PROMACRO Series Three CIMPLICITY 90 ADS Helpmate Series Five VuMaster CIMSTAR Logicmaster Series 90 Workmaster Field Control C Copyright 1994 1995 GE Fanuc Automation North America Inc All Rights Reserved Preface The VME DLAN DLAN Interface Module from GE Fanuc Automation North America Inc is a high performance interface between the GE Drive Systems DLAN and DLANc local area network LAN protocols and VMEbus based computer systems Revisions to This Manual This version GFK 1044A of the VME DLAN DLAN Interface Module User s Manual has changes to two chapters In Chapter 1 Figure 1 1 has been revised to show the DLAN configuration jumpers Section 2 of Chapter 2 now describes DLAN jumper configuration Previously numbered Section 2 is now Section 3 Content of this Manual This manual contains the following chapters Chapter 1 Introduction describes the features of the VME DLAN Interface module The basic operation of DLAN applications is also introduced in this chapter Chapter 2 Installation and Initialization explains how to install and configure the VME
10. while connected to an optically isolated network and jumpers JP2 JP3 and JP4 are set to the 2 3 position the external isolated power supply for the isolated network will be damaged 2 6 VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A Selecting RS 485 Termination Resistors GFK 1044A If the RS 485 network is selected the drop at each end of the network cable should have the termination resistors IN This is true for all drop types both DLAN modules and drives Adding additional termination resistors will improve the signal to noise ratio of RS 485 networks but more than five sets of termination resistors will overload the drivers Accordingly no more than five drops on a network should have the termination resistors IN Table 2 2 shows the jumper settings for termination resistors At the factory these jumpers are set for termination resistors IN Table 2 3 Jumper Positions For RS 485 Network Termination Resistors J Termination Resistors umper JP5 JP6 If the optically isolated network is selected the termination resistors are not used and the JP5 and JP6 jumper settings are ignored Chapter 2 Installation and Initialization 2 7 Section 3 Initializing the VMEbus Interface Each VME DLAN module must be initialized by writing to its VMEbus memory from the VME CPU or other VME module before the DLAN module can be used This initialization must Occur each time a rack containing a DLAN module is p
11. 044A Table of Contents v Contents vi VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A Chapter 1 Section 1 Introduction This chapter provides a system overview of the VME DLAN DLAN Interface module and a description of the module s hardware items Section 1 describes the basics of the VME DLAN DLAN Interface module its functions and its application in a system System Overview The VME DLAN DLAN Interface Module catalog number IC697BEM764 from GE Fanuc Automation North America Inc is a high performance interface between the GE Drive Systems DLAN and DLAN local area network LAN protocols and standard VMEbus control systems It permits DC300 AC2000 and DC2000 drives to be controlled from application programs running in VME based computers In this manual the module will usually be referred to simply as the DLAN Interface module The reader should keep in mind that it supports both GE Drive Systems network protocols DLAN Basics GFK 1044A GE Drive systems devices communicate using one or both in some cases of two types of network protocol m DLAN a multidrop serial protocol sometimes referred to as DLAN or old DLAN m DLAN a high speed protocol based on Arcnet Information is shared on the network using data pages A page is a collection of 16 bit data words Each device or drop is allocated one or more pages Each page may contain up to 256 words and is partitioned into bloc
12. ALID STD ADDR hi adr unsigned char std base address gt gt 16L amp Ox00ff Initialize the setup data x memset setup data 0 VME DATA LEN setup data HI ADR OFFSET hi adr setup data AM OFFSET STD NP AM setup data MOD TYPE OFFSET 0x80 setup data DATA AVAIL OFFSET CONFIG DATA AVAILABLE Is the module ready to be configured All 64 bytes of the setup data area must be zero Since they are cleared starting at the low address check just the last byte Only short non privileged mode works at this time Status vme read read data 0 short base address SETUP OFFSET DATA AVAIL OFFSET 1 short am if status NO ERROR return status if read data 0 return VME ERROR Next the setup data is passed to vme_write along with the target module s address in VME short non privileged address space After a ten millisecond delay to give the target module time to complete its initialization vme setup attempts to verify that initialization was successful First vme_read is called to read the setup data back from the module in standard non privileged mode If either vme write or vme_read returned an error status that status is immediately returned to vme setup s caller However this outcome is currently not possible in a PCM implementation Ifa vme read operation in standard non privileged mode is attempted before the target module s VMEbus interface has been initialized
13. D Fi SIPL e Ul A N I f lo ol Figure 2 1 VME DLAN Interface Module Configuration The VME CPU modules usually must reside in a specific slot in the rack Depending on the specific hardware the power supply PS in figure 2 1 may be external to the rack built into the rack or installed in a specific slot DLAN Interface modules may be placed in any unused slot in the rack However there may be restrictions on empty slots between the CPU and other VME modules that use hardware interrupts Refer to the manufacturer s installation instructions for information on such restrictions The VME DLAN module does not use hardware interrupts Setting the Address Select Jumpers 2 2 Before a VME DLAN module is installed in a rack its address in VME short non privileged address space AM code 29 hexadecimal must be selected by setting four jumpers When you hold the module as shown in Figure 1 1 with the component side toward you and the LED indicators in the upper left corner the four address select jumpers are near the lower right corner They are the only jumpers on the module Figure 2 2 shows an enlarged view of the address select jumpers In the figure jumpers JP1 JP2 and JP4 are shown in the logic low L position and JP3 is shown in the logic high H position When the module is shipped from the factory all four jumpers are set to the logic low L position VME DLAN DLAN In
14. Ebus read and write operations However some execution environments will provide this information and functions implemented for them would be able to return VME ERROR when appropriate Appendix A Example C Program to Initialize a VME DLAN Interface Module A 3 A 4 The implementation shown below assumes a GE Fanuc Series 90 70 PCM int vme write unsigned short vme hi unsigned short vme lo void far src int len unsigned char am int i unsigned short far p unsigned short far q src FP SEG p VME WIN SEG FP OFF p vme lo Set vme ctl vme hi am for i len 2 i gt 0 i copy the data word by word p q if len 2 len is odd copy the last byte unsigned char far p unsigned char far q return NO ERROR The implementation shown below assumes a GE Fanuc Series 90 70 PCM x7 int vme read void far dest unsigned short vme hi unsigned short vme lo int len unsigned char am int i unsigned short far p unsigned short far q dest FP SEG p VME WIN SEG FP OFF p vme 1o Set vme ctl vme hi am for i len 2 i gt 0 i copy the data word by word q p if len 2 len is odd copy the last byte unsigned char far q unsigned char far p return NO ERROR The implementation of vme_setup is intended to be as portable as possible First the rack and slot parame
15. FANUC GE Fanuc Automation Programmable Control Products VME DLAN DLAN Interface Module User s Manual GFK 1044A August 1995 GFL 002 Warnings Cautions and Notes as Used in this Publication Warning 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 Fanuc Automation assumes no obligation of notice to holders of this document with respect to changes subsequently made GE Fanuc Automation makes no representation or warranty expressed implied or statutory with respect to and assumes no responsibility for the
16. RROR Success return SETUP CMPLT If both bytes contain the expected values vme status returns SETUP CMPLT otherwise it returns INIT ERROR when the byte at AM OFFSET has the expected value or VME ERROR if not Appendix A Example C Program to Initialize a VME DLAN Interface Module A 7 GFK 1044A A Acknowledgement reading the 2 9 Address select jumpers 1 4 Addressing target VME DLAN module 2 9 Appendix A Example C program to initialize a VME DLAN interface module A 1 Applications VME DLAN description of 1 2 hardware requirements 1 2 B Battery not used 1 5 BEM764 initialization 2 8 from a C program A 1 module acknowledgment 2 9 C COMMAND OUT LED 1 4 Configuring DLAN jumpers 2 5 Configuring the VME DLAN module with Logicmaster 90 software 2 8 Connectors serial not used 1 5 D DATA IN LED 1 4 DLAN Configuration Jumpers 1 5 DLAN jumper configuration 2 5 DLAN module configuration jumpers 1 5 DLAN network connector 1 5 DLAN network type selecting 2 6 DLAN operation 1 1 DLAN DLAN interface module address select jumpers 1 4 DLAN configuration jumpers 2 5 DLAN network connector 1 5 LED indicators 1 3 COMMAND OUT 1 4 DATA IN 1 4 MODULE OK 1 4 restart pushbutton 1 4 Index watchdog timer 1 4 E Example C program to initialize a BEM764 A 1 F Functional overview DLAN operation 1 1 H Hardware address select jum
17. adecimal should contain these characters BEM7 6 4 Note that the even bytes contain ASCII space characters Power Up Diagnostics Result The DLAN Module self test routines that run when the module is powered on copy a NUL ter minated string of ASCII characters to VME dual ported RAM starting at offset OB2 hexadeci mal 178 decimal The string is copied to contiguous both odd and even bytes The normal string value is Diag Req 111 Completed 1 any other string indicates that an error oc curred during the tests The nature of the error can be determined from the string For exam ple Error Message String Failure ROM CRC is xxxx not yyyy Checksum failure of EPROM at board location U60 Acc chksum is xxxx not yyyy Checksum failure of EPROM at board location U59 RAM failure at xxxx yyyy RAM test failure 2 10 VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A Appendix Example C Program to Initialize a VME A DLAN Interface Module This example program shows how to initialize a VME DLAN module from application code written in C See Initializing the VMEbus Interface in chapter 2 of this manual for a discussion of initialization requirements and for suggestions Three source files constitute the example First a header file DLANINIT H specifies constant definitions and function prototypes Function vme setup performs the required initialization for the DLAN module and vme status monitor
18. arameters To change the defaults specify both addresses as shown in one of the comments in the listing of DLANTEST C GFK 1044A A 1 The main function in DLANTEST C is quite simple First it tests the count of command line arguments If there are enough arguments to hold the short and standard address values the second and third argument strings are converted to unsigned integers and the resulting values replace the default addresses Then main prints the address values to the standard output device and calls vme_ setup to do the actual initialization of the target module Finally a non terminating loop initializes the target module and then monitors its status dlantest c Program for testing vme_setup in a VME DLAN module include lt vtos h gt include lt stdio h gt include lt stdlib h gt include dlaninit h Default values that may be replaced by command line arguments define SHORT START ADDR 0x1800 define STD START ADDR 0x00020000L Run from the PCM command interpreter prompt like this gt R DLANTEST EXE 1800 20000 where the two numeric arguments are the short non privileged and standart non privileged start addresses respectively where a target VME DLAN module will be accessed void main int argc char far far argv int status last status SETUP CMPLT unsigned short short start addr SHORT START ADDR unsigned long std start addr STD START ADDR if arge gt 2
19. ard non privileged address space must be set at a 64K byte boundary Conse quently bits 0 through 15 inclusive of the start address specified in the module s initialization data must be zero The DLAN module VME memory may be located on any 64K byte boundary in the 16 megabyte VME A24 address space Accordingly the value assigned to start address bits 16 23 in byte offset five of the setup data may be any value in the range O through OFF hexadecimal 0 through 255 decimal VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A The Initialization Process GFK 1044A Initialization must always be performed by a VME bus master module Addressing the Target VME DLAN Module Once values have been assigned to the initialization data it may be written to VME dual ported memory in the DLAN module The VMEbus interface of DLAN modules always responds to read and write requests in VME short non privileged mode but only the first 2K 800 hexadeci mal bytes of dual ported memory may be accessed in this mode Accordingly the principal use of short non privileged mode with VME DLAN modules is to detect their presence and write initialization data to them Writing Initialization Data The initialization data must be written to a 64 byte block of VME dual ported memory in the target module starting at offset 40 hexadecimal 64 decimal from the starting address shown in table 2 1 and using the address modifier code 29 hexad
20. e define CONFIG DATA AVAILABLE value written by the VME CPU to notify the DLAN module that config data is valid define CONFIG COMPLETE value written by the DLAN module to acknowledge it read and processed the config data Offset values into the 64 byte configuration data array where significant data values are expected define HI ADR OFFSET 5 define AM OFFSET 9 define MOD TYPE OFFSET 40 define DATA AVAIL OFFSET 63 Other constants define VME DATA LEN 64 size of setup data array in bytes define SETUP OFFSET 0x0040 offset into VME memory for start of configuration data array define SHORT NP AM 0x29 VME address modifier for short non privileged access define STD NP AM 0x39 VME address modifier for standard non privileged access Two functions vne write and vme read provide access to VME dual port memory in the target DLAN module from the module where the program executes The implementations of these functions for a given execution environment will depend on the hardware that environment provides for VMEbus access In DLANINIT C implementations for a Series 90 70 PCM are shown See Set vme ctl1inthe PCM C Function Library Reference Manual GFK 0772 for a complete discussion of VMEbus access from a Series 90 70 PCM The return types of vme write and vme read are declared int and both return NO ERROR when successful Actually PCM code is currently unable to detect failures of VM
21. e 39 hexadecimal and the module start address obtained by multiplying the byte value that was written to byte offset 5 of setup data by 64K 10000 hexadecimal The expected value is OFF hexadecimal 255 decimal The interval between the time when setup data is written and the time when the status value indicates success will usually be a few hundred microseconds If the standard non privileged Chapter 2 Installation and Initialization 2 9 read operation continues to fail after one second or some other value is obtained you should assume the entire initialization process has failed Status Data Available from a DLAN Module Three locations in VME dual ported RAM contain one byte status codes The locations and values of these codes are shown in Table 2 3 Locations for additional status data are also shown in the table These items are explained in the following sections Table 2 5 DLAN Module Status Codes in VME Dual Ported RAM Byte Offset Type Values and Description 11 byte character Module ID string See Module ID String below array 39 Byte Module error code Hexadecimal 0 No error 0C The daughter board type is incorrect Byte Daughter board ID code Hexadecimal 40 No daughter board 5B DLAN communication daughter board NUL terminated Power up diagnostics result See Power Up Diagnostics Result ASCII string below Module ID String The eleven bytes of VME dual ported memory starting at offset 13 hex
22. e the DLAN Interface module is installed Connect the ground wire from the connection block securely to one of the ground screws on the VME rack Connect the cable from the connection block to the DLAN Interface module by mating its connector with the DLAN NETWORK CONNECTOR shown in Figure 1 1 Finally connect the network cable or cables to the connection block If the DLAN Interface module is at one end of the network cable the appropriate network terminator must be connected at the connection block 8 Power on the VME rack The MODULE OK LED of the DLAN Interface module should immediately begin to flash rapidly When diagnostics tests have completed the LED will flash at a slower rate until setup data has been written to its VMEbus interface Refer to the next section for information on the required setup 2 4 VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A Section 2 DLAN Jumper Configuration DLAN Configuration Jumpers When a DLAN network rather than DLAN network is used jumpers on the DLAN daughter board must be used to configure the network connection This section describes how to set the jumpers If you are using a DLAN network skip this section Figure 2 3 is an enlarged view of the DLAN configuration jumpers shown in Figure 1 1 Jumper JP6 is nearest the DLAN network connector The positions of these jumpers configure the DLAN module connections to a DLAN network 247078 JP6 D gi JP5 JP4
23. ecimal and 8 bit D8 data access The data must be copied sequentially starting at its low order address so that the flag at byte offset 3F hexadecimal 63 decimal of the data that is offset 7F hexadecimal or 127 decimal from the start of VME dual ported memory arrives last This byte signals the DLAN module that the setup data it has been waiting for is now available With some VME CPU modules failure to use 8 bit D8 data transfers when writing initialization data to the DLAN module will cause the byte order of the data in the DLAN module to be reversed When this condition occurs module initialization always fails and the Module OK LED continues to flash indefinitely If the data is written too soon after the DLAN module is powered on the new values will ap pear to be VME memory test errors and will prevent the module from operating The initializ ing application must wait until the target module is ready before writing setup data When the module is ready a zero value will appear in the byte at offset 7F hexadecimal 127 decimal from the start of VME dual ported memory The byte must be read in short non privileged mode Reading the DLAN Module s Acknowledgment The success or failure of the initialization process may be determined by reading the byte at offset 7F hexadecimal 127 decimal from the start of VME dual ported memory in the DLAN module The byte should be read using standard non privileged mode Address Modifier cod
24. for communication to restart automatically VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A DLAN Network Connector This eight pin connector provides a means of connecting the DLAN Interface module to the DLAN or DLAN network A connector on the cable from the DLAN network connection block mates to the connector on the module DLAN Configuration Jumpers These jumpers are used to configure the network connection when the Network Type is specified as DLAN JP2 through JP4 are used to select either the optically isolated LAN network or an RS 485 LAN network If the RS 485 LAN network is selected JP5 and JP6 are used to select whether the RS 485 network termination resistors are IN or OUT Battery The DLAN Interface module does not use a battery Serial Connectors The two DB 25S serial connectors on the DLAN Interface module are not used GFK 1044A Chapter 1 Introduction 1 5 Chapter Installation and Initialization Z This chapter explains how to install a DLAN Interface module in a VME system and the software initialization that must occur before the module can operate There are several easy steps in preparing the DLAN Interface module for use The chapter is divided into three sections The necessary equipment and software packages required for the installation process are described below After that each section describes one step of the installation procedure in detail Step 1 Installing the DLAN
25. ks of 16 words each DLAN supports 32 pages per network and DLAN supports 255 pages per network The information within a page its data structure depends on the device and is often referred to as a dialect Devices with multiple pages may use a different dialect for each page Each device is responsible for periodically detecting changes in its page s of information and then broadcasting any changes on the network This is the mechanism used by controllers such as the DLAN Interface module to maintain an up to date copy of the data in other network devices Controllers issue commands to other devices on the network by sending messages Command messages may be directed to a specific target device or broadcast and may contain one new data item for the device s data page s 1 1 VME DLAN Interface Module Functions The VME DLAN Interface module can operate as either a DLAN or DLAN controller However a single module can not be both a DLAN and DLAN controller at the same time If the application requires both DLAN and DLAN devices two DLAN Interface modules must be used The module passes page data and commands between network devices and a CPU application program The knowledge about what the network devices are intended to do is contained in the CPU program VME DLAN Applications Hardware Requirements The minimum hardware configuration for VME DLAN or DLAN application requires these components 1 A VME based computer
26. last byte should be the same If one is different try again for i 0 status NO ERROR amp amp i lt VME DATA LEN 1 i if read data i setup datalil status VME ERROR If good data was read back check the last byte for the correct value if status NO ERROR if read_data VME DATA LEN 1 CONFIG COMPLETE status CONFIG COMPLETE else status INIT ERROR if status CONFIG COMPLETE status SETUP CMPLT return status The implementation of vme_status is also intended to be as portable as possible First vme_ status checks for out of bounds rack and slot values Next one byte of the standard non privileged start address appropriate for the target module s rack slot location is calculated This is the byte containing bits 16 through 23 the only non zero bits of the start address Two bytes of setup data are read from the target module using standard non privileged mode and then checked for their expected values The byte at DATA_AVAIL_OFFSET is expected to contain CONFIG COMPLETE However that value is defined as 1 or OFF hexadecimal the value when all eight bits are set The same value is obtained in some cases when the target module has not been initialized or does not exist Consequently another value is also read The byte at AM OFFSET is expected to contain STD NP AM which contains four zero bits and four one bits It is a more reliable stat
27. owered on The DLAN module is not permitted to execute until after initialization has occurred The mod ule will wait indefinitely for its initialization data During this time the Module OK LED the topmost LED continues to flash on and off After initialization the LED remains on continu ously The initialization may be performed by any VME module that has short non privileged write access to VME dual ported memory in the DLAN module However initialization is usually performed by the VME CPU For example initialization code see appendix A Example C Program to Initialize a VME DLAN Module Required Initialization Data 2 8 VME DLAN initialization data consists of 64 contiguous bytes Most of these bytes contain zero Byte locations where non zero data is required are shown in table 2 2 All bytes in the range 0 through 63 inclusive that are not specified in table 2 2 must be set to zero Table 2 4 Required Setup Data Zero Based Required Value Byte Offset Description or Range Hexadecimal Hexadecimal 5 Bits 16 through 23 of the target module s start address in VME 24 bit standard non privileged address space 28 3F de 1 Standard non privileged address modifier code Flag indicating the CPU has identified the target module as a VME DLAN module FS Flag indicating valid setup data is available VME dual ported memory in the VME DLAN module is 64K bytes wide Its starting address in VME stand
28. pers 1 4 COMMAND OUT LED 1 4 DATA IN LED 1 4 DLAN configuration jumpers 1 5 DLAN network connector 1 5 installing a VME DLAN module 2 3 installing the VME DLAN hardware 2 2 LED indicators 1 3 MODULE OK LED 1 4 restart pushbutton 1 4 VME DLAN DLAN interface module description 1 3 watchdog timer 1 4 what you will need 2 1 ID string module 2 10 Initialization 2 8 from a C program A 1 module acknowledgment 2 9 process described 2 9 required data 2 8 Initialization and installation 2 1 Initialization data required 2 8 Initialization data writing 2 9 Installation and initialization 2 1 Installing the VME DLAN module configuring the VME DLAN module with Logicmaster 90 software 2 8 module location in rack 2 2 procedures 2 3 setting address select jumpers 2 2 setting DLAN configuration jumpers 2 5 Index 1 Index Index 2 VME DLAN hardware 2 2 what you will need 2 1 Installing the VME module 2 1 J Jumper configuration DLAN 2 5 Jumpers address select 1 4 Jumpers DLAN configuration 1 5 L LED indicators 1 3 on Series 90 70 PCM 1 3 Logicmaster 90 software 2 8 Module access short non privileged mode 2 9 Module description address select jumpers 1 4 COMMAND OUT LED 1 4 DATA IN LED 1 4 DLAN configuration jumpers 1 5 DLAN network connector 1 5 LED indicators 1 3 MODULE OK LED 1 4 restart pushbutton 1 4 watchdog timer 1 4 Module ID string
29. s the initialization status of a specified DLAN module dlaninit h Constants and function prototypes for initializing a VME DLAN module GE Fanuc catalog no IC697BEM764 ifndef DLANINIT H define DLANINIT H Return values for vme setup SETUP CMPLT 0 The initialization succeeded define INVALID SHORT ADDR 1 specified short non privileged start address is invalid define INVALID STD ADDR 2 specified standard non privileged start address is invalid define VME_ERROR 3 Setup data write was not verified define INIT ERROR 4 Target module did not acknowledge This function initializes a VME DLAN module at specified short and standard non privileged base addresses int vme_setup unsigned short short base address unsigned long std base address This function checks the status of a VME DLAN module at specified standard non privileged base address int vme status unsigned long std base address endif A test program DLANTEST C is designed to be as portable as possible This program was tested in a standard Series 90 70 PCM711 module The module was installed in the main CPU rack of a Series 90 70 PLC that was substituted for the standard VME rack of figure 1 1 for test purposes Default short non privileged and standard non privileged base address values are specified as macro definitions but the defaults may be changed from command line p
30. system that includes at least a rack power supply and CPU module to run the application program 2 Oneor more VME DLAN Interface modules installed in another slot or slots 3 A DLAN or DLAN network connected to each DLAN Interface module 4 One or more GE Drive Systems devices connected to each network Typically additional VME modules will also be required to monitor and control the application However the discussion in this manual is limited to the DLAN Interface module and the associated CPU program 1 2 VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A Section 2 DLAN Interface Module Description This section describes hardware items of interest to the user that are on the DLAN Interface module These items are three LED status indicators a restart pushbutton a DLAN interface connector and address select jumpers LED Indicators The three LED indicators shown in the following figures are mounted along the top front edge of the DLAN Interface module a47040 DOOR MODULE OK Q x 1 q COMMAND OUT is m d As q
31. ter are checked for out of bounds values The minimum and maximum acceptable values are defined in DLANINIT H Next vme_ setup calculates the standard access mode starting address and short non privileged address modifier code assigned to the rack slot location of the target module based on the Series 90 70 conventions These conventions are detailed in the Series 90 70 Programmable Controller User s Guide to Integration of 3rd Party VME Modules GFK 0488 The rules for calculating start address and address modifier values appear immediately ahead of the code that initializes the setup_data array Note that the least significant 16 bits of every module s standard mode starting address must be zero Only the byte containing bits 16 through 23 is calculated After setup data is initialized the last byte of the setup data area in the module s VME dual ported memory is read using short non privileged mode The value in this byte must be zero before the module may be initialized VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A GFK 1044A The implementation shown below should be portable except as noted int vme setup unsigned short short base address unsigned long std base address int i status unsigned char setup data VME DATA LEN read data VME DATA LEN unsigned char hi adr short am Range check the VME std non priv base address if std base address amp OxffOOffffL return INV
32. terface Module User s Manual August 1995 GFK 1044A GFK 1044A 247042 Figure 2 2 Address Selection Jumpers There are 16 possible ways to set the four jumpers and each one provides a unique range of short non privileged addresses for the module Table 2 1 shows the address range for each setting Table 2 1 Jumper Settings for Short Non Privileged Address Range Short Non Privileged JP4 JP3 JP2 JP1 Address Range Hexadecimal PEt it t ew Chapter 2 Installation and Initialization 2 3 Installing a VME DLAN Interface Module To install VME DLAN Interface module follow these steps Power off the VME system 2 Locate the desired slot 3 Remove the VME DLAN Interface module from the shipping carton but leave it in its anti static plastic bag Touch an exposed metal surface of the VME rack to discharge any electrostatic charge you may have picked up Then remove the DLAN Interface module from the protective bag 4 Setthe address select jumpers on the VME DLAN module as described previously 5 Slide the DLAN Interface module completely into the slot The three LEDs are located at the top of the module 6 Press the module firmly against the front rails of the PLC rack but do not use excessive force When the module is fully seated you will hear and or feel clicks from the latches on the top and bottom of the module faceplate 7 Mount the DLAN DLAN network connection block to the VME rack wher
33. the CPU Note The DLAN Interface module has a hardware watchdog timer that is periodically reset by the module software If the watchdog timer expires the module stops functioning and the MODULE OK LED turns off COMMAND OUT LED The center LED indicator referred to as COMMAND OUT on the module door label has two functions It flashes on briefly during the self test that occurs when the VME rack is powered on or the module Restart pushbutton is pressed During normal operation it flashes whenever a command from the CPU application program is sent to a network drop DATA IN LED The lower LED indicator referred to as DATA IN on the module door label flashes whenever a page data update message is received from one of the network drops Most frequently these messages contain feedback data If none of the drops broadcasts an update message this LED will flash every two seconds as long as any active drops are connected to the network Address Select Jumpers The address select jumpers JP1 through JP4 are used to select the VME base address that the VME DLAN module will respond to in VME short non privileged mode See chapter 2 section 1 of this manual for details Restart Pushbutton 1 4 Pressing the Restart pushbutton for any length of time will halt DLAN communication and cause the module to perform its internal tests The CPU application program must detect this condition and send new DLAN configuration data in order
34. us indicator VME DLAN DLAN Interface Module User s Manual August 1995 GFK 1044A GFK 1044A The implementation shown below should also be portable except as noted int vme_status unsigned short rack unsigned short slot int status unsigned char read data unsigned char hi adr Range check the rack and slot parameters if rack lt MIN_RACK rack gt MAX RACK return INVALID RACK if slot lt 2 slot gt MAX SLOT return INVALID SLOT H This is Series 90 70 convention for the standard mode base address based on the module s rack slot location Modify it as appropriate for other systems if rack 0 hi_adr 2 slot 2 eise hi adr OxFO 0x10 rack 2 slot 2 j Read the address modifier byte of setup data It has some zero bits and some non zero bits so values with all bits zero or one the likely cases before standard non privileged mode is enabled are invalid Status vme read amp read data hi adr SETUP OFFSET AM OFFSET 1 STD NP AM if status NO ERROR return status if read data STD NP AM return VME ERROR H Read the last byte of setup data Status vme read amp read data hi adr SETUP OFFSET DATA AVAIL OFFSET 1 STD NP AM if status NO ERROR return status Check the last byte for the correct value if read data CONFIG COMPLETE return INIT E
Download Pdf Manuals
Related Search
Related Contents
4ベイ外付け HDDアレイ RAIDタワー –eSATA USB 3.0 Mission parlementaire sur - La Documentation française Product Data Sheet - NanoString Technologies GPSレーダー探知機 取扱説明書 CJ-V73CL/CJ-V73CW 取扱説明書 Epson WF-7110 Start Here Guide Sound Performance Lab 2383 Stereo Amplifier User Manual Cat. No. 42.4001 MODE D`EMPLOI altimètre Copyright © All rights reserved.
Failed to retrieve file