November 23, 2024, 02:54:22 AM

News:

Be sure to checkout our Vixen interfaces in the Library forum -- if you want PC automation at near zero cost, EFX-TEK and Vixen is a great combination of tools.


# vs PIN#

Started by dgme, January 18, 2012, 01:52:50 PM

Previous topic - Next topic

dgme

What is the difference between setting an I/O definition to a # vs PIN#?  The Prop-1 template code uses

SYMBOL  Sio             = 7                     ' SETUP = out; no ULN
SYMBOL  Trigger         = PIN6                  ' SETUP = DN

so why is one 7 and the other is PIN6?  I have a solenoid on pin 2 so I wrote SYMBOL Solenoid = PIN2 but it wasn't right.  I changed it to Solenoid = 2 and that works.  Can someone explain whats going on here?

JonnyMac

This thread explains it: http://www.efx-tek.com/php/smf/index.php?topic=1773.0

The X versus PINX thing is one of the trickiest aspects of the Prop-1, especially for those that do not have -- and really don't want to acquire -- and embedded programming background.
Jon McPhalen
EFX-TEK Hollywood Office

dgme

Oh shoot, I missed a sticky.  I need to search better.  Thank you for the quick reply; I think I get it now.