Section 7. Measurement Instructions
SW12
NOTE
7-26
The SW12 instruction is used to set a Switched 12 volt supply high or low.
Syntax
SW12( State )
Remarks
The datalogger has a switched 12 volt output with two terminals. This switched
12 volts is used to provide a continuous 12 volt supply to external peripherals.
At room temperature the switched 12 volt supply can source 900 mA between
the SW-12 terminal and Ground. The State parameter indicates whether the
switched 12 volts is High (non-zero) or low (0).
The SW-12 supply is unregulated and can supply up to 900 mA
at 20C and up to 630 mA at 50C. A resettable polymeric fuse
protects against over-current. Reset is accomplished by removing
the load or turning off the SW-12 for several seconds.
SW12 Example
This example sets the switched 12 volt supply high at the beginning of each
scan, and low at the end of the program.
Const RATE = 500
Const RUNITS = 1
Const TBLINT1 = 200
Const UNITS1 = 1
Dim Tblk1( 1 )
Dim Tref
Public Flag( 8 )
DataTable( TEST, Flag( 1 ), 1000 ) 'Trigger, buffer of 1000 Records
DataInterval( 0, TBLINT1, UNITS1, 100 ) '200 mSecs, 100 lapses
Average( 1, Tblk1(), FP2, 0 ) 'Reps,Source,Res,Disable
EndTable
BeginProg
Scan( RATE, RUNITS, 1, 0 )
SW12( 1 )
PanelTemp( Tref., Integ )
TCDiff( Tblk1(), 1, 1, 1, 1, Tref, 0, 20, 40, 1.8, 32 )
CallTable TEST
SW12 ( 0 )
Next Scan
EndProg
'Scan interval number
'Scan interval units (mSecs)
'Table 1 interval number
'Table 1 interval units (mSecs)
'Block #1 dimensioned source
'Declare reference temperature variable
'Flag dimension
'End of table TEST
'Program begins here
'Scan 500 (mSecs), no fast buffer
'Set SW12 high
'PanelTemp
'Run Table TEST
'Set SW12 log
'Loop up for the next scan
'Program ends here
Need help?
Do you have a question about the CR5000 and is the answer not in the manual?