Sensorless vector control for permanent magnet synchronous machine cascaded speed and current control with an observer based position and speed estimation (12 pages)
Page 1
DEMO MODEL CAN channel loop-back demo on a single RT Box Last updated in RT Box Target Support Package 2.0.5 www.plexim.com Request a PLECS and PLECS Coder trial license Get the latest RT Box Target Support Package Check the PLECS and RT Box documentation...
Page 2
To run this demo model, the following items are needed (see www.plexim.com • One PLECS RT Box and one PLECS Coder license. For the RT Box 1 the minimum hardware revi- sion is 1.2. • The RT Box Target Support Library •...
Page 3
(OEM) has the DBC file required to decode the data. This is the case, for example for raw CAN data in most cars, bikes, EVs, production machinery, etc. In this demo model, we send out: 1 an type from bit 0 to bit 14 (15-bit length) provided by a Constant block, unsigned integer www.plexim.com...
Page 4
CAN Transmit block to which a Pulse Generator is connected with frequency equal to the CAN transmission sample time ( Seconds). 0.01 • The Offline simulation field enables or disables the Target Inports on the root schematic that al- low the simulation of CAN Messages in an offline simulation. www.plexim.com...
Page 5
The selected CAN interface must be enabled and configured in the RT Box Coder Options Dialog. From the System tab of the Coder options... window, select the “Subsystem” and go to the Target tab. Under the subtab CAN, make sure to check both Enable CAN1 and Enable CAN2. www.plexim.com...
Page 6
RT Box. It shows how to set up the CAN interface in the Coder settings and how CAN messages are formed in a PLECS model using CAN Pack and Unpack blocks. The demo model runs in both offline and in real-time simulation. www.plexim.com...
Page 7
CAN channel loop-back demo on a single RT Box unit Reference Received value digital Reference Received value Reference Received value float Reference Received value valid flag CAN receive 0.00 0.05 0.10 0.15 0.20 Figure 6: Real-time waveform showing the four received signals after CAN loop-back test www.plexim.com...
Page 8
Plexim GmbH. PLECS is a registered trademark of Plexim GmbH. MATLAB, Simulink and Simulink Coder are regis- tered trademarks of The MathWorks, Inc. Other product or brand names are trademarks or registered...
Need help?
Do you have a question about the PLECS RT Box and is the answer not in the manual?
Questions and answers