Problem in Tension/compression


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Oi vey!
    Where'd the 7-segment come from?

    Oh well.
    Code:
            B1 = ABS(LastW0) DIG 0    
            B2 = ABS(LastW0) DIG 1
            B3 = ABS(LastW0) DIG 2
            B4 = ABS(LastW0) DIG 3
            B5 = ABS(LastW0) DIG 4
    - or -

    Code:
            W4 = ABS(LastW0)
            B1 = W4 DIG 0    
            B2 = W4 DIG 1
            B3 = W4 DIG 2
            B4 = W4 DIG 3
            B5 = W4 DIG 4
    <br>
    DT

  2. #2
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    89


    Did you find this post helpful? Yes | No

    Default

    Oh..Thanks Sir Darrel Taylor.

    working fine now. but how i show "-" sign for tension measurements.

    One thing more , just for information.

    my encoder is 1000 PPR
    CHIP 18F4550
    XTAL mount 20 mhz
    Code:
    __CONFIG    _CONFIG1H, _FOSC_HSPLL_HS_1H
    DEFINE OSC 20
    I lose the count in > 5 RPM with above code.

    And if mount XTAL 20 mhz
    and if i code
    Code:
    __CONFIG    _CONFIG1H, _FOSC_HSPLL_HS_1H
    DEFINE OSC 3
    this is work up to 20 RPM. No counts lose.
    Is DEFINE OSC 3 will increase the speed of PIC ?

    .

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    18F4550
    20Mhz crystal (22pF caps)

    Use ...
    Code:
    @   __CONFIG    _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    @   __CONFIG    _CONFIG1H, _FOSC_HSPLL_HS_1H
    DEFINE OSC 48
    <br>
    DT

  4. #4
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    89


    Did you find this post helpful? Yes | No

    Default

    how i show "-" sign for tension measurements. I mean when count below Zero.

    .

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    If LastW0.15 = 1 then the result is negative.

    I'm not familiar with your display, so I don't know how to show the minus sign.
    <br>
    DT

  6. #6
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    89


    Did you find this post helpful? Yes | No

    Default

    Thanks a million Sir Darrel Taylor. My project is over.

    i add this line,

    Code:
    If LastW0.15 = 1 then 
       E6 = $BF
        ELSE
       E6 = $FF
     ENDIF
      
            HC_Latch=0
            shiftout HC_data, HC_Clk, MSBFIRST,[E1,E2,E3,E4,E5,E6]        
            pauseus 1
             HC_Latch=1
                    
            '---------------------------------------
           ' endif   
             GOTO LOOP
    Now my next step is "Calibration Factor" with Pitch of machine's screw.
    I will start it Using Floating Point
    Thanks again.

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I doubt that you need to use Floating Point.
    It's a real pain.

    Do you know the numbers yet?
    pulses/mm or something like that?
    <br>
    DT

Similar Threads

  1. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 09:12
  2. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 22:04
  3. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 22:39
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 23:59
  5. PORTA.PinNo = 1 ' problem
    By frank small in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th May 2004, 15:30

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts