background image

8.4.

Direct programming

For use of the SSI 1417-S04 on other oper ting sy stems or  to get faster re ac tion ti -
mes  or  spe cial  re ac ti ons  other  dri vers  should  be  im ple men ted.  The re fo re  all  nee -
ded  in for ma ti on  fol lows.

Addres ses and in ter rupts of the card

The SSI 1417-S04 uses 2 IO-ad dress ran ges. Be cau se of the plug- and- play of the 
PCI- bus the se data should be found out. The re fo re func ti ons of the BIOS has to
be used like descri bed in  “PCI BIOS SPE CI FI CA TI ON Re vi si on 2.1". 

The SSI 1417-S04 uses a con fi gu ra ti on spa ce hea der type 00h. The da tas could
be  found  in  the  PCI- con fi gu ra ti on  spa ce  on  Ba se Ad dress0  and  Ba se Ad dress1.
With BIOS- func tion the data could be read out of the con fi gu ra ti on spa ce. Ba -
seAddress0 is used for the PCI- tar get con trol ler, Ba seAddress1 for the SSI- func -
ti ons of the card.

For  the  BIOS- func ti ons  the  fol lo wing  in for ma tions  are  ne cessa ry:

• Vendo rID =  0x10E8 (AMCC)

• De vi ceID =  0x5920 (S5920Q)

• Sub Vendo rID =  0x1485 (ERMA - Electro nic GmbH)

• Sub Sy ste mID =  0x0009 (SSI 1417-S04)

Func ti ons  of  the  PCI- tar get

In itia li sa ti on  of  the  PCI- tar get

Write va lue 0x87878787 to address Ba s 0x60

ERMA-Electronic GmbH

14

8. Programming

Summary of Contents for SSI 1417-S04

Page 1: ...SSI 1417 S04 PCI Card with SSI Outputs Instruction Manual ...

Page 2: ...he product to ERMA the sender is respon sible for shipping charges freight insurance and proper packaging to prevent breakage in transit ERMA s warranty does not apply to defects resulting from action of thebuyer such mishandling improper interfa cing operation outside of design limits improper repair or unauthorized modification Trademarks Turbo Pascal Delphi are registered trademarks of Borland ...

Page 3: ... Hardware configuration 7 7 1 1 Component layout 8 7 1 2 Connection of SSI Outputs 9 7 2 Open PC 9 7 3 Card insertion 9 7 4 Close PC 9 7 5 Driver installation 10 7 5 1 Windows 2000 XP 10 8 Programming 10 8 1 Programming under Windows 10 8 2 Programming with S1417S04_DLL DLL 10 8 2 1 Functions 11 8 3 Usage within own applications 13 ERMA Electronic GmbH 2 ...

Page 4: ...owsCVI 13 8 3 4 C 13 8 3 5 LabView 13 8 4 Direct programming 14 8 4 1 Registers of SSI 1417 15 8 4 2 Tips and Tricks 15 9 Troubleshooting 15 10 Technical datas 16 11 Ordering information 17 3 ERMA Electronic GmbH Stand 03 2010 ssi1417s04_man_en vp Technical subjects to change ...

Page 5: ...fully No liability will be assumed for any damage caused by improper installation Inspect the instrument module carton for obvious damage Be shure there are no shipping and handling damages on the module before processing Do not apply power to the instrument if it has damaged The warranty does not apply to defects resulting from action of buyer such as mishandling improper interfacing operation ou...

Page 6: ...ny number of SSI 1417 S04 within one pc depends on number of PCI slots The standard drivers supports up to 4 cards If more than 4 cards should be used you can ask for a driver for more cards The card has one 9 pin SUB D male connector for the inputs and two 9 pin SUB D female connectors for the encoders The functions of the card will be handled in a FPGA This free pro gramable device makes it poss...

Page 7: ...s advisable To use shielded twisted pair cables The wiring of shields and ground 0V should be star shaped The distance to interference sources should be as far as possible If necessa ry protective screen or metal enclosures must be provided Coils of relays must be supplied with filters Parallel wiring of input signals and AC power lines should be avoided ERMA Electronic GmbH 6 5 Block diagram FPGA...

Page 8: ...re installation all components have to be disconnected from power supply Because within PC s and the peripherals are high volta ges it is dangerous to life 7 1 Hardware configuration The SSI 1417 S04 uses plug and play and so there is no need for any settings 7 ERMA Electronic GmbH 7 Installation ...

Page 9: ...7 1 1 Component layout ERMA Electronic GmbH 8 7 Installation male female female SV1 SV2 SV3 SSI0 SSI1 unused component layout ...

Page 10: ...o the backside of the PC case The slot plate is used for mounting and also for shielding Keep in mind that remo val of the plate will result in loss of shielding and card and PC will be more sensiti ve to EMC Additionaly the card won t be held in slot position when external force will happen to the connected cables Then the card could move within the slot and that can result in damage to the SSI 1...

Page 11: ...eep the programming of the SSI 1417 S04 as easy as possi ble all functions of the drivers are handled within one DLL So all programming of the card is done by using the DLL The file S1417S04_DLL DLL should be copied to the Windows system directory or the application directory 8 2 Programming with S1417S04_DLL DLL The DLL S1417S04_DLL DLL includes all functions necessary for the work with the SSI 1...

Page 12: ... This function returns the number of installed SSI 1417 S04 cards S1417S04_GetCardNumber This function returns the serial number of the SSI 1417 S04 card with the desired index Index starts with 0 for the first card S1417S04_GetLastError This function returns the last happened error code Available error codes S1417S04_ERR_OK 0 S1417S04_ERR_ALREADYOPEN 1 S1417S04_ERR_NOTOPEN 2 S1417S04_ERR_NOCARD 3...

Page 13: ... 1 to max 63 Bit 28 Enable for multiplereading of SSI1 ring register mode Bit 29 Gray Binary Conversion for SSI1 only used in driver softwarefunction Bit 30 31 unused S1417S04_GetConf This function will return the configuration of the card with the desired index Index starts with 0 for the first card The meaning of the bits for the value is the same as for S1417S04_SetConf S1417S04_SetSSI0Value S1...

Page 14: ...17S04_DLL LIB and a header file S1417S04 H The library has to be inserted in the linker options of the project settings see documentation of VisualC LabWindowsCVI Include the header file in all source files where SSI 1417 S04 functions are needed An additional method is to use the Windows function LoadLibrary to connect the application to the DLL See documentation of VisualC LabWindowsCVI for furt...

Page 15: ...ion 2 1 The SSI 1417 S04 uses a configuration space header type 00h The datas could be found in the PCI configuration space on BaseAddress0 and BaseAddress1 With BIOS function the data could be read out of the configuration space Ba seAddress0 is used for the PCI target controller BaseAddress1 for the SSI func tions of the card For the BIOS functions the following informations are necessary Vendor...

Page 16: ... mode Bit 29 unused Bit 30 Global Enable of SSI output registers Bit 31 Global Enable of the card enable output drivers 8 4 2 Tips and Tricks If drivers are developed the following points should be considered While writing to registers set all unused bits to 0 While reading registers mask out all unused bits This will safe compatibility with future changes 9 Troubleshooting All PC boards of ERMA E...

Page 17: ...ERMA Team The ERMA Team will help you 10 Technical datas Interfaces 2 x SSI outputs Inputs EIA RS422 Max Resolution 32 Bit programable separately for each interface Clock Outputs EIA RS422 Max Clock 5 MHz programmable seperately for each interface Monofloptime 1 µs to 63 µs programmable seperately for each interface Ecoder Power Supply Optional 5 V 2 x 300 mA or 12 V 2 x 125 mA or 24 V 2 x 60 mA I...

Page 18: ...er Power Supply 0 00 Without power supply 0 05 With 5 V power supply 0 12 With 12 V power supply 0 24 With 24 V power supply Galvanic opto Isolation 0 Without galvanic isolation 1 With galvanic isolation 17 ERMA Electronic GmbH 11 Ordering information ...

Page 19: ......

Page 20: ...ERMA Electronic GmbH Max Eyth Str 8 D 78194 Immendingen Telefon 07462 2000 0 Fax 07462 2000 29 email info erma electronic de Web www erma electronic de ...

Reviews: