Download manual for maxdde
Transcript
Item Words Item Words are Max-Forth words that respond to DDE items. They are divided into two types of words: [itemsReceived], that is items that MAXDDE expects a numeric response from , and [itemsSent], or items that MAXDDE expects to Poke or Set to a new value. All [itemsReceived] words must end with a display value response. : V_1 ( -- ) B000 C@ . ; Word V_1 will read the contents of address B000 and display the value. Because this is an item to be received by MAXDDE, MAXDDE expects to receive the following text string: V_1 nnn OK<cr><lf> where nnn is a number or some text. (Remember that Max-Forth echoes the characters that it receives while interpreting.) The response between the word (V_1 in our example) and the OK can be up to 32 characters in length. The response value does not have to be a number as shown in the above V_1 example. All [itemsSent] must expect a value and simply return. : V_2 ( n -- ) B000 C! ; When V_2 is run it will set a number into address B000. Because this is an item to be sent by MAXDDE, MAXDDE transmits the following string: nnn V_2<cr> where nnn is a number, and receives back nnn V_2 OK<cr><lf> MAXDDE uses the correct echoing back of commands and the presence of OK at the end of the received message to validate the packet. 8