Shop OBEX P1 Docs P2 Docs Learn Events
VBA to BS2 - Success!! — Parallax Forums

VBA to BS2 - Success!!

AImanAIman Posts: 531
edited 2006-11-20 15:16 in General Discussion
Finally, EXCEL XP will recognize my stamp!!

I am not quite sure how, but it does. So from what I can put together the code is something like follows.

RS232.comport = activecell.value
RS232.Settings = Activecell.value + str$
RS232.DTREnable = False
RS232.PortOpen = True
Activecell.value = RS232.input
RS232.outpout = Activecell.offset(1,0).value

I think I messed up on a few lines but thats the jist of it.

I don't know if this is worded correctly but it something like this is my question.

Why do the pin values need to increase in binary value?
Example:
Value of IN1 = value + 128
Value of in2 = value + 64

Comments

  • metron9metron9 Posts: 1,100
    edited 2006-11-20 15:16
    Because the IN0 through in15 variables are BIT names.

    In0 through IN7 represent 8 bits in a byte of memory

    The Binary number %11111111 = 128+64+32+16+8+4+2+1

    IN0 is bit zero when set represents 1

    in7 is bit seven and when set represents 128

    INL is the whole byte os if in0 and in7 are set and all other bits are 0 then INL would equal 129 = (128+0+0+0+0+0+0+1) = %10000001

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Think Inside the box first and if that doesn't work..
    Think outside the BOX!
Sign In or Register to comment.