You are on page 1of 3

COMPUTER INTERFACE 11 - 0

TR-SPY Communication Serial Port RS232

Hardware protocol 11-1.0

9 pin D-Sub miniature


Pin # Designation Notes
1 GND Chassis ground
2 TXD Transmit Data from TR-SPY to Computer
3 RXD Transmit Data from Computer to TR-SPY
5 RGND Signal reference ground

Protocol: 2400 Baud, 8 Bit, 1 Stopbit, no parity

Software protocol 11-2.0

Switch to Remote
All commands switch the TR-SPY into the Remote State.

Switch to Local
Command SL (Set to Local) or with the Local Button on the Remote Display.

Syntax of Commands
,,c[[Data 1 [;Data]”]CR
cc = 2 ASCII Character for the Command
; (semicolon) Separator for multiple Data fields
Numeric Format of Numbers: float (C - Language)
Format of Strings: all ASCII Characters from 0x20 to 0x7f]
Terminator: ,,R “ (=0x0D)
Answers without data
* 0 ok ok
*1 unkn Syntax Error
*2 done
Answers with data
xx,Message1[,Message2;[Message3],,]”,CR
xx Type of answer

Raytech USA, Inc. All rights reserved. No portion may be reproduced without written consent 27
TR-SPY Commands 11-3.0

sl Set Local Set TR-SPY to Local State “*0 ok“


xx Set Remote All commands set TR-SPY to Remote State

gv Get Version Get Version, Release of the Firmware, Date of Firmware


e.g. gv ,,Spy by Raytech 0.59 17.6.97“

gs Get Serial No. Asks the serial number. The Serial Number is unique for each.
e.g. gs ,,GS 172-101“

st,a,b,c,d, Set Xformer Data ,,*0 ok“


a=> Trafosetup H 0=Delta, 1 = Yn, 2=Y,3 = Single
b=> Trafosetup X 0=Delta, 1 = Yn, 2=Y,3 = Single, 4=Zn
c=> Testvoltage 0= 100 V, 1 = 40 V,2 = 10V
d=> Phase Displacement 0...11, or ,,?“
valid are even or odd numbers depending on the Xformer setup H and X
invalid numbers are interpreted as unknown ,,?“
e.g. ST, 2,4,2,5 (=Yzn5 Testvoltage 10V) ,,*0k“

sr 0 Set Reference Set Reference to No. Ref. ,,*0 ok“


e.g. sr 0

sr 1,a Set Reference Set Ref, to Nominal Ratio ,,*0 ok“


a = Nominal Turn Ratio (Format float)
e.g. sr 1,23.5 (Nominal Turn Ratio = 23.5)

sr 2,a,b Set Reference Set Ref. to Nominal Ratio ,,*0 ok“


a=> Vh (in kV)
b=> Vx (in kV)
e.g. sr 2,10.4,5 Uh = 10.4 kV, Ux = 5 kV

gt Get Xformer Data Asks for the Transformer set up


Result with Primary Setup, secondary set-Up,
Test voltage, Phase Displacement, Date, Time of
Measurement
result: ,,MT, a,b,c,d,ddmmyy,hhmm“
a= [0,1,2,3} Primtype 0 = D,1=Y,2=Yn,3 = Single
b= [0,1,2,4} Sectype 0 = D,1= Y,2= Yn,4 = Zn
c= [0,1,2] 0- > 100V, 1- > 40V, 2- > 10V
d=[0..11,98,99]Phase Displacement,98=Single99=
‘unknown’
ddmmyy - > Date of the Measurement
hhmm - > time of the Measurement
e.g. gt Answer: ,,MT,2,4,2,5,160697,1803“
=> Yzn5, Testvoltage 10 V, 16.06.97 18:03

Raytech USA, Inc. All rights reserved. No portion may be reproduced without written consent 28
TR-SPY Commands 11-3.1

gr Get Reference Asks the type of Reference, and the Reference:


Results: Reference Type, Nominal Ratio or H-X Voltages
”MR, 0,0.0.0.0“ No Reference value
”MR,1,Ratio,0.0“ Reference is Turn Ratio
”MR,2,Uh, Ux“ Reference is H, - X Voltages
ga Get Results A
gb Get Results B
gc Get Results C Asks the Results of the measured Values for Phase A,B orC
Results: ,,Mx,aaa,bbb,ccc.ccc“
x= [A,B,C,] Phase
aaa.aaa-> Ratio of Phase x
bbb.bbb ->Angle of Phase deviation of Phase x (units in
degrees)
ccc.ccc -> Current of Phase x (in mA)

gm x Recall Memory Loc x ,,*0 ok“


x = 0..9
recall Stored Measurement values to Display Storage

sm x Store Measurements to Memory loc x ,,*0 ok“


Stores the actual values to Memory Location x
x = 1..9
ma,x Measure Phase A
mb,x Measure Phase B
mc,x Measure Phase c Measure Phase A.B.or C
This command executes a ratio-Measurement,
Results: ,, *2“ after approx. 10 sec
x = 0 after approx. 10 sec
For getting the results use GA,GB,GC commands
x =1 during measuring, the actual values are sent to
the computer. Syntax see Command GA,GB, GC
After approx. 10 sec the TR-SPY stops Automatically.
x = 1] measure and display values of the transformer
without time-out. A new command stops the mode

mf,x Measure Full Measure all Phases of the Transformer


x = “ “ Process without showing results
x = 1 Results are sent to the computer
After approx. 3* 10 sec the Commands stops automatically
with ,,*0 ok“

xx Garbage Syntax Error ,,*1 unkn “

Raytech USA, Inc. All rights reserved. No portion may be reproduced without written consent 29

You might also like