Documentation Home Page RT-XSG Toolbox Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Resolver IN

Block

Block

Mask

Description

This block outputs the per unit (p.u.) angle calculated by demodulating the modulated sine and cosine with the carrier. It requires all input signals amplitudes in order to perform the angle in the per-unit scale.

Input signals (carrier, modulated sine, and cosine) can be directly read from an analog input module (see OP5340 ADC block) and computed with fast-sampling precision.

Input Signals

Parameters

This block has no parameters.

Inputs

CarrierInThis input is the resolver carrier signal coming from Analog Input (entire voltage range). This signal also called "exciter" should be the same (in phase, frequency, and amplitude) as the one sent to the resolver and used to modulate sine and cosine. Its format is Fix16_10.
Sine_InThis input is the resolver modulated sine coming from Analog Input (entire voltage range). Its format is Fix16_10.
Cosine_InThis input is the resolver modulated cosine coming from Analog Input (entire voltage range). Its format is Fix16_10.
Inv_Amp_Carrier_inThis input from the CPU Model is the INVERSE of the resolver carrier amplitude in Volts. It is used internally for per-unit scaling. Its format is UFix16_12.
Offset_Carrier_inThis input from the CPU Model is the offset of the resolver carrier in Volts. Its format is UFix16_10.
Inv_Amp_SineThis input from the CPU Model is the INVERSE of the resolver sine amplitude in Volts. It is used internally for per-unit scaling. Its format is UFix16_12.
Offset_SineThis input from the CPU Model is the offset of the resolver sine in Volts. Its format is UFix16_10.
Inv_Amp_CosineThis input from the CPU Model is the INVERSE of the resolver cosine amplitude in Volts. It is used internally for per-unit scaling. Its format is UFix16_12.
Offset_CosineThis input from the CPU Model is the offset of the resolver cosine in Volts. Its format is UFix16_10.
wo*2*ksiThis input from the CPU Model is the first parameter of the filter used to extract the position from the modulated signal. Its format is UFix24_4.
wo*2*dtThis input from the CPU Model is the second parameter of the filter used to extract the position from the modulated signal. Its format is UFix24_9.
Internal Carrier DelayThis input from the CPU Model is the delay of acquisition of modulated signals. This delay is taken into account when the carrier is generated internally. Its format is UFix11_0.
Carrier SelectionThis input coming from the CPU Model is used to select the carrier used for demodulation. When it is 0, the carrier specified by Carrier_in is used for demodulation; unless the carrier is generated internally by the Resolver In block. Its format is UFix1_0.
Carrier_out_int_stepThis input is the internal carrier frequency coming from the CPU model. Its format is UFix32_24. This input is a factor of the real value. The value at the input is the carrier frequency multiplied by 10x10^-9 (tsfpga) and 2^18 (integrator output maximum value).
Amp_Carrier_OutThis input is the carrier amplitude in Volts coming from CPU model. It is used to step up the carrier amplitude to the voltage level required by the resolver "exciter". Its format is UFix16_11.
Offset_Carrier_OutThis input is the carrier offset in Volts coming from CPU model. It is used to shift the carrier to the voltage level required by the resolver "exciter". Its format is UFix16_11.


Note about the Integration Factors: The Integration Factors are used to generate an angle of the motor's rotor. The method of calculation is based on a single addition block loopback on itself. The natural overflow from the addition free runs produces a sawtooth wave between 0 and (2^18)-1. This is why you must factor the carrier frequency and speed.


Outputs

Theta_PUThis output is the resolver calculated angle in per unit. It varies from 0 to 1 for angle positions from 0 to 2π with angle steps as accurate as 2.4e-5 radian. Its format is UFix18_18.
Carrier_PUThis output is the carrier obtained by Resolver In block after rescaling in per unit. This signal is useful to calibrate Resolver In block. Its format is Fix18_14.
Sine_PUThis output is the sine signal obtained by Resolver In block after rescaling in per unit. This signal is useful to calibrate Resolver In block. Its format is Fix18_14.
Cosine_PUThis output is the cosine signal obtained by Resolver In block after rescaling in per unit. This signal is useful to calibrate Resolver In block. Its format is Fix18_14.
Int_speedThis output represents the difference of position in one CPU step. It is used to estimate the angular speed on the CPU side. Its format is UFix32_4.
Dtheta*car_radThis output represents the product between the carrier and the sine of the actual angle of the resolver minus the calculated angle. A value lower than 5% on this output usually feedbacks the actual resolver angle with an accuracy lower than 0.5%. Its format is Fix18_16.
Carrier_OutThis output is the external carrier to be sent to the resolver exciter through an analog output interface. Voltage and current specifications of the analog output board should match the resolver specifications in order to prevent any destruction of the materials. The low power amplifier can be used to adapt the voltage and current levels to the resolver needs. Its format is Fix16_11.

Characteristics and Limitations

This block has no specific characteristics or limitations.

Block

Block

Mask

Description

This block outputs the per unit (p.u.) angle calculated by demodulating the modulated sine and cosine with the carrier. It requires all input signals amplitudes in order to perform the angle in the per-unit scale.

Input signals (carrier, modulated sine, and cosine) can be directly read from an analog input module (see OP5340 ADC block) and computed with fast-sampling precision.

Input Signals

Parameters

This block has no parameters.

Inputs

CarrierInThis input is the resolver carrier signal coming from Analog Input (entire voltage range). This signal also called "exciter" should be the same (in phase, frequency, and amplitude) as the one sent to the resolver and used to modulate sine and cosine. Its format is Fix16_10.
Sine_InThis input is the resolver modulated sine coming from Analog Input (entire voltage range). Its format is Fix16_10.
Cosine_InThis input is the resolver modulated cosine coming from Analog Input (entire voltage range). Its format is Fix16_10.
Inv_Amp_Carrier_inThis input from the CPU Model is the INVERSE of the resolver carrier amplitude in Volts. It is used internally for per-unit scaling. Its format is UFix16_12.
Offset_Carrier_inThis input from the CPU Model is the offset of the resolver carrier in Volts. Its format is UFix16_10.
Inv_Amp_SineThis input from the CPU Model is the INVERSE of the resolver sine amplitude in Volts. It is used internally for per-unit scaling. Its format is UFix16_12.
Offset_SineThis input from the CPU Model is the offset of the resolver sine in Volts. Its format is UFix16_10.
Inv_Amp_CosineThis input from the CPU Model is the INVERSE of the resolver cosine amplitude in Volts. It is used internally for per-unit scaling. Its format is UFix16_12.
Offset_CosineThis input from the CPU Model is the offset of the resolver cosine in Volts. Its format is UFix16_10.
wo*2*ksiThis input from the CPU Model is the first parameter of the filter used to extract the position from the modulated signal. Its format is UFix24_4.
wo*2*dtThis input from the CPU Model is the second parameter of the filter used to extract the position from the modulated signal. Its format is UFix24_9.
Internal Carrier DelayThis input from the CPU Model is the delay of acquisition of modulated signals. This delay is taken into account when the carrier is generated internally. Its format is UFix11_0.
Carrier SelectionThis input coming from the CPU Model is used to select the carrier used for demodulation. When it is 0, the carrier specified by Carrier_in is used for demodulation; unless the carrier is generated internally by the Resolver In block. Its format is UFix1_0.
Carrier_out_int_stepThis input is the internal carrier frequency coming from the CPU model. Its format is UFix32_24. This input is a factor of the real value. The value at the input is the carrier frequency multiplied by 10x10^-9 (tsfpga) and 2^18 (integrator output maximum value).
Amp_Carrier_OutThis input is the carrier amplitude in Volts coming from CPU model. It is used to step up the carrier amplitude to the voltage level required by the resolver "exciter". Its format is UFix16_11.
Offset_Carrier_OutThis input is the carrier offset in Volts coming from CPU model. It is used to shift the carrier to the voltage level required by the resolver "exciter". Its format is UFix16_11.


Note about the Integration Factors: The Integration Factors are used to generate an angle of the motor's rotor. The method of calculation is based on a single addition block loopback on itself. The natural overflow from the addition free runs produces a sawtooth wave between 0 and (2^18)-1. This is why you must factor the carrier frequency and speed.


Outputs

Theta_PUThis output is the resolver calculated angle in per unit. It varies from 0 to 1 for angle positions from 0 to 2π with angle steps as accurate as 2.4e-5 radian. Its format is UFix18_18.
Carrier_PUThis output is the carrier obtained by Resolver In block after rescaling in per unit. This signal is useful to calibrate Resolver In block. Its format is Fix18_14.
Sine_PUThis output is the sine signal obtained by Resolver In block after rescaling in per unit. This signal is useful to calibrate Resolver In block. Its format is Fix18_14.
Cosine_PUThis output is the cosine signal obtained by Resolver In block after rescaling in per unit. This signal is useful to calibrate Resolver In block. Its format is Fix18_14.
Int_speedThis output represents the difference of position in one CPU step. It is used to estimate the angular speed on the CPU side. Its format is UFix32_4.
Dtheta*car_radThis output represents the product between the carrier and the sine of the actual angle of the resolver minus the calculated angle. A value lower than 5% on this output usually feedbacks the actual resolver angle with an accuracy lower than 0.5%. Its format is Fix18_16.
Carrier_OutThis output is the external carrier to be sent to the resolver exciter through an analog output interface. Voltage and current specifications of the analog output board should match the resolver specifications in order to prevent any destruction of the materials. The low power amplifier can be used to adapt the voltage and current levels to the resolver needs. Its format is Fix16_11.

Characteristics and Limitations

This block has no specific characteristics or limitations.

Direct FeedthroughN/A
Discrete sample timeN/A
XHP supportYES
Work offlineYES

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323