background image

 

LSI-3104 

ENCODER/LINEAR SCLAE 

INTERFACE CARD 

 

  USER'S MANUAL (V1.3) 

 

 

 

 

 

 

   

 

健昇科技股份有限公司

 

JS AUTOMATION CORP. 

 

台北縣汐止市㆗興路

100

6

 

 

 

 

      6F,NO.100,CHUNG-SHIN RD.

 

  SHI-TSU,TAIPEI,TAIWAN,R.O.C.

 

                                                          TEL

886-2-2647-6936 

                                              FAX

886-2-2647-6940 

                       http://www.automation.com.tw

 

  E-mail

[email protected]

 

                                                                    [email protected]

 

           

Export: [email protected] 

 

Summary of Contents for LSI-3104

Page 1: ...MANUAL V1 3 JS AUTOMATION CORP 100 6 6F NO 100 CHUNG SHIN RD SHI TSU TAIPEI TAIWAN R O C TEL 886 2 2647 6936 FAX 886 2 2647 6940 http www automation com tw E mail jsnet automation com tw jservice auto...

Page 2: ...DEMO 14 12 1 EXAMPLE 1 USING C 14 12 2 EXAMPLE 2 USING C 14 12 3 EXAMPLE 3 USING ASSEMBLY LANGUAGE 15 12 4 EXAMPLE PROGRAM USING C LANGUAGE 16 13 DIMENSIONS 17 13 1 LSI3104 MAIN CARD DIMENSION CARD 17...

Page 3: ...d experienced functions such as external triggered latch function at 32 bit counter length Low cost and high performance makes this card a better choice to use in the servo control feedback 3D measuri...

Page 4: ...to load counter by external trigger or software trigger 3 1 6 Multiple counter reset homing modes 3 1 7 Load counter or latch counter to temporary buffer by external trigger 3 1 8 Programmable multipl...

Page 5: ...nel 1 for external trigger latched counter data at buffer 4 1 12 Clear counter input per channel 1 4 1 13 General input per channel 1 with general type of photo coupler 4 1 14 Clear counter output per...

Page 6: ...5 5 LAYOUT 5 1 LSI3104 MAIN CARD LAYOUT 5 2 LSI3104 WIRING BOARD LAYOUT Card ID...

Page 7: ...17 YA input 51 AA input 18 YA input 52 AA input 19 YB input 53 AB input 20 YB input 54 AB input 21 YC input 55 AC input 22 YC input 56 AC input 23 YHOME input 57 AHOME input 24 YHOME input 58 AHOME in...

Page 8: ...1 ENCODER INPUT DIAGRAM I O WIRING BOARD LSI 3104 CARD ENCODER I P CIRCUIT 7 2 GENERAL INPUT DIAGRAM I O BOARD LSI 3104 CARD GENERAL I P CIRCUIT 7 3 OUTPUT DIAGRAM 1 2 3 4 XOUT XCLR_OUT GND 24V 24Ve...

Page 9: ...lay 24Ve Relay 24Ve GND GND YOUT YCLR_OUT YCOM 1 2 3 4 5 GND 24V MOSFET Output 1 2 3 4 5 6 7 Relay 24Ve Relay 24Ve Relay 24Ve Relay 24Ve ZOUT ZCLR_OUT AOUT ACLR_OUT ZACOM GND 24V Relay Output GND GND...

Page 10: ...ply in 5Vdc Supply out ZACOM V Load Load Load Load YOUT YCLR Load Load AC DC V AC DC X axis only MOSFET type X 5V GND A B C HOME LAT CLR IN0 XOUT XCLR 24V YOUT YCLR YCOM GND ZOUT ZCLR AOUT ACLR GND 24...

Page 11: ...input YB and YB is DIFFERENTIAL input C YC is SIGNLE END input YC and YC is DIFFERENTIAL input H YHOME is SIGNLE END YHOME and YHOME is DIFFERENTIAL LAH YLAH is SIGNLE END input YLAH and YLAH is DIFF...

Page 12: ...ibrary for get base address G_pci_adr h G_adr_s obj in DOS mode whereas in Windows system we support DLL for application link As the following diagram PC writes at Base 0 I O address to set up the ind...

Page 13: ...cond general output register GENERAL_OUTPUT2 15 7 001AH R W counter mode register COUNT_MODE 001BH R W multiply register of qudrature mode QUDRATURE_TIMES 15 8 001CH R W interrupt enable register INTE...

Page 14: ...vo motor Encoder on DC AC motor Optical scale output signal Magnetic linear scale output Timing disc Revolution sprocket Proximity sensor detector with relative motion Timer counter 11 2 Pulse signal...

Page 15: ...RD of X axis define CNTR_LOW_WORD 5 address of READ_L_WORD of X axis int Cntr_low_value declare Cntr_low_value as integer int Cntr_hi_value declare Cntr_hi_value as integer long Cntr_value declare Cnt...

Page 16: ...he input buffer RAM Program is as follows BASE the I O base address set MOV DX BASE Set Dx as I O index register MOV AX GENERAL_ INPUT put address of GENERAL_ INPUT in AX OUT DX AX write to setup inde...

Page 17: ...Please set base address 280h n Request to set Dip switch to 280h getch wait for keyin printf Press any key to preset counter value n printf set counter 6476936 n getch wait for keyin outpw BASE 0 PRE...

Page 18: ...17 13 DIMENSIONS 13 1 LSI3104 MAIN CARD DIMENSION CARD 13 2 LSI3104 WIRING BOARD DIMENSION...

Page 19: ...r scale interface card LSI 3104 DIN DIN rail mounted wiring board with 4 channels on the board LSI 3104 DMO Demo program of LSI 3104 card for DOS free with user manual LSI 3104 WIN Dll VB VC C Builder...

Page 20: ...d by XXXXH through base I O address 2 Address of register for X axis 0000H 002FH Address of register for Y axis 0030H 005FH Address of register for X axis 0030H Address of register for Z axis 0060H 00...

Page 21: ...er while A B Z Home signal are LOW simultaneously Once the counter cleared this command will also cleared to 0 Normal mode 0007H Clear counter while home signal has just inactive and counter up count...

Page 22: ...00H No function 0001H Hardware clear counter has been done After read the register value will reset to 0 Address of register 0002H SOFTWARE HOMING REGISTER Command WRITE ONLY 0000H No function 0001H C...

Page 23: ...H No function 0001H UPDATE COUNTER BUFFER Once buffer is updated the register value will reset to 0 Address of register 0004H COUNTER HIGH WORD REGISTER Return READ ONLY YYYYH High word data from coun...

Page 24: ...rd data preloaded to buffer Address of register 0007H PRELOAD LOW WORD TO BUFFER Command WRITE ONLY YYYYH Low word data preloaded to buffer Address of register 0008H LOAD PRESET VALUE TO COUNTER Comma...

Page 25: ...00AH EXTERNAL TRIGGER LATCH LOAD MODE Return Command READ WRITE 0000H Continuous external trigger latch counter mode default 0001H One shot external trigger latch mode Once triggered the register 0009...

Page 26: ...dress of register 000CH HIGH WORD LATCH BUFFER Return READ ONLY YYYYH High word data from latch buffer Address of register 000DH LOW WORD LATCH BUFFER Return READ ONLY YYYYH Low word data from latch b...

Page 27: ...1H Positive polarity active high Note There is only one general input bit for each axis so only one polarity bit for it Address of register 000FH GENERAL INPUT REGISTER Return READ ONLY 0000H Input in...

Page 28: ...oggles bit 0 Address of register 0012H HOME INPUT REGISTER Return READ ONLY 0000H Inactive 0001H Active Address of register 0013H EXTERNAL TRIGGER LATCH INPUT REGISTER Return READ ONLY 0000H Inactive...

Page 29: ...ne polarity bit for it Address of register 0016H GENERAL OUTPUT REGISTER Command Return READ WRITE 0000H Inactive 0001H Active Note Only one general output bit for each axis Address of register 0017H...

Page 30: ...018H SECOND GENERAL OUTPUT POLARITY REGISTER Command Return READ WRITE 0000H Active low default 0001H Active high Address of register 0019H SECOND GENERAL OUTPUT REGISTER Command Return READ WRITE 000...

Page 31: ...ut quadrature down count mode if A lead B 0002H A input is CLOCK B input is DIRECTION up count mode 0003H A input is CLOCK B input is DIRECTION down count mode 0004H A input is UP CLOCK B input is DOW...

Page 32: ...alue 0003H Interrupt on counter carry occurred 0004H Interrupt on counter borrow occurred Address of register 001EH INTERRUPT FLAG Command Return READ WRITE 0000H No function 0001H External trigger la...

Page 33: ...pin short to ground input buffer reads 1 else 0 default 0001H Input pin short to ground input buffer reads 0 else 1 Address of register 0021H REGISTER OF LATCH INPUT POLARITY Command Return READ WRIT...

Page 34: ...else 1 Address of register 0024H REGISTER OF B_PHASE POLARITY Command Return READ WRITE 0000H Input pin short to ground input buffer reads 1 else 0 default 0001H Input pin short to ground input buffe...

Page 35: ...se this mode register 06H 07H 2AH and 28H 29H must configure appropriate value first Comment Only valid for X Z axis Address of register 0028H HIGH WORD OF INCREMENTAL VALUE Command WRITE ONLY YYYYH h...

Page 36: ...lse 0 BIT3 1 A axis generate interrupt else 0 Comment The register s value will not be cleared until EOI REGISTER 00C2H receives a end of interrupt command Writing to this register at the correspondin...

Page 37: ...New security code Address of register 00C4H REGISTER OF OLD SECURITY CODE Command Return READ WRITE YYYYH OLD SECURITY CODE Address of register 00C5H SET SECURITY MODE REGISTER Command Return READ WR...

Page 38: ...register 00C6H KEY STATUS REGISTER Return READ ONLY 0000H key locked 0001H key unlock Address of register 00C7H SECURITY STATUS Return READ ONLY 0000H security function not activate 0001H security fun...

Page 39: ...38 15 13 COMPLEMENTARY FUNCTION Address of register 00C8H COMMON TRIGGER MODE REGISTER Command Return READ WRITE 0000H individual mode default 0001H 4 axes common triggered by X trigger input...

Reviews: