Delta Tau GEO BRICK LV User Manual

Page of 271
Geo Brick LV User Manual
 
PinOuts and Software Setup 
 66 
Resolver Power-On PLC Example 
Setting up a resolver with 10V excitation magnitude and 10 KHz excitation frequency:   
// Clock Settings: 10KHz Phase & Servo  
I7100=5895 
; Servo IC1 
I7101=0 
I7102=0 
I6800=5895 
; MACRO IC0 
I6801=0 
I6802=0 
I7000=5895 
; Servo IC0 
I7001=0 
I7002=0 
I10=838613  
; Servo Time Interrupt 
 
#define ResExcMag  M8000 
; Excitation Magnitude 
#define ResExcFreq M8001 
; Excitation Frequency 
ResExcMag->Y:$78B11,0,4   
; Excitation Magnitude register 
ResExcFreq->Y:$78B13,0,4   
; Excitation Frequency register 
ResExcMag=11 
 
 
;~10 Volts –User Input  
ResExcFreq=0    
 
; = Phase Clock/1 =10 KHz –User Input 
 
// PLC to establish Resolver Magnitude & Frequency on power-up 
Open plc 1 clear 
ResExcMag=11  
ResExcFreq=0 
Disable plc 1 
Close