ERROR: Macro MOD?TCB not found in macro file.


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2005
    Posts
    14

    Question ERROR: Macro MOD?TCB not found in macro file.

    ERROR: Macro MOD?TCB not found in macro file.


    Does anyone know what this compile error refers to? It gives no line number or traceable information.

    I've been programming 18F4620 PICs using PBP and a MELABS USB programmer with no other real problems.

    Also, hopefully unrelated, after updating PBP from 2.46 to 2.46a I notice that my version of MCSP changed from version 3.0.0.5 to 2.3.0.0. This confuses me, but I don't know if it's part of the above problem. I really don't understand how the macros work; can someone point me to a reference on Macros.

    John P

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


    Did you find this post helpful? Yes | No

    Default

    ERROR: Macro MOD?TCB not found in macro file.
    Somewhere in your program, you are trying to calculate the Modulus (//) of a BIT variable divided by a CONSTANT.
    DT

  3. #3
    Join Date
    Dec 2005
    Posts
    14


    Did you find this post helpful? Yes | No

    Talking ERROR: Macro MOD?TCB not found in macro file.

    Darryl,

    Thank you!! Thank you!!! Thank you!!!

    Only with your help could I find the problem. There was a problem with calculating a modulus 10. My PCs have been running a little jerky lately and there are 2-3 second pauses between editing keystrokes and displaying that stroke on the screen. I must have inadvertently changed
    Temp10 // 10
    to
    Temp10//

    It was perfectly good code before doing a massive coding change, so I naturally kept going thru the newly changed code looking for my problem instead of the real error.

    Thanks again!!

    John P

  4. #4
    Join Date
    Dec 2005
    Posts
    14


    Did you find this post helpful? Yes | No

    Default ERROR: Macro MOD?TCB not found in macro file. Whooops!!

    Darrel,

    I apologize for mis-spelling your first name. I was so excited after finding my problem that I used my nephews spelling of the name. Sorry

    John P
    Virginia Beach, VA. USA

    PS I didn't notice the error until I was searching for array information and saw your article on EEProm variables. I will download that article because it may help my other prioblem on clearing a whole array with one command. If not, I'm sure there is plenty to learn. Thanks for that article, too.

    John P

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


    Did you find this post helpful? Yes | No

    Default

    No problem John.

    That's the way my brother spells it.

    EE_Vars can't work with arrays, so I'm not sure how much help it will be for you.
    <br>
    DT

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 23:14
  2. PBPro error "Macro USBINIT? not found in macro file"
    By Bonxy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th October 2011, 10:06
  3. Replies: 6
    Last Post: - 4th November 2009, 14:36
  4. Error: macro COUNT?TCT nor found in macro file.
    By AMMOTT in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th November 2007, 06:05
  5. 18F452 "Unknown Processor" errors
    By schwinn_rider in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th April 2006, 04:56

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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