Data Stream
23
B
3500 Scarlet Oak Blvd. St. Louis MO USA 63122 V: 636-343-8518 F: 636-343-5119
Web:
http://www.crmagnetics.comE-mail:
sales@crmagnetics.comThe Professional
Energy Monitoring
Company
ISO9001:2008QualityManagementSystem
M N TI
Programming
Programming of the CR Magnetics DATA STREAM Series is straight forward and easily implemented via user programs or
The DATA STREAM Software. The programming language is ASCII based and consists of Commands and Return data.
Command Structure
Each command sent to the DATA STREAM has the following structure:
Preamble Addr [Dir] [Data] <cr>
Preamble
A single ASCII character which designates
type of command.
Addr
2 ASCII characters which selects
the address of the transducer.
[Dir]
A single ASCII character directive which qualifies
the command, not used on all commands.
[Data]
A set of ASCII characters required by certain
command functions.
<cr>
A carriage return must be placed as an
end of line character.
Read Transducer Name Command
Preamble
$
Addr
00 to FF
Dir
M
Data
not used
Transducer Correct Response:
!
Addr (00 to FF)
Name
<cr>
Transducer Wrong Response:
?
Addr (00 to FF)
<cr>
Example:
Send
$0AM<cr>
Receive !0A51101205<cr>
In this case, a CRD5110 Single Phase Multifunction transducer
with a range of 120 Volts and 5 amps is programmed with the
address 0A, and returns its last 4 digits to the system.
Read All Data Command
Preamble
#
Addr
00 to FF
Dir
A
Data
not used
Transducer Correct Response:
Voltage % (+/-X.XXXX)
Current % (+/-X.XXXX)
Power % (+/-X.XXXX)
VARS % (+/-X.XXXX)
Power Factor % (+/-X.XXXX)
Frequency (XX.XXX)
<cr>
Transducer Wrong Response:
?
Addr (00 to FF)
<cr>
Example: Given a CRD5110, programmed with a Voltage range
of 500VAC RMS, and a Current range of 5 AAC RMS,
Address 1B.
Input Voltage =300 VAC RMS,
Input current = 4 AAC RMS,
Power Factor = 1.000 (Pure resistive)
Frequency of 50 Hz.
Send
#1BA<cr>
Receive
>+0.6000+0.8000+0.4800+0.0000+1.000050.000<cr>
All signed data is returned as a percent of Full Scale.
Thus the formula:
Value = Data(%) X Full Scale
Will give the actual value of the parameter.
For this example:
Voltage = +0.6000% X 500 = 300 VAC RMS
Current = +0.4000% X 5 = 4 AAC RMS
Real Power = +0.4800% X 500 X 5 = 1200 Watts
VARs = +0.0000 X 500 X 5 = 0.0000 Vars
Power Factor = +1.0000 X 100% = 100% PF (purely resistive)
The Frequency Value is the Actual Data:
Frequency = 50.000 Hertz
NOTE:
Multifunction units will return Voltage, Current, Power,
Vars, Power Factor, and Frequency. Single function
units will return only the single function. For
Multiphase units, the Voltage and Current Data will be
returned in the following order:
3 Phase 3 Wire
Voltage 12 , Current 1 , Voltage 32 , Current 3 ,
Power, Vars, Power Factor, Frequency
3 Phase 4 wire
Voltage 1 , Current 1 , Voltage 2 , Current 2 , Voltage 3 ,
Current 3 , Power, Vars, Power Factor, Frequency.
Command
Read Transducer Name
Read All Data
Read Energy Totalizer
Read Transducer Configuration
Set Transducer Configuration
Clear Energy Totalizer
Preamble
$
#
#
$
%
&
Addr
00 to FF
00 to FF
00 to FF
00 to FF
00 to FF
00 to FF
Dir
M
A
W
2
N/A
N/A
Data
N/A
N/A
N/A
N/A
New Addr, Input Range, Baud
Totalizer Period Number
List of Common Commands
DATA STREAM RS485 DIGITAL TRANSDUCER