User manual

Klinkmann Automation SPA Bus Server 33
SPA Server Ver 1.x User Manual Rev 2.3 120XXM23
=TERMINATE(channel)
Closes the channel at the end of the macro. Some applications have a limited number of
channels. Therefore they should be closed when finished. Channel is the channel
number returned by the previously executed INITIATE function.
=RETURN()
Marks the end of the macro.
The following is an example of Excel macro used to poke value from cell B2 to topic
node1 item iv0.3:
PokeMacro -Ctrl a
=INITIATE("SPA","node1")
=POKE(A2,"iv0.3",B2)
=ON.TIME(NOW()+0.01,"TerminateDDEChannel")
=RETURN()
TerminateDDEChannel
=TERMINATE(A2)
=RETURN()
Note: Refer to the Microsoft Excel manual for complete details on entering Remote
Reference formulas for cells