Hi Guys
I think I need a pointer. How do I 'capture' an 'operator'?
When I want a DEC NUM1 sent I can see how [DEC NUM1] receives a decimal number. From the manual WAIT ( ) seems to be the best fit for an 'operator' or maybe something like CHAR " "
Here's a section of the program:
Code:OP VAR BYTE MAIN: PAUSE 7000 SEROUT2 PORTC.3, 16780, ["Please send NUM1", 10, 13] PAUSE 500 HIGH PORTA.5 'Shows request sent PAUSE 1000 LOW PORTA.5 PAUSE 250 SERIN2 PORTC.5, 16780, [DEC NUM1]'MODE 16780 = 2400 BAUD INVERTED PAUSE 500 HIGH PORTA.5 'Shows data arrived PAUSE 1000 LOW PORTA.5 PAUSE 250 SEROUT2 PORTC.3, 16780, ["Please send Operator + - * /"][WAIT OP( ),] PAUSE 500 HIGH PORTA.5 'Shows request sent PAUSE 1000 LOW PORTA.5Here's were I'm strugglingDaveCode:SEROUT2 PORTC.3, 16780, ["Please send Operator + - * /"][WAIT OP( ),]




Bookmarks