TECHNICAL DESCRIPTION MULTICAL
®
401
5512-091 GB/02.2008/Rev. J1
54
12.4 Communication driver
To develop your own software for data communication, e.g. between a PC and MULTICAL
®
401, below pseudo
code can be used as a draft. The example shows a request for /#1:
mscomm1.Settings = "300,E,7,2"
mscomm1.InBufferCount = 0
mscomm1.Output = "/#1"
Do While mscomm1.OutBufferCount <> 0
Handle Windows Events
Loop
Delay for 300 ms
mscomm1.Settings = "1200,E,7,2"
mscomm1.InBufferCount = 0
mscomm1.InputLen = 1
strData = ""
While mscomm1.InBufferCount > 0
strData = strData & mscomm1.Input
Handle Windows Events
Wend
In connection with development of the concrete communication driver, above can only be used as an example of
the essential commands, whereas e.g. ”timers” and ”flags” are omitted for clarity.