Counter base maintenance and multiple counter maintenance

Hi
With refering to the counter base order generated in the system, i have confused.
We have the plans 100, 200, 300 to max 2000 Hours. The task lists are assigned. The maintenance plan annual estimate is 4000 Hours (i dont know why its required if the measurment documents are in use) ..
The system is regularely generating the orders eventhough we have measurement docuements upto 300 Hours. Last week we have no measurement updates.
Can you give me the logic, functionality of the performance maintennace. I have read SAP help which is not explaining in practical manner.
Also how to work for multiple counter maintenance. We have to do for DAY (30 Days, 60 days. 180, 360 Days) Wise or Hour wise (300, 900, 1500, 3500, 7000 Hours maintenance. Can you tell me how to work for this on single maintennace plan..since our equipment also only one.

Hi,
This appears to be a typical multiple counter plan situation consisting of performance based and time based elements. The performance cycles are based on operating hours and time is the elapsed days.
The relevant section of SAP Help is - [here|http://help.sap.com/saphelp_erp60_sp/helpdata/en/d8/e06a1f7e9c144fbb3a3ed0c38bc38a/frameset.htm]
See point 3-Scheduled date calculation. In particular:
The annual performance recorded for the counters and the most up-to-date counter reading are used to calculate the corresponding planned date.
Annual Estimate is used to calculated planned date meaning that calls can occur before the actual counter readings are reached.
-Paul

Similar Messages

  • Maintenance schedule - Multiple counter

    Hi,
    For the following
    Maintenance schedule for every 2 weeks or 3,000 miles:
    1. Check engine oil, transmission fluid and coolant.
    I need to generate  a  notification  at 3000 miles or 14 days  whichever is occured earlier  (i.e.., only one notification should generate)
    How we can map this scenario in PM module ?

    Also this is my scenario
    Maintenance schedule for every month or 1,000 miles:
    2. Check tire pressure - with tire gauge.
    3. Check transmission fluid.
    4. Check brake fluid.
    5. Wax car (to protect finish).
    6. Check belts and hoses.
    Car maintenance schedule for every 3 months or 3,000 miles:
    7. Change oil and oil filter
    8. Lubricate chassis.
    9. Check transmission fluid.
    10. Check all drive belts (fan belts) frayed or cracked belts.
    Maintenance schedule for every 6 months or 6,000 miles:
    11. Change oil and filter
    12. Inspect suspension.
    13. Rotate tires.

  • How can i use an airport base station and multiple airport expresses with U-verse and still use wireless tv boxes?

    I just got uverse, and when I put my Airport Base Station in Bridge mode I lose access to the 4 airport express stations I have. Can anyone tell me how to turn off the u-verse wireless, set up a network with all the apple stations and still have wireless u-verse tv boxes work? Thanks!

    Can I relocate the airport base station to downstairs and connect it to the Sawtooth there for receiving wireless from the Verizon router and broadcast further to its wireless network?
    Sorry but no the AirPort Extreme base station (AEBS) will not wirelessly connect to the network provided by the Verizon FiOS router.
    What you could do is get another AEBS, an AX, or a Time Capsule and place that downstairs. Then use that device to wirelessly connect to the wireless network provided by your current AEBS. If your current AEBS is not 802.11n capable then you would need to use WDS to make this happen. One bad thing about WDS is that each WDS link cuts your affective wireless bandwidth in half.

  • Airport Extreme Base Station and Multiple Computer Access to the Internet

    I have my IMAC connected to the internet via the Airport Extreme Base Station. When I am able to connect, my son's MacBook cannot. If I preform network diagnostics and reset the base station so he can connect (which appears to be luck on my part), I can no longer connect. When I first set this up, I had it working with all computers in the house. I tried to expand the system to boost the signal in our house with the airport express units. I have since removed them and started over, but still cannot provide internet access to more than one computer.
    Help

    Try this first...
    Modem/Router Power ReCycling
    - Power-off the DSL/Cable modem, Internet Router, & computer(s). (Wait at least 30 minutes. If possible, leave the modem off overnight.)
    - Power-on the DSL/Cable modem; Wait at least 30 minutes.
    - Power-on the Internet Router; Wait at least 5 minutes.
    - Power-on the computer(s)

  • Counter Base Maintenance plan.

    Hi all,
    I had created counter base maintenance plan, speciefied equipment,in equipment maintained measuring point.
    Then I created measuring point document, in this I had put 50 volt as my reading & click on SAVE,
    then system immediated give masage create noti/service order.
    if Yes then it create service order.
    Now my question is is there any need to shedule maintenance plan?
    Please tell me process of counter base maintenance plan.
    kapil

    Hi
       Maint plan for coutner
               Create the maintenance plan with maintenance strategy(IP11) which suits the performance parameter. Assign proper maintenance item to maintenance plan.
    If only one measurement point is created for technical object then it will be automatically picked up otherwise select appropriate among the available once. Set the scheduling parameter according to requirement & specify the start reading. Start reading is in reference to which maintenance plan starts scheduling.
    Example: Maintenance cycle is 90 run hrs., Start reading is 6 hrs and annual estimation given in measurement point = 360 Hrs (1hrs/day). Scheduling period = 365 day. Current Measuring point reading = 1 hrs on 1st Jan 06.
    Schedule plan on 1st Jan 06.
    Call no.     @Hrs     @Date
    1     6+90=96     1st April 06
    2     96+90 = 186     1st July.
    System schedule call date based on annual estimation and its keep on shifting as counter reading increases with time. System will trigger the call object on schedule date even if measurement reading will not reach the specified value.
    Scheduling of maintenance plan
    Once maintenance plan is created it needs to be scheduled at regular interval. Single plan can be scheduled by IP10 and Multiple plan by IP30. (Called Deadline monitoring) This can be done manually or batch job can be created.
    hope this will help. also please refere saphelp.com for further info
    regards
    krishna jois

  • Maintenance Plan with Counter

    Dear All,
    I have the following requirement, would be of great help if you can help me get the solution:
    Their is a pump which is to be maintained. The orders need to be generated on the basis of two parameters:
    1. Number of hours the pump has ran. This can be recorded against measuring point.
    2. Number of calendar days elapsed.
    The maintenance order should be created which ever condition is met first. For example: Every 200 hrs the pump runs, a maintenance order should be created also if the time elapsed is 2 months the order should be created. Now whatever of the above two comes first the order should be created against that only.
    Can anyone please tell how to achieve this.
    I have thought of two options though they dont look good:
    Option 1: Create two maintenance plan. Delete/TECO the extra order generated.
    Option 2: Create one maintenance plan with multiple counters, one for running hours and the other for calendar days. Keep OR relation. But here we need to update calendar days counter every day which is not feasible.
    Thanks
    Geravine

    Hi...
    First of all you have to create the Measuring Counter for your Pump using the T.code IK01 and then post the initial measurement  document against the measuring counter using T.code IK11.
    After above create the Cycle set for Multiple counter using T.Code IP11Z, and define the Cycle for your Multiple Counter Plan.
    In your condition, define the cycle length as "2" and UOM as "MON" and second cycle length as "200" and UOM as "HRS" and also provide the short text for Cycle short text as per you convenience. This is one time activity.
    Then create the Multiple counter Plan using the T.Code IP43 and cycle set created in earlier step. Provide the Technical Object i.e. Pump (Most probably Equipment) all other details are copied from it. Enter the created Measuring Counter for your Technical Object in the Maintenance Plan Cycle Tab against the 200 Hrs Row in Counter Columns. In the Second Tab i.e. Maintenance Plan scheduling parameter Choose "OR" Link . Enter the value Scheduling Period which help you to show the future plan in advance.
    And as per requirement you can also check the box  available for Completion Requirement, Check the box if you required that New Maintenance Order  will not be generate until the previous order is get closed.
    Hope this will resolve your query

  • Problem with multiple counter plan containing running hrs and no of months

    Hey gurus,
    In my project the preventive maintenance of compressor is such that it is performed after 500 hrs or 6 months whichever comes first. Now i ve created a cycle set cosisting of 500 hrs and 6 months. In the multiple counter plan i ve assigned a counter to the plan for calculating 500 hrs and chosen the link as OR. I scheduled the plan and given the start date as 01.05.09. Now I am facing the following problem:
    Suppose my counter value reaches the 500 mark on 01.08.09. Now a maintenance order is generated. My client now wants that the next order should be generated after the counter reading reaches 1000 or the date reaches 01.02.10, ie, the order should be generated for next 500hrs or NEXT 6 MONTHS from
    the date of completion of first cycle, whichever comes first.
    Pls help....
    Regards,
    Abhishek

    Hi
    If u have scheduled ur plan according to cycle set. It will take the Point of contact as 6 months.
    OK
    Ex : Cycle set : 500 hrs and 6 months, maintained OR functions
    i have entered the measurement reading as 500.. thats why, it gives the call for todays date...
    see the next date will be after 6 months... If u update the measuring point only, it will open a order... otherwise.. once u have scheduled it for 6 months.. once in 6 months it will give a order...
    1     11.05.2009               0     New start  Save to call
    2     07.11.2009     07.11.2009          0     Scheduled  Hold
    3     06.05.2010     06.05.2010          0     Scheduled  Hold
    4     02.11.2010     02.11.2010          0     Scheduled  Hold
    5     01.05.2011     01.05.2011          0     Scheduled  Hold
    6     28.10.2011     28.10.2011          0     Scheduled  Hold
    7     25.04.2012     25.04.2012          0     Scheduled  Hold
    Schedule for a long period.. u will be able to understand the scenario...
    - Pithan

  • How do I use a counter to measure frequency and multiple analog signals in the same VI?

    I have a PCI-6071E, an SC-2345 with multiple modules, and a PXI-8184 (with a PXI-1002 Chassis).
    My goal is to monitor pressures, flows, temperatures, and speed in one VI.
    I am using Measurement and Automation Explorer version 3.1.1.3004 to manage my channels.
    My speed is a PWM signal which I recently rewired through the counter 0 of my board.
    I was hoping to configure this to read frequency directly in measurment
    and automation, have this scale the value to RPM, and then feed it
    directly in to my labView program.
    In labView, it will not except this signal though.
    I get error -200300 from the DAQmx Start Task.vi
    Possible reasons(s):
    Invalid timing type for this channel.
    Property: SampTimingType
    You Have Requested: Sample Clock
    You Can Select: Implicit, On Demand
    After doing some research, it seems that the counter wants "Implicit"
    selected for the DAQmx Start Task.vi, but then I cannot use my other
    channels. Also, counter is included in the "Sample Clock" option
    description, so I do not understand why it is not working.
    Does anyone know how to work around this problem or a way to configure the counter so that it will work in this way?
    All my other channels are Analog.
    Thank you.

    I am working on getting just the counter working by using
    the program posted previously, and I am running into issues. Periodically I get
    the error:
    Error -200141
    occurred at DAQmx Read (Counter DBL 1Chan 1Samp).vi
    Possible reason(s):
    Data was overwritten
    before it could be read by the system.
    If Data Transfer
    Mechanism is Interrupts, try using DMA. Otherwise, divide the input signal
    before taking the measurement.
    It seems to work better if I use cascaded counters, but I need timer 0 for
    analog channels when I run this code along with the program for the other
    measurements.
    I have tried averaging, and selecting different values for the millisecond
    timer, and these did not seem to have an effect.
    I tried different DAQms configurations and "Counter DBL 1Samp" seemed
    to work the best.
    The program will work for a while and then it will give me the above error
    message.
    If I use counter 0 as a cascaded counter input, the program runs fine. If I run
    this with other analog channels, it errors out because the analog channels use
    counter 0.
    If I use counter 1 as a cascaded counter input, it seems to work better than a
    single channel, but it will still error out with the above error.
    If I use only counter 1, I get the error above even faster.
    Also, none of the
    configurations give measurements outside the While Loop.
    The only place I can add a speed dial for the front panel is within the While
    Loop.
    Is there someway to get the signal to continuously send out of the while loop?
    I thought if I could get the signal out of the while loop, I could condition it
    anyway I wanted without the program erroring out.
    Any suggestions would be much appreciated.
    Thank you.
    Attachments:
    Counter_error.jpg ‏45 KB

  • Drilldown and Multiple types of Counts

    We need an operational analytics around Siebel Activities
    Activities dimension are primarily
    - Activity Type
    - Owner
    - Owner Supervisor
    Activity Fact in our case comprises of
    - Count #s
    - Overdue #s [Count where Activity Status = 'Open' AND DUE_DATE < CURRENT_DATE]
    - Due #s [Count where Activity Status = 'Open' AND DUE_DATE = CURRENT_DATE+ 1]
    - Callback #s [Count where Activity Status = 'Open' AND DUE_DATE = CURRENT_DATE+ 1]
    The Answer report should list as follows
    Activity counts (Overdue #s, Due #s, Callback #s) should be listed for a call center Owner supervisor - This does not seem to be a problem
    Drilling on Call Center Owner Supervisor, the report should show counts for each individuals or Owner under Call Center supervisor - This does not seem to be a problem
    But the business is expecting one more drilldown, Ability to click on Individual or Owner and display Overdue Activity Id's, Due Activity Id's and Call back Activity Id's individually
    Would appreciate your insight as to how to solve this. Can this be solved by Narratives? Can we show three drilldown, one for each count ? Please help

    Hi,
    Instead of using drill down you can create two diffrent drilled reports.On click of Owner supervisor navigate to first report containing individual or owner and respective counts.From that report navigate to next report which will have Overdue Activity Id's, Due Activity Id's and Call back Activity Id's.
    Put necessary columns as is prompted so that context from parent report is passed to child report.
    Thanks
    Sandeep

  • Plant Maintenance - Measuring Point Counter Replacement

    Dear Expert,
    I had created Measuring Point which is cumulative in nature and the Counter Overflow reading is 999999. Suppose the last reading was 999900. Now my today reading is 500 then system is showing total counter reading 10000400.
    My question is "how system will replace the counter reading as 401 automatically instead of 10000400". I don't want to replace the counter manually. Please guide me where i have to do configuration for this or what is best way to do it.
    Thanks & Regards
    Rajiv Ranjan

    Hi Thyagu,
    Thanks for your reply and valuable suggestion.
    My question is how the Total Counter Reading will become zero and start from zero when it overflow.
    For example :
    Lets Counter Over Flow Reading is 100
    total counter reading on 8th august is 90.
    on 9th august the difference is 40, then Counter reading become 30 and TotalCtrReading               is 130. I want TotalCtrReading should show 30 instead of 130. how to do it?
    Regards,
    Rajiv Ranjan

  • Getting run time error for multiple counter plan

    Hi Friends,
    Its very critical issue,wherein i am getting run time error for multiple counter plan.
    Explanation:While try to change the Call horizon or scheduling period of the counter based plan through IP42 or IP15,systam allowing me to change the data but while saving also i am getting "Maintenance plan has changed" message and once come to the back of the transaction instantly i am getting pop up window saying that "Express document get terminated".However we have been maintaining copy of this data in another client wherein we are not getting any Run time error.
    Please find the screen shots for your reference and please let me know how to fix the issue.
    Regards,
    Srinika

    Hi,
         Please check reason for update termination in Transaction code SM13.

  • Apple notebook batteries – maintenance and troubleshooting

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    Apple notebook batteries – maintenance and troubleshooting
    Apple notebook computers use lithium-polymer (MacBooks and MacBook Pros) or lithium-ion (PowerBooks and iBooks) batteries as a portable power source. The newest members of the MacBook Pro lineup have built-in (non-removable) batteries, which are physically larger and use a modified charging scheme for a longer lifespan – you can read more about them on this linked page. The following tips should help you get the most use out of your battery, and help with troubleshooting if you are experiencing problems. A short list of do’s and don’ts is followed by more detailed information, for those who want the details.
    *Do’s & Don’ts*
    DO use your battery frequently and lightly, ideally completing 1-2 charge cycles per week (minimum one charge cycle per month).
    DO properly calibrate your battery when new and approximately every 2-3 months thereafter.
    DON’T fully discharge your battery frequently (the infrequent, periodic calibration is an exception).
    DON’T store your battery (or your computer) in a high temperature environment, such as the trunk of a car, especially a fully-charged battery.
    DON’T run your MacBook or MacBook Pro on AC power with the battery removed.
    *Usage Pattern*
    Lithium-based batteries function best when used fairly frequently but lightly. Apple states +"An ideal use would be a commuter who uses her MacBook Pro on the train, then plugs it in at the office to charge. This keeps the battery juices flowing."+ Note that there is no "memory effect" for lithium-based batteries, unlike nickel-based batteries (NiCd, NiMH) which perform best when fully discharged then fully charged. It is best not to completely discharge your battery, with the exception of calibrating it (see below). It is also not a good idea to run on AC power all the time. Note that when you are running on AC power, there is no danger of "overcharging" your battery – the Mac will not initiate charging of the battery if the current charge is 95% or higher, as described in this kbase article. Basically, a good rule to thumb is to run on AC power much of the time, but run on battery power for a while a few times per week. Using the battery for 2 full charge cycles per week equates to 300 cycles in 3 years, which is the optimal use. An explanation of a "full charge cycle" can be found on this page. Note that for Apple portables with a removable battery, you _should not_ run a MacBook or MacBook Pro on AC power with the battery removed - Apple strongly recommends against this for two reasons: first, the risk of lost data and damage to the hard disk directory structure if the MagSafe plug is accidentally disconnected, and second, the computer will reduce the CPU processor speed. The latter is due to the fact that the CPU will sometimes (for brief periods) require more power than the AC adapter can provide, and the additional power is drawn from the battery; the OS throttles back the CPU to avoid this situation.
    Calibration
    The battery has an integrated microchip that acts as a "fuel gauge." Calibration resets this gauge, which allows the OS to better determine times to charge and discharge the battery. Calibration should be done approximately every two months. Failure to do so for a long period of time can result in the microchip "fuel gauge" in the battery losing the ability to accurately determine the remaining charge, and it will report that there is more charge in the battery than is actually present. As a result, the computer will not initiate Safe Sleep at the proper time, and instead undergo a hard shut down, one of the main causes of hard drive directory damage. Once the battery is in the state resulting from a failure to calibrate, it is not possible to calibrate the battery, and it will need to be replaced. For Apple portables with removable batteries, note that Apple specifies, +"A _properly maintained_ Apple notebook battery is designed to retain up to 80% of its original capacity at 300 full charge and discharge cycles."+ For MacBook Pros with built-in batteries, the battery should maintain 80% of it’s original capacity for 1000 cycles. Calibration is considered part of proper maintenance.
    *Battery Life and Battery Lifespan*
    Battery life is how long the battery will power the computer on a full charge. To maximize battery life, consider turning down the brightness of the display, which is one of the major power consumers in a notebook computer, and if you don’t need Bluetooth and/or Airport connectivity, consider turning those off as well. Apple offers these suggestions for maximizing notebook battery life. In practice, battery life is usually somewhat less that stated in the specifications for the various Apple notebook computer models – Apple’s testing of ‘wireless productivity’ is likely limited to browsing simple websites and basic word processing. During ‘real world’ use, battery life will normally be in the range of 1-3 hours less than the specified battery life, depending on model, usage and activity. If life is shorter than expected, see the Health and Troubleshooting sections below. Battery lifespan is how many cycles/years the battery will hold sufficient charge to power the computer for a reasonable time. For Apple portables with removable batteries, a properly maintained lithium-based battery will last approximately 400-500 charge cycles or 3-4 years, +whichever comes first+. Note that this means even an unused battery loses capacity, due to the continuous nature of the chemical reaction and the buildup of oxidation in the cells. For MacBook Pros with built-in batteries, Apple’s ‘adaptive charging’ results in a significantly longer battery lifespan.
    *Battery Health*
    You can check the condition of your battery using System Profiler (Apple menu > About this Mac > More Info > Power section). The relevant numbers are Full Charge Capacity and Cycle Count. Mac OS 10.5 Leopard also provides a readout of battery Condition (not available in 10.4 Tiger), based on those parameters. “Health” refers to the full charge capacity of a battery relative to the nominal full charge capacity of a new battery, expressed as a percentage. Programs such iStat and CoconutBattery report the health, or you can calculate it manually: full charge capacity from System Profiler / nominal new full charge capacity * 100. For Intel-based Mac portables, nominal new full charge capacities are:
    MacBook (Original, removable battery) - 5093 mAh
    MacBook (Late 2008, removable battery) - 4167 mAh
    13” Macbook Pro (Mid-2009, built-in battery) - 5478 mAh
    15" MacBook Pro (Original, removable battery) - 5556 mAh
    15" MacBook Pro (Late 2008, removable battery) - 4630 mAh
    15” Macbook Pro (Mid-2009, built-in battery) - 6665 mAh
    17" MacBook Pro (Original, , removable battery) - 6296 mAh
    17” Macbook Pro (Mid-2009, built-in battery) - 13015 mAh
    Note that health-reporting widgets (iStat Pro, CoconutBattery) use rounded values for the denominator of ‘health’. The above values are calculated from the wattage of the batteries (45 Wh to 95 Wh, see the specifications for each model, which can be found here or here) and their voltage (10.8 V for all removable batteries, 10.95 V for the 13” and 15” built-ins, and 7.3 V for the 17” built-in; those values are printed on the batteries); these capacities are nominal, and in practice new batteries will have full charge capacities that are slightly higher or lower than those values. PowerBooks and iBooks have batteries ranging from 45 Wh to 61 Wh - specs for individual models can be found here or here); these Li-ion batteries are all 10.8 V, so nominal new full charge capacity can be calculated by multiplying battery Wh x 92.6. (For the curious or algebraically-inclined, 92.6=1000/10.8, which converts Wh to mWh and divides by voltage to yield mAh, based on I=P/V derived from Ohm’s law). When Apple specifies, +"A properly maintained Apple notebook battery is designed to retain up to 80% of its original capacity at 300 full charge and discharge cycles,"+ they are referring to 80% health. Please note that health fluctuates from cycle to cycle, depending on factors such as the pattern of charging within recent cycles, ambient temperatures during use, and time since last calibration. It is normal for health to move up and down within a range of ~10% (e.g. between 86% and 96% over time).
    *Troubleshooting – short battery life and sudden shutdowns*
    If battery life is unacceptably short, it may be due to a background process that is running a high percentage of CPU activity. Check Utilities > Activity Monitor > CPU tab, set the pop-up menu to Active Processes, click on the CPU column to sort, and see if anything is using a high amount of CPU capacity. Short life and sudden shutdowns may also be due to a defective or an old battery - check the battery health and cycle count. If the cycle count is in the 400-500 range (or higher) for removable batteries, the battery has exceeded its useful life, and needs to be replaced. This does not indicate a defective battery - batteries are considered a consumable part, and need to be replaced at the end of their useful life. If the cycle count is less than 300, and the health is less than 80%, the battery may be defective - this applies primarily to the newer, Intel-based Mac portables. For a certain period of time (a rather long period, in fact), Sony produced defective batteries (both Li-polymer and Li-ion) - this issue affected many laptops (Apple, Toshiba, Dell, etc.) that use batteries manufactured by Sony. Apple officially acknowledged these defects for Intel-based notebook computers, as stated on this page, and extended the battery warranty to two years from date purchase for all Core Duo machines bought between February 2006 and April 2007. Battery Update 1.2 was designed to test batteries and expose defects. Note that there were actually two battery replacement programs from Apple concerning Intel-based Macs – both programs are _now officially closed_. One was an exchange/recall for specific serial numbers, and applied only to a relatively small number of 15” MacBook Pros; the other was the more general replacement program for the defective Sony batteries. There was also an exchange/recall for battteries in the 12" iBook G4 and 12"/15" PowerBook G4, also due to manufacturing problems at Sony (these were the batteries with a safety risk).
    Following the above steps should ensure a long and useful life for the battery in your Apple notebook computer. Hope this helps...
    This is the 2nd version of this tip. It was submitted on July 13, 2009 by neuroanatomist.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    Apple notebook batteries – maintenance and troubleshooting
    Apple notebook computers use lithium-polymer (MacBooks and MacBook Pros) or lithium-ion (PowerBooks and iBooks) batteries as a portable power source. The newest members of the MacBook Pro lineup have built-in (non-removable) batteries, which are physically larger and use a modified charging scheme for a longer lifespan – you can read more about them on this linked page. The following tips should help you get the most use out of your battery, and help with troubleshooting if you are experiencing problems. A short list of do’s and don’ts is followed by more detailed information, for those who want the details.
    *Do’s & Don’ts*
    DO use your battery frequently and lightly, ideally completing 1-2 charge cycles per week (minimum one charge cycle per month).
    DO properly calibrate your battery when new and approximately every 2-3 months thereafter.
    DON’T fully discharge your battery frequently (the infrequent, periodic calibration is an exception).
    DON’T store your battery (or your computer) in a high temperature environment, such as the trunk of a car, especially a fully-charged battery.
    DON’T run your MacBook or MacBook Pro on AC power with the battery removed.
    *Usage Pattern*
    Lithium-based batteries function best when used fairly frequently but lightly. Apple states +"An ideal use would be a commuter who uses her MacBook Pro on the train, then plugs it in at the office to charge. This keeps the battery juices flowing."+ Note that there is no "memory effect" for lithium-based batteries, unlike nickel-based batteries (NiCd, NiMH) which perform best when fully discharged then fully charged. It is best not to completely discharge your battery, with the exception of calibrating it (see below). It is also not a good idea to run on AC power all the time. Note that when you are running on AC power, there is no danger of "overcharging" your battery – the Mac will not initiate charging of the battery if the current charge is 95% or higher, as described in this kbase article. Basically, a good rule to thumb is to run on AC power much of the time, but run on battery power for a while a few times per week. Using the battery for 2 full charge cycles per week equates to 300 cycles in 3 years, which is the optimal use. An explanation of a "full charge cycle" can be found on this page. Note that for Apple portables with a removable battery, you _should not_ run a MacBook or MacBook Pro on AC power with the battery removed - Apple strongly recommends against this for two reasons: first, the risk of lost data and damage to the hard disk directory structure if the MagSafe plug is accidentally disconnected, and second, the computer will reduce the CPU processor speed. The latter is due to the fact that the CPU will sometimes (for brief periods) require more power than the AC adapter can provide, and the additional power is drawn from the battery; the OS throttles back the CPU to avoid this situation.
    Calibration
    The battery has an integrated microchip that acts as a "fuel gauge." Calibration resets this gauge, which allows the OS to better determine times to charge and discharge the battery. Calibration should be done approximately every two months. Failure to do so for a long period of time can result in the microchip "fuel gauge" in the battery losing the ability to accurately determine the remaining charge, and it will report that there is more charge in the battery than is actually present. As a result, the computer will not initiate Safe Sleep at the proper time, and instead undergo a hard shut down, one of the main causes of hard drive directory damage. Once the battery is in the state resulting from a failure to calibrate, it is not possible to calibrate the battery, and it will need to be replaced. For Apple portables with removable batteries, note that Apple specifies, +"A _properly maintained_ Apple notebook battery is designed to retain up to 80% of its original capacity at 300 full charge and discharge cycles."+ For MacBook Pros with built-in batteries, the battery should maintain 80% of it’s original capacity for 1000 cycles. Calibration is considered part of proper maintenance.
    *Battery Life and Battery Lifespan*
    Battery life is how long the battery will power the computer on a full charge. To maximize battery life, consider turning down the brightness of the display, which is one of the major power consumers in a notebook computer, and if you don’t need Bluetooth and/or Airport connectivity, consider turning those off as well. Apple offers these suggestions for maximizing notebook battery life. In practice, battery life is usually somewhat less that stated in the specifications for the various Apple notebook computer models – Apple’s testing of ‘wireless productivity’ is likely limited to browsing simple websites and basic word processing. During ‘real world’ use, battery life will normally be in the range of 1-3 hours less than the specified battery life, depending on model, usage and activity. If life is shorter than expected, see the Health and Troubleshooting sections below. Battery lifespan is how many cycles/years the battery will hold sufficient charge to power the computer for a reasonable time. For Apple portables with removable batteries, a properly maintained lithium-based battery will last approximately 400-500 charge cycles or 3-4 years, +whichever comes first+. Note that this means even an unused battery loses capacity, due to the continuous nature of the chemical reaction and the buildup of oxidation in the cells. For MacBook Pros with built-in batteries, Apple’s ‘adaptive charging’ results in a significantly longer battery lifespan.
    *Battery Health*
    You can check the condition of your battery using System Profiler (Apple menu > About this Mac > More Info > Power section). The relevant numbers are Full Charge Capacity and Cycle Count. Mac OS 10.5 Leopard also provides a readout of battery Condition (not available in 10.4 Tiger), based on those parameters. “Health” refers to the full charge capacity of a battery relative to the nominal full charge capacity of a new battery, expressed as a percentage. Programs such iStat and CoconutBattery report the health, or you can calculate it manually: full charge capacity from System Profiler / nominal new full charge capacity * 100. For Intel-based Mac portables, nominal new full charge capacities are:
    MacBook (Original, removable battery) - 5093 mAh
    MacBook (Late 2008, removable battery) - 4167 mAh
    13” Macbook Pro (Mid-2009, built-in battery) - 5478 mAh
    15" MacBook Pro (Original, removable battery) - 5556 mAh
    15" MacBook Pro (Late 2008, removable battery) - 4630 mAh
    15” Macbook Pro (Mid-2009, built-in battery) - 6665 mAh
    17" MacBook Pro (Original, , removable battery) - 6296 mAh
    17” Macbook Pro (Mid-2009, built-in battery) - 13015 mAh
    Note that health-reporting widgets (iStat Pro, CoconutBattery) use rounded values for the denominator of ‘health’. The above values are calculated from the wattage of the batteries (45 Wh to 95 Wh, see the specifications for each model, which can be found here or here) and their voltage (10.8 V for all removable batteries, 10.95 V for the 13” and 15” built-ins, and 7.3 V for the 17” built-in; those values are printed on the batteries); these capacities are nominal, and in practice new batteries will have full charge capacities that are slightly higher or lower than those values. PowerBooks and iBooks have batteries ranging from 45 Wh to 61 Wh - specs for individual models can be found here or here); these Li-ion batteries are all 10.8 V, so nominal new full charge capacity can be calculated by multiplying battery Wh x 92.6. (For the curious or algebraically-inclined, 92.6=1000/10.8, which converts Wh to mWh and divides by voltage to yield mAh, based on I=P/V derived from Ohm’s law). When Apple specifies, +"A properly maintained Apple notebook battery is designed to retain up to 80% of its original capacity at 300 full charge and discharge cycles,"+ they are referring to 80% health. Please note that health fluctuates from cycle to cycle, depending on factors such as the pattern of charging within recent cycles, ambient temperatures during use, and time since last calibration. It is normal for health to move up and down within a range of ~10% (e.g. between 86% and 96% over time).
    *Troubleshooting – short battery life and sudden shutdowns*
    If battery life is unacceptably short, it may be due to a background process that is running a high percentage of CPU activity. Check Utilities > Activity Monitor > CPU tab, set the pop-up menu to Active Processes, click on the CPU column to sort, and see if anything is using a high amount of CPU capacity. Short life and sudden shutdowns may also be due to a defective or an old battery - check the battery health and cycle count. If the cycle count is in the 400-500 range (or higher) for removable batteries, the battery has exceeded its useful life, and needs to be replaced. This does not indicate a defective battery - batteries are considered a consumable part, and need to be replaced at the end of their useful life. If the cycle count is less than 300, and the health is less than 80%, the battery may be defective - this applies primarily to the newer, Intel-based Mac portables. For a certain period of time (a rather long period, in fact), Sony produced defective batteries (both Li-polymer and Li-ion) - this issue affected many laptops (Apple, Toshiba, Dell, etc.) that use batteries manufactured by Sony. Apple officially acknowledged these defects for Intel-based notebook computers, as stated on this page, and extended the battery warranty to two years from date purchase for all Core Duo machines bought between February 2006 and April 2007. Battery Update 1.2 was designed to test batteries and expose defects. Note that there were actually two battery replacement programs from Apple concerning Intel-based Macs – both programs are _now officially closed_. One was an exchange/recall for specific serial numbers, and applied only to a relatively small number of 15” MacBook Pros; the other was the more general replacement program for the defective Sony batteries. There was also an exchange/recall for battteries in the 12" iBook G4 and 12"/15" PowerBook G4, also due to manufacturing problems at Sony (these were the batteries with a safety risk).
    Following the above steps should ensure a long and useful life for the battery in your Apple notebook computer. Hope this helps...
    This is the 2nd version of this tip. It was submitted on July 13, 2009 by neuroanatomist.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

  • Ordering of objects by more than one field and get counts

    i have an object visit (personid, city, street, place, date)
    A person could have visited a same place in the same strret in the same city several times on different dates.
    I have a visits 'Set' for a person and I have to get a count of visits he has done to a place..
    its basically select count(visits) group by city, street , place.
    I know to use interface comparator for a single field.. how to compare multiple fields and get counts??
    if you know abt where i can find information please let me know.
    Thanks.

    For multiple fields, your comparator compares the most significant field first. If they're unequal, it returns +/- accordingly. If they're equal, then it moves on to the next field. And so on, until, finally, if all the relevant fields are equal, then the objects are equal.
    Just like what you do when comparing, say, last names. If the first letters are unequal, you're done, else move onto the next letter, and so on..
    For the count, you wouldn't use a comparator, as that's for sorting. Exactly how you do it depends on the details of what you're storing and how, which you haven't provided.

  • Multiple count query

    I'm trying to write a function to compare two different counts.
    I have patient on multiple drugs...some drugs are allergy drugs and at least one allergy drug must be marked as primary.
    select count(drug_role) as vAllergyCount, count(primary_flag) as PF, ap.patient_id
    from ae_all_drugs aed, ae_patient ap
    where drug_role = 'Allergy'
    and aed.patient_id = ap.patient_id
    and ap.patient_id like '2012%'
    group by ap.patient_id,primary_flag
    order by ap.patient_id
    when grouped by patient id and primary flag I would receive a record like this:
    VAlllergyCount | PF | patient_id
    1 | 0 | 2012AB1
    3 | 1 | 2012AB1
    If i only group by patient_id I get this (which is what I want):
    VAlllergyCount | PF| patient_id
    4 | 1 | 2012AB1
    But if I try to compare the two:
    IF vAllergyCount > 1 and PF = 1 THEN 'SUCCESS' ELSIF 'FAIL'
    I receive the error message "exact fetch returns more than requested number of rows" becuase the results are really my first query.
    Can anyone help me re-write my query to compare the values?
    P.S. I'm very new to this and this forum and I apologize for not inserting code tags. I don't know how.

    Hi,
    979105 wrote:
    Thank you for your hlep.
    I need to write a function because the SQL query is going to be used as an edit check for another program. So yes, it will have to worth my time.
    You are correct. I have a patient on multiple drugs. I want to know if there is at least one allergy drug (drug_role) > 1 if there is at least ONE primary allergy drug.
    I did initially write my function with the patient_id as an input value. Why would I not need the vAllergyCount or the pf if that is an argument?If all you want to know is 'SUCCESS' or 'FAIL', then write a query that produces 'SUCCESS' or 'FAIL'. Inside the query, it may be handy to have something like vAllergyCount or pf, but that doesn't mean that they will be returned by the query, or that you need PL/SQL variables for them.
    Here's my original function:That's a PROCEDURE, not a function. Sometimes, people use the word "procedure" lossely, to mean any kind of stored code, including functions, but never the other way around.
    \Don't forget to put another \ tag at the end of the formatted section.
    \ tags are supposed to occur in pairs. If you have an odd number of \ tags, the last one has no effect, and is displayed as regular text.
    PROCEDURE COUNT_ALLERGY_MED (
         ivPatient_ID IN VARCHAR2,
         ovErrorText          OUT     VARCHAR2 )
    IS
         vCase_ID          VARCHAR2 (25);
         vSusCount           NUMBER (3);
         vSuspectMed          VARCHAR2 (1);
         --vPrimaryFlag     VARCHAR2(1);
    cursor c1 is
         select count(*) as vSusCount
         from ae_suspect_drugs aed
         where drug_role = 'S'
         and aed.case_id = ivCase_ID
         --group by ivcase_id;
    BEGIN
    open c1;
    fetch c1 into vSusCount;
    close c1;
    IF vSusCount < 1 /*AND vPrimaryFlag IS NULL*/ THEN
         ovErrorText := 'Suspect Drug Count is less than 1' || 'SusCount: ' || vSusCount;
         ELSIF vSusCount = 1 /*AND vPrimaryFlag IS NULL*/ THEN
         ovErrorText := 'Suspect Drug count is equal to 1' || 'SusCount: ' || vSusCount;
         ELSIF vSusCount > 1 /*AND vPrimaryFlag IS NULL*/ THEN
         ovErrorText := 'Suspect Drug count is greater than 1 ' || 'SusCount: ' || vSusCount;
         ELSE
         ovErrorText := 'All criteria met';
    END IF;
    END COUNT_SUSPECT_MED;It seems like it would be more convenient to have a FUNCTION, rather than a PROCEDURE; that way you could call the function directly in a SQL statement (e.g., in the WHERE clause of a query or DML statement) as well as in PL/SQL.
    The procedure you posted seems to be quite a bit differetn from the problem you asked eariler.
    Here's one way you might write a fucntion for the earlier problem:CREATE OR REPLACE FUNCTION count_allergy_med
    ( ivPatient_ID IN VARCHAR2
    RETURN VARCHAR2
    IS
    return_str VARCHAR2 (50);          -- To be returned
    BEGIN
    SELECT CASE
         WHEN COUNT (drug_role) > 1
              AND COUNT (primary_flag) = 1
              THEN 'SUCCESS'
              ELSE 'FAIL'
         END     
    INTO return_str
    FROM ae_all_drugs     aed
    ,      ae_patient           ap
    WHERE drug_role          = 'Allergy'
    AND     aed.patient_id      = ap.patient_id
    AND     ap.patient_id     = ivPatient_ID;
    RETURN return_str;
    END count_allergy_med;
    Notice that there are no columns in the result set, nor variables in the function, that correspond to vAllergyCount or pf.
    The function above returns 1 of 2 possible values.  You couold just as well write a function that had 4 possible outcomes, or 4 basic results, each containing a variable number, such asSuspect Drug Count is less than 1. SusCount: 0
    I'm not sure why you would want such as result, since 0 is the only possible count that is less than 1, but it's easy enough to produce results like that if you really want them.
    Once again, if you'd like help, post a clear example of what you want.  Include CREATE TABLE and INSERT statements for some sample data.  Post some code where you might use the function that you're thinking of.  Give a couple of different arguments for that functuion, and the results you would want for each argument given the same sample data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Maintenance Plan - Multiple Frequencies

    Hey,
    I need to create a Maintenance Plan with multiple items and multiple frequencies.  Is this possible ie.
    1 x Maintenance Plan
    2 x Items
    Item 1 - 2months
    Item 2 - 6monhths.
    What I want is for the 2 monthly to come out twice and then when the 6 monthly is due, I want to suppress the 2 monthly Item.
    How do I do this???
    Grateful for any assistance.
    Cheers,
    Liz

    Hi Pete,
    Thanks heaps for your reply.
    Please correct me if I'm wrong.  I have since posting my question created a 'test' Maintenance Plan using a hierachy Strategy.  One item was monthly and the other 3 monthly.  I have scheduled the item (in a testing client), and it is showing that the monthly maintenance item is coming out every 2 out of 3 months.  When the 3 monthly item is due the monthly item is not being called.
    This seems to differ from your response.  Can you please confirm. 
    Thanks again,
    Lizzy

Maybe you are looking for