Canary MicroMux Скачать руководство пользователя страница 8

 

Section 2 – MicroMux Operation and Installation 

'Transmit ATDTnn (where nn = radio address), Receive OK (up to 10 seconds) 

SerialOut (Com1,"ATDT0129"+Chr(13),"OK",1,1000) 
Delay(0,1000,mSec) 

 
'Transmit ATCN, Receive OK (wait up to 10 seconds) 

SerialOut (Com1,"ATCN"+Chr(13),"OK",1,1000) 

 
'Wake up the VW Comm - Try for 5 seconds 

ScratchLoc(1) = SerialOut (Com1,"0!","0",50,100) 

 
'Check for valid response 

if ScratchLoc(1) <> 0 then  

 
 

'Send Set Digital Outputs command (Switch to Gage 1) 

 

SerialOut (Com1,"0MM00!","00045",5,50) 

 
 

'Send Set Up VW Start Freq, End Freq, command 

 

SerialOut (Com1,"0M110400350002550500!","00045",5,50) 

 

ScratchLoc(4)= FormatFloat(Channel, "%2g") 

 
 

'Send Set Digital Outputs command (Switch to Gage 1) 

 

SerialOut (Com1,"0MM0"+ScratchLoc(4)+"!","00045",5,50) 

 
 

'Send Take Reading command 

 

SerialOut (Com1,"0M!","00045",5,50) 

 

SerialFlush(com1) 

 

Delay(0,1500,mSec) 

 
 

'Send Get Readings command 

 

SerialOut (Com1,"0D0!","0",5,50) 

 
 

'Receive response  

 

SerialIn(sInBuf,Com1,100,CHR(13),75) 

 
 

'Get length of response buffer 

 

ScratchLoc(3) = Len(sInBuf)  

 

if Len(sInBuf) >= 9 then  

 
 

 

'Split out response values  

 

 

Splitstr(ScratchLoc(4),sInBuf,"",12,0)  

 
 

 

'Convert to reading - may be in Digits, Freq, or Period 

 

 

mlReading=ScratchLoc(4) 

 

Else  

 

 

'No valid response 

 

 

mlReading = -99999 

 

EndIf  

 

 

'Send Set Digital Outputs command (Switch back to Gage 1) 

 

SerialOut (Com1,"0M6000!","00045",5,250) 

Else 

 

'No valid response 

 

mlReading = -99998 

EndIf 

 

'Close our serial port 

SerialClose(Com1)  

 

Содержание MicroMux

Страница 1: ...ans whether directly or indirectly without the written consent of Canary Systems This document is subject to change without notice and Canary Systems assumes no responsibility for errors omissions or...

Страница 2: ...ration Details 4 2 2 Datalogger Connection 5 2 3 Instrument Connection 5 2 4 MultiLogger Software Configuration 5 2 5 CR10X Program Example 6 2 6 CR1000 Program Example 7 2 7 Using the MicroMux with t...

Страница 3: ...irtually infinite channel isolation Warranty is applicable for 2 years from date of shipment Warranty does not cover failure by improper installation misuse or by nature including but not limited to f...

Страница 4: ...nnels would be 4 and 8 respectively The channel switching mode is selected by configuring the DIP switch mounted on the MultiMux board The table shown below describes the 2 possible configurations DIP...

Страница 5: ...del on the Configure Multiplexers form Before the individual channels may be edited you must select a Gage Type Select either 4 Channels default 8 Channels to match the DIP switch settings of the Micr...

Страница 6: ...gh 3 Excitation with Delay P22 50ms delay after enabling the MicroMux 1 1 Ex Channel 2 0 Delay W Ex units 0 01 sec 3 5 Delay After Ex units 0 01 sec 4 0 mV Excitation 4 Beginning of Loop P87 1 0 Delay...

Страница 7: ...iplexer PortSet 1 0 2 7 Using the MicroMux with the VW Comm Module The VW Comm has built in instructions to directly control the MicroMux MultiMux or MiniMux There are specific gage types in Multilogg...

Страница 8: ...0 ScratchLoc 4 FormatFloat Channel 2g Send Set Digital Outputs command Switch to Gage 1 SerialOut Com1 0MM0 ScratchLoc 4 00045 5 50 Send Take Reading command SerialOut Com1 0M 00045 5 50 SerialFlush c...

Страница 9: ...e MicroMux is equipped with lightning protection components on the control signals As a result care must be exercised in the installation to maximize their effectiveness Specifically an effective eart...

Страница 10: ...ble and Clock lines connected to the control ports Attach Enable Clock lines No Do the software settings for the Enable and Clock lines match the connections Match software and digital I O connections...

Отзывы: