Author Topic: Most BASIC of questions  (Read 9118 times)

Bishop2K

  • Sr. Member
  • ****
  • Posts: 38
    • View Profile
Most BASIC of questions
« on: May 01, 2007, 02:35:09 AM »

I've had a SBC65EC for a few days and have had great experiences with it so far.  Today my IOR5E arrived and I have connected to the two together and assembled them into the case - so correct pin alignments on CON1 and CON2.

No lights appear on the IOR5E on powerup.  Is this normal?  I've searched the forums for info on getting the two working together, but to no avail.  Am I missing something?

The only thing I can think of is that the SBC65EC doesn't work with a 12VDC supply, only 9VDC.

Could this be the problem?

OmarZ

  • Hero Member
  • *****
  • Posts: 243
    • View Profile
Re: Most BASIC of questions
« Reply #1 on: May 01, 2007, 06:04:35 AM »
As i know it works in a wide range of tension...So i think the problem is somewhere else.

Bishop2K

  • Sr. Member
  • ****
  • Posts: 38
    • View Profile
Re: Most BASIC of questions
« Reply #2 on: May 01, 2007, 03:11:17 PM »
Do you need to add code to the SBC65EC firmware and recompile?  I have done nothing in this regard.

OmarZ

  • Hero Member
  • *****
  • Posts: 243
    • View Profile
Re: Most BASIC of questions
« Reply #3 on: May 01, 2007, 10:42:23 PM »
yes! You need to add some code...
Please read forum topics: this is not a customer care hotline...You can find all information you need if you use Search

http://forum.modtronix.com/index.php?topic=126.0
http://forum.modtronix.com/index.php?topic=227.0

« Last Edit: May 01, 2007, 10:50:02 PM by OmarZ »

Bishop2K

  • Sr. Member
  • ****
  • Posts: 38
    • View Profile
Re: Most BASIC of questions
« Reply #4 on: May 02, 2007, 01:54:39 AM »
No you're right, this isn't a customer care line.

I asked nicely and thank you for the reply, but if you don't want to offer help to people who request it don't.  Then you won't have to complain about doing it.
« Last Edit: May 02, 2007, 02:09:22 AM by Bishop2K »

OmarZ

  • Hero Member
  • *****
  • Posts: 243
    • View Profile
Re: Most BASIC of questions
« Reply #5 on: May 02, 2007, 09:29:24 AM »
for basic questions there are basic answers...
so basic answers for basic questions are availabe in that topics.
i think that i'm helping you and i think that for you and all other users it will be nice to avoid create new topics before a simple board/forum search.


1 - read manuals (useful for 90% of basic problems)
2 - search in Forum (useful for 100% of basic problems, for 80% of common problems and for 20% of custom problems)
3 - create new topic entering detail informations of test case

I post too some stupids post, so i understand you.
« Last Edit: May 02, 2007, 09:38:48 AM by OmarZ »

Bishop2K

  • Sr. Member
  • ****
  • Posts: 38
    • View Profile
Re: Most BASIC of questions
« Reply #6 on: May 02, 2007, 06:49:08 PM »
Thanks for the tips.

>> 1 - read manuals (useful for 90% of basic problems)

I have looked extensively for a manual on how to integrate the IOR5E with the SBC65EC and found none here or on the Modtronix website.  Maybe I should have posted "Does anyone know where I can find a manual to make my IOR5E work with my SBC65EC?"

I don't think so.

>> 2 - search in Forum (useful for 100% of basic problems, for 80% of common problems and for 20% of custom problems)

Selecting keywords for this search would be problematic.  The precision would be very low while the recall would be very high considering that the forums are categorised by each board type.  I'm not sure the search algorithm on this board can use the NOT operator or " ", maybe I should look into that.

>> 3 - create new topic entering detail informations of test case

Oh... that's what I did.  And with a title of "Most BASIC of questions" it gave everyone the chance to ignore it if they chose to.
« Last Edit: May 02, 2007, 06:50:54 PM by Bishop2K »


Bishop2K

  • Sr. Member
  • ****
  • Posts: 38
    • View Profile
Re: Most BASIC of questions
« Reply #8 on: May 03, 2007, 03:07:39 PM »
Thank you.  Included them and all compiled OK.

Now to code how to make use of them!  :-D

OmarZ

  • Hero Member
  • *****
  • Posts: 243
    • View Profile
Re: Most BASIC of questions
« Reply #9 on: May 03, 2007, 10:41:38 PM »
first initalize he board (ONLY ONCE)
Code: [Select]
ior5eInit();

Then in your main
Code: [Select]
if ( some_condition_or_other)
{
ior5e.bits.rly1 = 1; // turn on relay 1
ior5e.bits.ledRLY1 = 1; // .. and the associated relay
                 }

// see if relay 4 is on

if (ior5e.bits.rly4 == 1)
{
.
.
.
.


}

// turn everything off

ior5e.Val = 0;

Bishop2K

  • Sr. Member
  • ****
  • Posts: 38
    • View Profile
Re: Most BASIC of questions
« Reply #10 on: May 04, 2007, 04:29:57 AM »

Yes, did that.

Only added...

ior5e.bits.rly1 = 1;      // turn on relay 1
ior5e.bits.ledRLY1 = 1;      // ad the associated LED

to main() but it didn't do anything.

Oh well, I'll hack around a bit more.

Thanks again...