Setting a valid range for a motor

I have been pulling my hair out thinking of this one!
I thought I had it but no such luck.
Here is what I need to do.
I have a stepper motor and each step is counted, if a limit switch closes telling the software that the motor has fully opened then the motor should reverse, same thing with the closed limit switch at the other end. There is a valid range in which the switches can close, anything else will cause a fault.
But here is the tricky part, if a limit swith isn't detected within 500 steps of an upper or lower step value then the motor should reverse anyhow.
The outputs I need are:
Direction(toggles)
Step(each pulse steps the motor)
I'm using Labview 4.0 so If you wish to show me anything I'll need a graphi
c only.
I'm displaying what I have as a graphic.
btw the whole limit swithing test is in the top left corner.
Thanks
Ron
Attachments:
limit_switch_test.gif ‏61 KB

Hi Ron,
If i try to just tell you what you want is,you are looking for control which automatically detects the 500 steps and it must reverse the direction of what was previous,if i am right,this is the solution you will have a count of steps from the upper or lower step so you put a OR condition for the limit switch control,and keeping track of the present of the direction and inverse it using SHIFT REGISTER, i am sorry if i have usderstood a wrong thing,plz expalin if i am wrong.

Similar Messages

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • How can I set an validity date for a given vendor?

    Hello,
    we are currently trying to set a "validity date" for vendors.
    Basically, our vendors need to be audited, and are "accepted" for a period of time, beyond which we'd need to re-audit them.
    What we'd like the system to do is block use of the vendor if this date was exceeded.
    Anyone has an idea on the way to achieve this?
    PS: We know that there is a way to do this at the material level, we instead wish to manage it centrally for the vendor
    Tx

    Hello Nisha,
    before doing business with a new vendor for services, our QA group needs to go thru a serie of verifications. We check various things such as insurance, certification,...
    Once "approved", the vendor can be utilised by the plant for a certain period of time, after which a "re-audit" is necessary.
    What I'd like to implement is a field where the QA group would enter this date, after which the vendor would be automatically blocked for usage.
    This would then trigger the "re-audit" followed by the release from QA (who'd re-modify the date with the new one), and so on.
    The vendor is not necessarily used for supply chain. Sometimes, it could be for services , maintenance, or other.
    Tx for the ideas.

  • HOW TO set the input range for analog in (DAQ)?

    How can I set the input range of a - NI DAQ USB 6259 - analog voltage input?
    I wish to control it directly in my VI. Is it possible to set different ranges for different input channels?
    Thank you,
    Roberto

    duplicate post

  • How can I set a date range for a Date/Time Field in LiveCycle ES2?

    I need to set a specific date range for a form set up in LiveCycle ES2. Cannot see where i allows me to do that without a code entered.

    Hi,
    You can't set a start and end date for the date/time field, the best you can do is validate the range after the user has selected it.
    An alternate is to make your own date / time field, like this sample http://adobelivecycledesignercookbookbybr001.blogspot.com.au/2013/05/an-alternative-date-p icker-for.html
    Regards
    Bruce

  • Set Up number range for OM Objects

    Hi All,
    I have set up Ext number range for Org Unit & Position.
    example: Org Unit 50000000 - 599999999 and i have uploaded data till 50000999.
    so it should be update current number as 50000999.
    but in my scenario its not updating current number still is '0'
    Please help me.
    regards

    Hi Waseem
    I am agree with your reply as I am doing the same thng. Currently I am using External Number Range as I am going to upload data and later will change into Internal.
    but my question is in Number Range Maintanace in Current Number should be update automatically or not.
    Example Org Unit from 500000000 - 59999999 and we uploaded data till 50000900
    so  in Current it should show 50000900
    NO      From Number     To Number      Current Number     EXT
    EX      500000000          59999999     0
    but in my case it is showing '0' in current number
    so Please confirm me whether it should update automatically, if yes pls tell me how
    regards,

  • Setting up number range for projects in cProjects

    Hi,
    I am new to cProjects & my apologies if my question may sound very naive. My client wants an alpha-numeric number range to be set up for numbering of projects. Is this possible & if yes how? Which is the object for setting the number range? (I believe the transaction in "SNRO")
    Thanking you for taking a note of my querry.
    Regards
    Deepak

    Sample Code Method SET_DEFAULTS_UPON_CREATION
    Method IF_EX_DPR_ATTRIBUTES~SET_DEFAULTS_UPON_CREATION
    */ This method is called when creating a new project element (i.e. project definition,
    */ phase, task, etc) and can be used to fill in default values for standard as well
    */ as customer defined data fields.
    */ This implementation is provided to assign customer specific numbers to project
    */ elements.
    */ It's interesting to note that when this method is called, the external ID of the
    */ object has already been determined and assigned by the default numbering services
    */ class CL_DPR_NUMBERING_SERVICES. It is also interesting to note that if a user
    */ specified an ID for the object through the user interface, changing the identifier
    */ in this method will have no effect -- meaning the user specified ID will still be
    */ assigned to the object.
    */ Only the example for Project Definition is provided.  For other project elements,
    */ insert similar code between the Beginning and End comments below.  In addition,
    */ the filter for this BADI implementation must be updated to include any other
    */ project element for which custom number assignment is desired.
      DATA:
        lr_parent              TYPE REF TO if_dpr_common,
        lr_project             TYPE REF TO cl_dpr_project,
        lr_approval            TYPE REF TO cl_dpr_approval,
        lr_individual_approval TYPE REF TO cl_dpr_individual_approval,
        lr_phase               TYPE REF TO cl_dpr_phase,
        lr_task                TYPE REF TO cl_dpr_task,
        lr_checklist           TYPE REF TO cl_dpr_checklist,
        lr_checklist_item      TYPE REF TO cl_dpr_checklist_item,
        LV_NUMBER              TYPE DPR_TV_EXTID,
        LV_NUMTEXT             TYPE CGPL_EXTID,
        LV_INTERVAL            TYPE NRIV.
      FIELD-SYMBOLS:
        <ls_project_attrs>             TYPE dpr_ts_project_int,
        <ls_phase_attrs>               TYPE dpr_ts_phase_int,
        <ls_task_attrs>                TYPE dpr_ts_task_int,
        <ls_checklist_attrs>           TYPE dpr_ts_checklist_int,
        <ls_checklist_item_attrs>      TYPE dpr_ts_checklist_item_int,
        <ls_approval_attrs>            TYPE dpr_ts_approval_int,
        <ls_individual_approval_attrs> TYPE dpr_ts_individual_approval_int.
    */  Determine which project element (object category) is being processed
      CASE flt_val.
        WHEN cl_dpr_co=>sc_ot_project.
          ASSIGN cs_attributes TO <ls_project_attrs>.
          lr_project ?= ir_common.
    */ Beginning of custom project number assignment.
    */    In this example, the default system numbering is manipulated to
    */    produce the Project Number...
    */    Get info regarding the number range for operative projects...
          CALL FUNCTION 'NUMBER_GET_INFO'
            EXPORTING
              NR_RANGE_NR              = 'DO'
              OBJECT                   = 'DPR_EXTID'
    *         SUBOBJECT                = ' '
    *         TOYEAR                   = '0000'
            IMPORTING
              INTERVAL                 = LV_INTERVAL
            EXCEPTIONS
              INTERVAL_NOT_FOUND       = 1
              OBJECT_NOT_FOUND         = 2
              OTHERS                   = 3.
          IF NOT SY-SUBRC IS INITIAL.
            RAISE EXCEPTION TYPE CX_DPR_FATAL_ERROR
              EXPORTING
                TEXTID = CX_DPR_FATAL_ERROR=>SC_INVALID_PARAMETERS.
          ENDIF.
    */    Strip off the year that has been appended to the object number
    */    by the default numbering services...
          write <ls_project_attrs>-project_id(20) to lv_number.
    */    Get the incremental number of the project from the number range...
          lv_number = lv_number - LV_INTERVAL-FROMNUMBER.
    */    Format the number according to customer specific requirements:
    */    In this example the number is PROJ-<inc num> where <inc num>
    */    is the incremental number of the project (i.e. for the 33rd project
    */    created, the <inc num> is 33).
          WRITE lv_number to lv_numtext no-zero.
          condense lv_numtext.
          CONCATENATE 'PROJ' lv_numtext INTO lv_numtext SEPARATED BY '-'.
          TRY.
              CALL METHOD LR_PROJECT->SET_PROJECT_ID
                EXPORTING
                  IV_PROJECT_ID              = lv_numtext.
          CATCH CX_DPR_OBJECT_UPDATE_ERROR .
              RETURN.
          ENDTRY.
    */ End of custom project number assignment.
        WHEN cl_dpr_co=>sc_ot_phase.
          ASSIGN cs_attributes TO <ls_phase_attrs>.
          lr_phase ?= ir_common.
    */ Beginning of custom phase number assignment.
    */ End of custom phase number assignment.
        WHEN cl_dpr_co=>sc_ot_approval.
          ASSIGN cs_attributes TO <ls_approval_attrs>.
          lr_approval ?= ir_common.
    */ Beginning of custom approval number assignment.
    */ End of custom approval number assignment.
        WHEN cl_dpr_co=>sc_ot_individual_approval.
          ASSIGN cs_attributes TO <ls_individual_approval_attrs>.
          lr_individual_approval ?= ir_common.
    */ Beginning of custom individual approval number assignment.
    */ End of custom individual approval number assignment.
        WHEN cl_dpr_co=>sc_ot_checklist.
          ASSIGN cs_attributes TO <ls_checklist_attrs>.
          lr_checklist ?= ir_common.
    */ Beginning of custom checklist number assignment.
    */ End of custom checklist number assignment.
        WHEN cl_dpr_co=>sc_ot_checklist_item.
          ASSIGN cs_attributes TO <ls_checklist_item_attrs>.
          lr_checklist_item ?= ir_common.
    */ Beginning of custom checklist item number assignment.
    */ End of custom checklist item number assignment.
        WHEN cl_dpr_co=>sc_ot_task.
          ASSIGN cs_attributes TO <ls_task_attrs>.
          lr_task ?= ir_common.
    */ Beginning of custom task number assignment.
    */ End of custom task number assignment.
      ENDCASE.
    ENDMETHOD.

  • How do I programmatically set the scale range for the two y-scales of the two plots

    hi,
    I am using labview 8.2
    To programmatically assign a range to the y-scale of a plot I use a Property Node for the plot display and adjust Y.Scale.Range.Minimum.
    How can I assign the ranges of a plot with multiple y-scales?
    miethe

    One of the problems with using two Y scales is that the display can get very messy is you also want grids on the plot. To address this, I created the attached VI. After allowing the right axis to autoscale, it fine tunes the marker locations so the grid lines for the left and right side overlay each other.
    To use it all you have to do is write your data to the graph and then call this VI with a reference to the graph.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    Match Dual Y-Axis.vi ‏25 KB

  • Set up validity table for inventory management

    Hi all,
    somebody know if it is necessary reload the infocube 0IC_C03 every time that change the transfer method with the Tx. RSDV?
    Thanks in advance.
    Facundo Romero.

    Hi,
    If you decide later that you require more validity-determining characteristics, you can modify the selection using the report RSDG_CUBE_VALT_MODIFY. In this report, the non-cumulative InfoCube is only changed to the extent that the new validity-determining characteristics are selected and the validity table is reconstructed. The structure of the non-cumulative InfoCube remains the same. You do not have to reload the transaction data for it.
    I hope this helps.

  • ERROR - "The formula contains a number outside of the valid range"

    Hello,
    I am using an equation that is returning the error "the formula contains a number outside of the valid range" when the constituent cells of the equation contain a negative number. I have tried using the inspector to format the problem cell(s) differently, but to no avail. The equation works fine in other respects. How is numbers deciding what the valid range for variables in my foruma is?
    I've done the math out separately to make sure the equation isn't dividing by 0 or something wacky, but there's nothing wrong with the formula or the result... It should be doing math and it's not!
    I haven't found any posts by other users with the same problem.
    Thanks.

    jd,
    It would help us if you paste the formula in your post here, exactly as it appears in the cell. Also tell us the values of the inputs to that formula.
    Changing a cell's format seldom has any effect on the calculation. Formatting changes how a result is displayed, but not what the result of the formula is behind the screen.
    Jerry

  • Input range for different channels

    Hi,
    In one of my experiments, the data I acquire in different channels have different magnitudes (in Volts). Therefore, I am trying to set a different input range to these various channels. Here's a picture (input_range.png) of a part of my VI where I am trying to assign input ranges to the analog input channels.
    Channels ai0-7 have the range +/-200mV and channels ai8-15 have +/-500V. I do not have the equipment with me at the moment, so I can't test this. But I am wondering whether this is how you would normally set different input ranges for different channels or whether there's a better way to do this.
    Cheers.
    Attachments:
    input_range.PNG ‏15 KB

    Thanks for the quick reply Mike.
    I found the following post which showed me how to do it
    http://forums.ni.com/ni/board/message?board.id=170&message.id=318492&query.id=74076#M318492
    However, I am having difficulties in actually acheiving this. Firstly, I don't know how to set up the arrays as he's done there. Secondly, I could not get the auto-indexing to work. I've attached a pic of my attempt. When I try to enable auto-indexing on the right-hand side of the for-loop it breaks the wires and I can't even enable auto-indexing on the left hand side.
    Will it be possible to attach a VI for this part so I can see what functions you've used.
    Cheers.
    Attachments:
    input_range2.png ‏8 KB

  • Can I set different input range in different channel in cFP AI100

    Dear Sir:
    I have one question about the input range of cFP AI 100. Can I set different input range for different channel in one cFP? Also, can I set different input type (voltage or current) for different channel in one cFP? If yes, how? Thanks.
    Best Regards.
    Fred

    Hi Fred,
    The answer to both questions is yes. In MAX, in the Channel Configuration Tab of your cFP-AI-100, you can specify your range to be one of a number of settings for current or voltage. To configure separate channels, simply select the channel and then select the range. See the attached screenshot for more details.
    Regards,
    Sean C.
    Attachments:
    FP Channel Configuration.bmp ‏2305 KB

  • External number range for service items?

    I want to create Purchase order with services using BAPI. Is it possible to set external number range for the extrow / introw, so that if I need to change a service line item, I will be able to find out which service item needs to be changed.

    It depends on whether you have a service master or not.
    1. If you have service master, then there will be a service number (just like a material number). You can use that identify which one has to be deleted.
    2. If NOT, then they would still send the text for the Service lines (I guess this will be unique for each line item). So, you will have to identify the line to be deleted by that.
    Makes sense?
    A question - You are saying you will get information to update the PO, but how does the system know which PO to be updated, how are you going to identify which PO needs to be changed?
    Regards,
    Ravi
    Message was edited by: Ravikumar Allampallam

  • Number range  for vendors

    how to set a number range for vendor automatic.
    please help....
    i will assign point.

    Hi Jatin,
    fallow the path:
    Financial Accounting-> Accounts Receivable and Accounts Payable -> Vendor Accounts -> Master Data -> Preparations for Creating Vendor Master Data -> Create Number Ranges for Vendor Accounts.
    Here you can create number range for vendors. And in number range screen, you have a check box called Ext. If you select this, it will ask you to give your number (means external number system). If you need internal number (Automatic number), do not select this.
    Hope this will help you.
    Pl. Assign points if useful.
    Thanks,

  • INST-08010: Error in validating the port range for auto port allocation

    Hello guys, I am using the installer to install OBIEE 11.1.7.0 on my machine. When I get to step 6, I receive the error messages below:
    INST-08010: Error in validating the port range for auto port allocation. At least 2 ports should be free within the range 7000-7500 for the Adminserver and Adminserver SSL.
    Ensure that a minimum of 2 ports are free within the range 7000-7500 for auto port allocation to work correctly for the Adminserver and Adminserver SSL.
    INST-08010: Error in validating the port range for auto port allocation. At least 3 ports should be free within the range 9500-9699 for the Weblogic Components for BI (WLS Managed Server, Managed Server SSL and NodeManager).
    Ensure that a minimum of 3 ports are free within the range 9500-9699 for auto port allocation to work correctly for the Weblogic Components for BI (WLS Managed Server, Managed Server SSL and NodeManager).
    INST-08012: Error in validating the port range for auto port allocation. At least 3 consecutive ports should be free within the range 9500-9699 for the OPMN, in addition to 3 free ports required for Weblogic Components for BI (WLS Managed Server, Managed Server SSL and NodeManager).
    Ensure that a minimum of 3 consecutive ports are free within the range 9500-9699 for auto port allocation to work correctly for the OPMN, in addition to 3 free ports required for Weblogic Components for BI (WLS Managed Server, Managed Server SSL and NodeManager).
    My Operating System  below:
    Linux Red Hat 5.9 X86 64bit
    My uname -a are below:
    Linux redhat59 2.6.18-348.el5 #1 SMP Wed Nov 28 21:22:00 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
    My /etc/hosts file are  below:
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1   localhost.localdomain localhost
    10.10.80.19 redhat59
    My /etc/sysconfig/network are below:
    NETWORKING=yes
    NETWORKING_IPV6=no
    HOSTNAME=redhat59
    GATEWAY=10.174.27.228
    My /etc/sysconfig/iptables are below:
    # Generated by iptables-save v1.3.5 on Tue Dec  3 17:01:17 2013
    *filter
    :INPUT ACCEPT [425:33860]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [307:40164]
    COMMIT
    # Completed on Tue Dec  3 17:01:17 2013
    My ifconfig are below:
    eth0      Link encap:Ethernet  HWaddr 52:54:00:55:9B:C9
              inet addr:10.174.27.233  Bcast:10.174.27.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:200216 errors:0 dropped:0 overruns:0 frame:0
              TX packets:95849 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:110668992 (105.5 MiB)  TX bytes:209784134 (200.0 MiB)
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:109200 errors:0 dropped:0 overruns:0 frame:0
              TX packets:109200 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:257845896 (245.9 MiB)  TX bytes:257845896 (245.9 MiB)
    my /etc/sysconfig/network-scripts/ifcfg-eth0 are below:
    # Virtio Network Device
    DEVICE=eth0
    BOOTPROTO=static
    BROADCAST=10.174.27.255
    HWADDR=52:54:00:55:9B:C9
    IPADDR=10.174.27.233
    NETMASK=255.255.255.0
    NETWORK=10.174.27.0
    ONBOOT=yes
    Have any suggestion please?
    Many Thanks
    D

    In setDomainEnv.sh set debugFlag=false or you can just remove it.
    NodeManager is a charm after that. it can take any number of ports.
    Cheers !!

Maybe you are looking for

  • Upgrading my Computer and have a corrupt library problem...

    I am upgrading my Macbook Pro, which is almost 2 years old, to a newer model. I am currently using Aperture 1 but will have Aperture 2 on my next computer. Now my current problem is a corruption in my library that causes Aperture to crash every time

  • Problem conversion of a text from codepage '4110' to codepage '4103'

    Hi! I upgrade my SAP version ECC 5.0 no Unicode to ECC 6.0 Unicode . Now, when I execute some reports I get a dump  because when I open my file with 'OPEN DATASET'  and then READ and TRANSFER to another file the result is : At the conversion of a tex

  • 1 to N Mapping

    I have an interface where I have 1 sender message and depending on certain criteria 2 receiver messages get written. I have a in the mapping program 1 message type on the sender side and 2 message types on the receiver side. Which is fine. then on th

  • Line item -  flat file - BDC

    hi gurus....... could some one get me a real time flat file for BDC line items. maximum points will be rewarded.

  • How to use the new Jade plug in

    How do I open the Jade plug in. I downloaded the demo version, and unable to find a way to open it. Installation was successful. Thanks in advance.