Home

Description - ELVAC a.s.

image

Contents

1. outportb wBase 0xc0 LSB Send the Low byte to SAO outporto wBase 0xc4 MSB Send the High byte to SAO outportb wBase 0xf8 LSB Send the Low byte to SA7 outportb wBase O0xfc MSB Send the High byte to SA7 A convenient addressing calculation for SAn is offset LSB wBase OxcO n 8 and offset MSB offset_LSB 4 where n lt 7 Using SA7 as an example offset LSB wBase Oxc0 7 8 or wBase 0xf8 and offset MSB wBase Oxfc Note 1 data inportb wBase 0xc0 Receive the Low byte from RA8 data inportb wBase 0xc4 Receive the High byte from RA8 data inportb wBase O0xf8 Receive the Low byte from RA15 data inportb wBase Oxfc Receive the High byte from RA15 A convenient addressing calculation for RAn is offset LSB wBase OxcO n 8 8 and offset MSB offset_LSB 4 where n gt 8 Using RA15 as an example offset LSB wBase 0xcO 15 8 8 or wBase 0xf8 and offset MSB wBase Oxfc Note 1 Before receiving the RAO low byte data wBase 0xc0 users must disable the node status Bit 1 Bit 3 of wBase 3 address If users enable the node status they will get a node 8 15 status instead of the RA8 low byte data via reading the wBase 0xcO address FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 31 TC MSC BC TC LIB TC DEMO TC DIAG TC LIB PIO H TC LIB TCPIO_L LIB TC LIB TCPIO_H LIB MSC LIB PIO H MSC LIB MSCPIO_L LIB MSC LIB MSCPIO_H
2. 128 16X8 digital input channels with a total scan time of 2 88ms for 250kbps or 0 72ms for 1Mbps UO data transmission is controlled by the hardware mechanism of the FRnet control chip which was developed by ICPDAS It was designed to provide for the deterministic high speed communication in a network This communication mechanism is dominated by the token stream which is generated by the network manager SAO This is located in the FRnet and provides for fixed scan time and I O synchronization capability without the need of any special communication protocol Furthermore special anti noise circuitry has also been considered and built into the FRnet control chip to ensure communication reliability However the effectiveness of the FRnet connection depends on and is then ensured when the correct hardware configurations for the sender address SA FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 4 and receiver address RA on the host controller and the remote module in the network have been installed properly In general the operating principle is structured by the strategy of delivering the 16 bit data from the specified sender address SAn to the corresponding receiver address RAn via the broadcasting method controlled by the token stream of the network manger SAO Based on this algorithm there are some general rules that need to be followed 1 The sender address needs to be unique in order to avoid any communic
3. FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 7 1 2 Specifications Table 1 1 Characteristics of the FRB 100 200 FRB 200 100 FRB 200H 100H Transfer speed 250Kbps 1Mbps Scan time 2 88ms 0 72ms Max transfer length 400 m 100m Table 1 2 I O Address of FRB 100 200 series FRB 200 200H FRB 100 100H UO Address for Port SA 0 7 RA 8 15 SA 0 7 RA 8 15 0 UO Address for Port SA 0 7 RA 8 15 Not Available 1 Note SA Sender Address of a node RA Receiver Address of a node General specifications Operation temperature 0 C 55 C Storage temperature 20 C 65 C Humidity 35 8596 Dimensions 120mm x 90mm Power consumption 5V 250mA 1 3 Ordering information FRB 200 250Kbps 2 Ports SA 0 7 RA 8 15 FRB 100 250Kbps 1 Port SA 0 7 RA 8 15 FRB 200H 1Mbps 2 Ports SA 0 7 RA 8 15 FRB 100H 1Mbps 1 Port SA 0 7 RA 8 15 Note H is an optional high speed version of FRB series products If user need high speed version please make contact with manufacturer 1 3 1 Options FR 2057 series 16 channel Isolated Digital Output Distributed UO Module FR 2053 series 16 channel Isolated Digital Input Distributed I O Module DN 20 1m Terminal board with two 20 pin flat cables CA2010 FR 8R 16R 32R 8 16 32 channel relay output terminal board FR 8P 16P 32P 8 16 32 channel photo isolated input terminal board FR 8
4. Please set all the Aux states to DO FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 29 A 1 3 Port Select Register Read Write wBase 3 1 1 ve NSO Port0 0 gt Select FRB 100 200 Port 0 Port0 1 gt Deselect FRB 100 200 Port 0 outportb wBase 0x03 0xfe X Select Port 0 disable node status outportb wBase 0xcO LSB Send the Low byte to SAO data inportb wBase 0xc0 Receive the Low byte from RA8 Port1 0 gt Select FRB 100 200 Port 1 Porti 1 gt Deselect FRB 100 200 Port 1 outportb wBase 0x03 0xfb Select Port 1 disable node status outporto wBase 0xc0 LSB Send the Low byte to SAO data inportb wBase 0xc0 Receive the Low byte from RA8 NS0z0 gt Enable Por node status NS0 1 gt Disable Por node status outportb wBase 0x03 0xfd Enable Port node status bStatus inportb wBase 0xcO Receive node 8 15 status of Port NS1 0 gt Enable Port1 node status NS1 1 gt Disable Port node status outportb wBase 0x03 0xf7 Enable Port1 node status bStatus inportb wBase 0xcO0 Receive node 8 15 status of Port Node n 0 Communication of Remote SAn to FRB 100 200 RAn is not active Node n 1 Communication of Remote SAn to FRB 100 200 RAn is active note n 8 15 FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 30 A 1 4 I O Data Register Read Write wBase 0xc0 c4 c8 cc d0 d4 d8 dc e0 e4 e8 ec fO fA f8 fc D7 De DS D4 D3 o Di
5. 0 4 wire inter module cable including a 2 wire power supply cable DH W FR 2053 FR 2053 FR 2057 FR 2053 FR 2057 SA8 SA9 RAO SA10 RAI 4 wire inter module cable including a 2 wire power supply cable FRnet 1 Cn Wa Am 7 ra me i Lc RR WW FR 2053 FR 2053 FR 2057 FR 2053 FR 2057 SA8 SA9 RAO SA10 RAI Figure 4 1 Note 1 Refer to the FRnet distributed I O module manual for details regarding the settings of the DSW dipswitch 2 The high speed FRB cards can only work together with high speed remote modules Similarly normal speed FRB cards can only work with normal speed remote modules 3 The cabling method is similar to that used with the RS 485 networks For long distance usage a shielded twisted pair cable is required FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 16 S a FRB 200 FR 2057 RAO WI FR 2040 FR 2041 SA8 i Note FRnet 0 EN FR 2053 FR 2057 SA11 RAI FRnet 1 C h MA2I G A MA22 m SA10 RA10 4 EA 1 L M LLLI HE Dod Ld PLC PLC DO module DI module Figure 4 2 1 The MagicWire series enables PLCs to talk to each other via DIO ports 2 MA11 12 21 22 supports A and Q type PLCs for Mitsubishi FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 17 5 Software Installation The FRB 100 200 can be used in DOS and Windows 98 Me N
6. ID Ox5F80 e Sub device ID lt 0x01 e Sub aux ID 0x00 The utility program PIO PISO EXE will detect and present all information from the PIO PISO FRB caras installed in this PC as shown in following figure Fer 2 32 Aug 24 2004 one of the following cards w the detail information 0x00 DOxEDD FRB 200 4100 m ek Vendor ID Sub Vendor Device ID Sub Device Sub Aux Slot Bus Slot Device e ase Addr IRQ Number Figure 3 1 FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 13 3 2 Assignment of UO Addresses The Plug amp Play BIOS will assign proper I O addresses to each FRB series card during the power up stage If there is only one FRB board the user can identify the board as card O If there are two FRB boards in the system the user will find it very difficult to identify which board is card 0 The software driver can support a maximum of 16 boards Therefore the user can install 16 FRB series cards onto one PC system The methods used to find and identify card 0 and card 1 is demonstrated below The simplest way to identify which card is card 0 is to use wSlotBus amp wSlotDevice in the following manner 1 Remove all FRB 200 100 boards from the PC 2 Install one FRB 200 100 board into the PC s PCI slot run PIO PISO EXE Then record the wSlotBus1 and wSlotDevice1 information 3 Remove all FRB 200 100 boards from the PC 4 Install one FRB 200 100 into the
7. LIB BC LIB PIO H BC LIB BCPIO_L LIB BC LIB BCPIO_H LIB A 2 Where the related software is The related DOS software and demos in the CD are given as follows gt for Turbo C 2 xx or above gt for MSC 5 xx or above gt for BC 3 xx or above gt for TC library gt for TC demo program gt for TC diagnostic program gt TC declaration file gt TC large model library file gt TC huge model library file gt MSC declaration file gt MSC large model library file gt MSC huge model library file gt BC declaration file gt BC large model library file gt BC huge model library file The list of demo programs DEMO1 Digital Output function of FRB 200 DEMO 2 Digital Input Output function of FRB 200 100 DEMO3 Check node status of FRB 200 100 RA8 to 15 FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 32 A 3 DOS LIB Function A 3 1 Table of ErrorCode and ErrorString Table A 2 ErrorCode and ErrorString Error Code Error ID Error String 0 NoError OK No Error 1 DriverHandleError Device driver opened error 2 DriverCallError Got the error while calling the driver functions 3 FindBoardError Can t find the board on the system 4 TimeOut Timeout Invalid board number 5 ExceedBoardNumber l Valid range 0 to TotalBoards 1 6 NotFoundBoard Can t detect the board on the system The following functions are provided 1 PIO Driverlnit amp wBoard wSubVendor wSubDe
8. PC s PCI slot2 and run PIO PISO EXE Then record the wSlotBus2 and wSlotDevice2 information 5 Repeat steps 3 amp 4 for every PCI slot and record all the information from wSlotBus and wSlotDevice The records may look similar to the table below Table 3 1 wSlotBus and wSlotDevice records PCI slot wSlotBus wSlotDevice siti ffm So2 fo sos fo sos ff e PCI BRIDGE Sot7 fog 0x07 FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 14 The above procedure will record all the wSlotBus and wSlotDevice information on a PC These values will be mapped to this PC s physical slots The mapping will not be changed for any FRB card Therefore this information can be used to identify the specified FRB card by following these next 3 steps Step1 Using the wSlotBus and wSlotDevice information in table 3 1 Step2 Input the board number into funtion GetConfigAddressSpace to get the specified card s information especially the wSlotBus and wSlotDevice information Step3 The user can identify a specified FRB card by comparing it to the data from the wSlotBus amp wSlotDevice found in step1 and step2 Note that normally the card installed nearest to the CPU is cardO for FRB series cards FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 15 4 FRnet Application Structure FRB 100 200 PORT 0 SA 0 7 RA 8 15 PORT 1 SA 0 7 RA 8 15 PORT 1 is only for FRB 200 FRnet
9. in the transmission line JP3 is used for FRnet Pott and JP4 is used for FRnet Porti In general the FRB 100 200 card is the first device on the network therefore the terminating resistors are always ON JP3 1 2 3 ON default JP4 1 2 3 ON default JP3 1 2 3 OFF JP4 1 2 3 OFF 2 2 2 SW1 SW2 CLK Node setting Switch1 and switch2 are designed for feature extension so do not change the default setting If users change the switch setting the FRnet may not keep working FRB 100 200 ON SS E SE E Se r 43 Default FRB 200 100 User s Manual Ver 1 1 FRB 100H 200H ON l 3 4 5 2 6 7 8 Default Oct 2004 fmh 001 01 11 2 3 Pin Assignment The FRB 200 card has two FRnet ports similar to RS 485 ports and the FRB 100 only has a single port The definitions of the pins on the connectors for the FRnet ports are shown in the following Table TBI N Table 2 1 TB1 5 pin header Description 1 Porto A N C Porti A FRB 200 onl Porti B FRB 200 only FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 12 3 I O Control Register 3 1 How to identify the I O Address The plug A play BIOS will assign the correct I O addresses to each FRB series card during the power up stage The fixed IDs for the FRB series cards are as follows e Vendor ID OxE159 e Device ID 0x0001 The Sub IDs of the FRB 200 100 series are as follows e Sub vendor
10. the host computer Host Nodes Remote Nodes Figure 1 2 FRnet structure FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 6 1 1 Features The Token stream is used to activate data transmission from the specified SA node to the corresponding RA nodes The Network Manager is defined as SAO Each of FRnet must have SAO because it issues the Token stream into the network The Token stream is produced cyclically by the hardware system SAO at the fixed time interval see Figure 1 1 Therefore the FRnet system can provide both the isochronous and deterministic functionalities It can provide data transmission from one node 16 bit to a multi node at the same time because FRnet uses the principle of delivering the data from the sender address to the receiver address This means the sender address must be unique but the receiver address can be different or the same in the network The FRnet system can be easily extended by adding new modules to the network according to the FRnet principle Device Inter communication A single device can talk to other devices by setting appropriate SA and RA node configurations Adopt Memory mapping technology to control I O nodes No software overhead all data transmissions are performed automatically via the FRnet control chips Therefore there is no need for the CPU or firmware to process transmission protocols It only needs simple RS 485 wiring OS operation system independent
11. 00 User Manual Ver 1 0 AUG 2004 18 6 DLL Function Description The DLL driver is the collection of function calls on the FRB 100 200 card for the Windows 98 Me NT 2000 XP system The application structure is presented in the following figure The user application program was developed by designated tools such as VB Delphi VC and Borland C Builder which can call on the FRB DLL driver in the user mode Following that the DLL driver will call up FRB sys to access the hardware system Function Call into DLLs Development Toolkit Services Call into Kernel Mode Device Control Figure 6 1 6 1 Table of ErrorCodes and ErrorStrings Table 6 1 ErrorCodes and ErrorStrings Error Code Error ID Error String 0 FRB NoError OK No error 1 FRB _DriverOpenError Device driver cannot be opened Users have to call the Driverlnit 2 FRB _DriverNoOpen function first 3 FRB _GetDriverVersionError Get driver version error 4 FRB _FindBoardError Cannot find board Invalidate board number 3 ER EE Valid range 0 to TotalBoards 1 6 FRB InputParameterError Input parameter error FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 19 6 2 Function Descriptions All of the functions provided for the FRB 100 200 are listed below with more detailed information for every function presented in the following section However in order to make their descriptions simpler and clearer the attribut
12. 1 0 AUG 2004 26 7 1 DEMO1 SA and RA functions for FRB 200 100 Step 1 Connect the FR 2053 and the FR 2057 Refer to figure 7 1 Step 2 Set the FR 2053 address to SA8 and the FR 2057 address to RAO Step 3 Click the SAn Digital Output check box to send the 16 bit data from the host SAO FRB 100 200 to remote RAO FR 2057 Step 4 On the screen of Fig7 2 the RAn Digital Input status will display the 16 bit data sent from the remote SA8 FR 2053 to the host RA8 FRB 100 200 FR 2057 FR 2053 DC 24A External I O Power Figure 7 1 DIDO Demo TotalBoards VM ww vv Ww i ActiveB oard E S p B BDE Figure 7 2 FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 27 Appendix A A 1 The I O Address Map The I O address for the FRB series cards are automatically assigned by the main board s ROM BIOS The I O address can also be re assigned by the user It is strongly recommended that users do not change the I O address The Plug amp Play BIOS will effectively perform the assignment of proper I O addresses to each FRB series card The UO addresses for the FRB are given in the table below all of which are based on the base address of each card Table A 1 FRB 200 100 board addresses e 0 RESET control register Same wBas wBase 2 Aux control register Same wBase 3 Port select register Same wBase 0xc0 RA8 Low byte Node8 15 Status SAO Low byte wBase 0xc4 HAS High byte SAO H
13. 1 3 Port Select Regista us asocia as a eral Sis ON e qe duce uacua 30 A 1 4 TO Data Registr been EE 31 A 2 WHERE THE RELATED SOFTWARE IS cec hehehe tenete thin ere essen n 32 A3 DOS LIB FUNCT ON 2 tette reete clade Eu e reed lt rete eO 33 FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 3 1 Introduction FRnet is a two wire serial communication bus wired in a similar manner to an RS 485 FRnet device connection is achieved using a multi drop method Unlike most communication methods based on RS 485 this new method does not use the traditional question answer approach Instead it uses a fixed scan time to actively transmit data Since there is no need for a CPU to process a communication protocol FRnet can achieve high speed data transmission in an isochronous manner The FRB 200 200H 100 100H is an isolated FRnet communication card designed for use in the host computer with a PCI bus The FRB 100 100H card has one FRnet port whereas the FRB 200 200H card has two FRnet ports The H denotes high speed versions allowing users to select a suitable communication speed according to their application needs Each FRnet port has 8 sender nodes and 8 receiver nodes That is the node address setting is defined as SA0 SA7 and RA8 RA15 Each node contains 16 bit data which can be either a DI or DO type depending on what module you use Therefore it can contro up to a maximum of 128 16X8 digital output channels and
14. A 16A 32A 8 16 32 channel Open drain output terminal board FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 8 1 4 Product Check list In addition to this manual this package should include the following items e One FRB 200 100 card e One ICPDAS floppy diskette or CD e One copy of the release notes Before continuing please read the release notes first They contain the following important information The location of the software driver and utility How to install the software and utility The location of the diagnostic program FAQ s Top cS Attention If any of these items are missing or damaged contact the dealer from whom you purchased the product Save all shipping materials and the carton in case you need to ship or store the product in the future FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 9 2 Hardware configuration 2 1 Board Layout w S A Tl op G e pog uorjeorunululo jou 4 snd dd Tat 24 AHA L uo goz gni4 8L9ettcI BLOC PET C Kquo 00 Figure 2 1 FRB 100 200 Note TB1 FRnet communication connection Port 0 Port 1 JP3 Terminating resistors for Port 0 JP4 Terminating resistors for Port 1 FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 10 2 2 Jumper Setting 2 2 1 JP3 JP4 Terminating resistors selection Terminating resistors must be installed at each end of the FRnet to prevent reflections
15. Dutput Sub Aux ID wSlotBus Dutput Slot Bus number wSlotDevice Output Slot Device ID Return Please refer to Table A 2 ShowPIOPISO Description This function will show a text string for a special Sub ID This text string is the same as that defined in the PIO H Syntax WORD Show PIO PlSO wSubVendor wSubDevice wSubAux Parameter wSubVendor Input SubVendor ID of the board wSubDevice_ Input SubDevice ID of the board wSubAux Input SubAux ID of the board Return Please refer to Table A 2 FRB 100 200 User Manual Ver 1 1 Oct 2004 34
16. ENTIFY THE I O ADDRESS ee ee e ee 13 3 2 ASSIGNMENT OF I O Atptsgetsg 14 4 FRNET APPLICATION STRUCTURE s sss s sss ss essen nenen nenen eanne 16 5 SOFTWARE INSTALLATION sss scene nennen nnne enhn KENE ERKENNEN KEREN e saga nnns ana 18 5 SOFTWARE INSTALLING PROCEDURE sse 18 5 2 PNP DRIVER INSTALLATION 18 6 DLL FUNCTION DESCRIPTION sss ss sss sss eenn nena 19 6 1 TABLE OF ERRORCODES AND ERRORSTRINGS eene nnns 19 6 2 FUNCTION DESCRIPTIONS csscssscscccccccccssssscscccccceeesscssescesscseeesssssesceseceeeeeeeenss 20 6 3 DRIVER RELATIVE FUNCTIONS ssssesssseenssseenssscessssceossscerssceossseosssserossseersssee 21 6 3 1 ERB Dri rlnilz i ait EG 21 6 3 2 E EE 21 6 3 3 FRB Gefier T rerasane iiin ei TAEA AE ERATE 22 6 3 4 FRB GetDriverVersion PNI AE A AEA EE A AA AT 22 6 3 5 FRB DryriverClose uec teet e ees eer eoe Lev e veo e vea Tees 22 6 4 DO BUNCTIONS E 23 6 4 1 E WEE 23 6 4 2 ERB ReceweRA 4 e AG e cei e teet eet Ce tree deecevee iere veda 23 6 4 3 FRB ReadRAStaluss e eee eR ve S tuis 24 6 5 PROGRAM ARCHTTECTURE 25 FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 2 7 DEMO PROGRAMS FOR WINDOWS creen NEEN NEEN intr intr sane natns 26 7 1 DEMOL1 SA AND RA FUNCTIONS FOR FRB 200 100 eee 27 APPENDIX V Ee EEN EE TEE EEE EEN 28 Al TAE VO ADDRESS MAP os enee a tette ertet ecd 28 A 1 1 RESEIN RE 29 A 1 2 AUX Control Register E 29 A
17. FRB 200 100 User Manual Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assumes no liability for damages consequent to the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use not for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2004 by ICP DAS All rights are reserved Trademark The names used for identification only may be registered trademarks of their respective companies FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 1 Tables of Contents 1 INTRODUGTION BEE 4 1 1 EAR dert tees taii e e tete eae 7 1 2 SPECIFICATIONS Eeer Feet evo dee vede eue 8 1 3 ORDERING INFORMATION 8 1 3 1 EE ee En 8 1 4 PRODUCT CHEGCK EIST 5 eee be dt ec D eg 9 2 HARDWARE CONFIGURATION sss ss s s s e eee ERKENNEN ERKENNEN sara nasa saa a nsn nara 10 2 1 BOARD TA e ER EE 10 2 2 TTT TIN abono had Tema doa b elo oa mad 11 2 2 1 JP3 JP4 Terminating resistors selection eese 11 2 2 2 SWI SW2 EN 11 2 3 PIN ASSIGNMENT eessen OAE SEE E AEE 12 3 UO CONTROL REGISTER ss sss sees nenen ennenen nenen eanne 13 3 HOW TO ID
18. T 2000 XP For Windows O S the recommended installation steps are given in Sec 5 1 5 2 5 1 Software Installing Procedure Step 1 Insert the companion CD into the CD ROM driver and wait a few seconds until the installation program starts automatically If it does not start automatically for some reason then please double click the file 8000 NAPDOS AUTO32 EXE on the CD Step 2 Click the item Install Toolkits Software Manuals Step 3 Click the item FRnet Series Toolkits Step 4 Click the item FRnet PCI Cards Step 5 Click FRB 100 200 Step 6 Click install Toolkit for Windows 98 Or Me NT 2000 XP Then the InstallShield will start the driver installation process to copy the related material to the indicated directory and register the driver on your computer The driver target directory is as below for different systems Windows NT 2000 XP The FRB dll will be copied onto c winnt system32 The Napwnt sys and FRB sys will be copied into c winnt system32 drivers Windows 95 98 Me The FRB DLL and FRB Vxd will be copied onto c windows system 5 2 PnP Driver Installation After installing the hardware FRB 100 200 and you turn the power on for your PC Windows 98 Me 2000 XP will find a PCI card device and then ask the user to provide FRB inf to install the hardware driver onto the computer If the user has trouble in procedure through this process please refer to PnPinstall pdf for more information FRB 100 2
19. WORD FRB_SendSA WORD wPort WORD wSAn WORD woOutputData Parameter wPort Input Port number 0 Port 0 1 Port 1 wSAn Input SAO SA7 0 SAQ 72 SAT wOutputData Input 16 bits data send to remote RAn from FRB 100 200 SAn Return Please refer to Section 6 1 Error Code FRB_ ReceiveRA Description This subroutine will receive the 16 bits of data sent from remote SAn to the FRB 100 200 RAn Syntax WORD FRB ReceiveRA WORD wPort WORD wRAn WORD wlInputData Parameter wPort Input Port number 0 Port 0 1 Port 1 wRAn Input RAO RAT 0 RAQ 7 RAT wOutputData Output 16 bits data sent from remote SAn to FRB 100 200 RAn Return Please refer to Section 6 1 Error Code FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 23 6 4 8 FRB_ReadRAStatus Description This subroutine will find out what the communication status of the remote SAn to the FRB 100 200 RAn is where n 8 15 Before the RA8 15 receiving data sent from remote SAn the user can call this function to get the communication status of node 8 15 6 Syntax WORD ERD ReadRAStatus WORD wPort BYTE bRAStatus Parameter wPort Input Port number 0 Port 0 1 Port 1 bRAStatus Output Communication status of Remote SAn to FRB 100 200 RAn where n 8 15 bRAStatus Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Node n 0 Communication of Remote SAn to FRB 100 200 RAn is not active No
20. ation collisions 2 Each of FRnet needs one and only one network manger defined as SAO It plays the important role of producing the token stream in the network 3 The baud rates of the controller and the remote module need to be the same as on the FRnet 4 The communication method is controlled by delivering the data of the specified sender address SA to the corresponding receiver address in the sequence of token 0 to N 1 cyclically as depicted below 5 Due to the broadcasting algorithm adopted the receiver address is not required to be unique Therefore it is easy to build in data delivery from one node 16 bit data to a multi node Token 1 2 3 AN A Fixed Token nile E ER MN Be A Start Token 1 Token 4 Data Data Area Area Figure 1 1 Token stream controlled by network manger SAO FRB 200 100 User s Manual Ver 1 1 Oct 2004 fmh 001 01 5 Under the application of FRB 100 200 the SAO node will cyclically issue a token to activate the data transmission from SAn to RAn where n is 0 15 That means that the node SAn reads the data from the host memory and sends it to the RAn node which is on a remote module However the RAn node on the host will receive data coming from the SAn node on the remote module and then write it into the received data memory on the host Therefore user can easily control the network I O module through reading and writing the specified memory located on
21. de n 1 Communication of Remote SAn to FRB 100 200 RAn is active Return Please refer to Section 6 1 Error Code FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 24 6 5 Program Architecture FRB Driverlnit FRB_ActiveBoard FRB_ReceiveRA FRB_DriverClose Figure 6 2 FRB 100 200 User Manual Ver 1 0 AUG 2004 25 7 Demo Programs for Windows All demo programs will not work properly if the DLL driver has not been installed correctly During the DLL driver installation process the install shields will register the correct kernel driver to the operation system and copy the DLL driver and demo programs to the correct position based on the driver software package you have selected Win98 Me NT win2000 XP Once the driver installation is complete the related demo programs and development library and the declaration header files for the different development environments will be presented as follows Demo gt demo program BCB3 gt for Borland C Builder 3 FRB H gt Header file FRB LIB gt Linkage library for BCB only Delphi4 gt for Delphi4 FRB PAS gt Declaration file VB6 gt for Visual Basic 6 FRB BAS gt Declaration file VC6 gt for Visual C 6 FRB H gt Header file FRB LIB gt Linkage library for VC The list of demo programs Demo1 SA and RA functions for FRB 200 100 FRB 100 200 User Manual Ver
22. es for the input and output parameters of the functions are indicated as input and output respectively as shown in following table Table 6 2 The attributes for the input and output parameters Keyword Setting parameter by user Get the data value before calling this function from this parameter after calling this function Input Yes No Output No Yes Input Output Yes Yes Table 6 3 Function definition perm Function Definition Type WORD ERR Driverlnit WORD wTotalBoard WORD FRB GetDllVersion void WORD FRB GetDriverVersion WORD wDriverVersion WORD FRB_SendSA WORD wPort WORD wSAn WORD OutputData WORD FRB ReceiveRA WORD wPort WORD wRAn WORD winputData WORD FRB ReadRAStatus WORD wPort BYTE bRAStatus void FRB DriverClose void FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 20 6 3 Driver Relative Functions 6 3 1 6 3 2 FRB Driverlnit Description This subroutine will open the FRB driver and allocate the computer resource for the device Furthermore it will obtain all the FRB 100 200 boards installed in the system This function must be used before applying other FRB functions Syntax WORD FRB Driverlnit WORD wTotalBoard Parameter wTotalBoard Output Total FRB 100 200 boards Return Please refer to Section 6 1 Error Code FRB ActiveBoard Description This subroutine wi
23. igh byte wBase 0xc8 RAQ Low byte SA1 Low byte wbase 0xcc RAQ High byte SA1 High byte wBase 0xd0 RA10 Low byte SA2 Low byte wBase 0xd8 RA11 Low byte SA3 Low byte wBase 0xe0 RA12 Low byte SA4 Low byte o m MHZ me ML ke Ll HL mme ML wBase O0xf0 RA14 Low byte SA6 Low byte SA6 High byte SA7 Low byte SA7 High byte wBase 0xf4 RA14 wBase 0xf8 RA15 bag High byte Low byte High byte Fe wBase 0xe4 RA12 High byte SA4 High byte LL le L e ms FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 28 A 1 1 RESET Control Register Read Write wBase 0 RESET When the PC s power is first turned on the RESET signal is in a Low state This will disable all D I O operations FRnet will not be functioning The user has to set the RESET signal to a High state before any D I O command applications are initiated outportb wBase 1 RESET 1 gt The LED indicator is flashing gt Enables the DI DO operations outportb wBase 0 RESET 0 gt The LED indicator is off 2 Disables the DI DO operations A 1 2 AUX Control Register Read Write wBase 2 Aux n 0 gt this Aux is used as a Di Aux n 1 gt this Aux is used as a D O Note n 0 7 When the PC is first turned on all Aux signals are in a Low state This means that all Aux controls are enabled as Dl
24. ll activate one of the FRB 100 200 boards installed in the system This function must be applied once before the I O functions are used Syntax WORD FRB ActiveBoard WORD wBoardNo Parameter wBoardNo Input Board number that you want to active Return Please refer to Section 6 1 Error Code FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 21 6 3 3 6 3 4 6 3 5 FRB GetDllVersion Description This subroutine will obtain the version number of the FRB DLL driver Syntax WORD FRB GetDllVersion void Parameter None Return 100 hex for version 1 00 FRB_GetDriverVersion Description This subroutine will obtain the version number information from the FRB driver Syntax WORD FRB_GetDriverVersion WORD wbDriverVersion Parameter wDriverVersion Output The version number of FRB driver Return Please refer to Section 6 1 Error Code FRB_DriverClose Description This subroutine will close the FRB Driver and release this resource from the computers device resources This function must be used once before exiting the user s application Syntax void FRB_DriverClose void Parameter None Return None FRB 100 200 User Manual Ver 1 1 Oct 2004 fmh 001 01 22 6 4 I O FUNCTIONS 6 4 1 6 4 2 FRB_SendSA Description This subroutine will write the 16 bits of data into the FRB 100 200 SAn then SAn will send the data to the remote RAn Syntax
25. vice wSubAux 2 PIO GetConfigAddressSpace wBoardNo wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice 3 ShowPIOPISO wSubVendor wSubDevice wSubAux A 3 2 PIO Driverlnit Description This function can detect all the FRB series cards in the system It is implemented based on the PCI Plug amp Play mechanism 1 It will find all the FRB series cards installed in this system and save all their resources into the library Syntax WORD PIO Driverlnit WORD wBoards WORD wSubVendorID WORD wSubDevicelD WORD wSubAuxID Parameter WBoards Output Number of boards found in this PC wSubVendor Input SubVendor ID of the board wSubDevice Inout SubDevice ID of the board wSubAux Input SubAux ID of the board FRB 100 200 User Manual Ver 1 1 Oct 2004 33 A 3 3 A 3 4 Return Please refer to Table A 2 PIO GetConfigAddressSpace Description The user can use this function to save the resources found on all the FRB cards installed on the system Then the application program can control all the FRB series cards functions directly Syntax WORD PIO GetConfigAddressSpace wBoardNo wBase wilrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice Parameter wBoardNo lnput Board number wBase Output The base address of the board wlrq Dutput The IRQ number that the board using wSubVendor Output Sub Vendor ID wSubDevice Output Sub Device ID wSubAux

Download Pdf Manuals

image

Related Search

Related Contents

Philips DVDR16LSK  Touch Screen Ultra-Low Temperature Freezers  Le marché du jouet 2011, Crioc  

Copyright © All rights reserved.
Failed to retrieve file