Motor HIL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Motor HIL

565 次查看
JonAnder_Amante
Contributor II

Hi,

 

I am using the board S32K344MINI-EVB with driver GD3000 and Sunrise motor. I have tested a program where you can manage the speed of motor with the project "S32K344:mc_pmsm_1sh_s32ct". I have to get my target as soon as possible. 

 

JonAnder_Amante_1-1771329707405.png

My goal is to implement an algorithm to control the Sunrise's engine plant using the Speedgoat real-time systems platform. To do this, I want to simulate the engine plant along with the power electronics and control the engine using the S32K344-MINIEV evaluation board. The following image and link show how the MATLAB team has done it, but with a Texas Instruments microprocessor. I want to realize the controller with your blocks of NXP from Model Based Design (Currrent Controller and Speed Controller). Could you tell me how to achieve my objective?

https://es.mathworks.com/help/mcb/gs/field-oriented-control-pmsm-using-hardware-in-the-loop-hil-simu...


JonAnder_Amante_2-1771330088859.png

 

Thank you for all,

Jon Ander

0 项奖励
回复
1 回复

510 次查看
stefancinipeanu
NXP Employee
NXP Employee

Hello @JonAnder_Amante 

The reference example for Motor Control HiL from MathWorks you are referring to takes a lot of elements that need to be modified. I cannot provide you a full model tailored for S32K344-MINI EVB, but I can provide some brief high-level guidance and overview on which subsystem you have to work on your own.

1. Firstly, looking at the top model you can see 2 main subsystems: Embedded Processor subsystem and Inverter and Motor subsystem. The Embedded Processor subsystem will generate code that will be deployed to your embedded target and the Inverter and Motor subsystem will be deployed on your SpeedGoat HiL. 

The entire motor control application is executed within ADC interrupt which is triggered by the PWM. Looking within Hardware model settings, the base rate trigger for the Embedded Processor Subsystem is set to ADCB1_INT.

stefancinipeanu_2-1771403215106.png

 

To do this kind of approach using NXP blocks, you will need to include all the motor control application inside a triggered subsystem connected to the Hardware Interrupt Callback Block that is set to ADC interrupt, if you want to generate code. For simulation purposes, to replicate this behavior you can replace the Hardware Interrupt block with the Function-Call Generator block where you can set the frequency of the triggering simulated ADC interrupt.

 

stefancinipeanu_0-1771402223391.png

 

2. The Input drivers for getting the phase currents measurement and estimated rotor position & speed. For this, there is a Variant subsystem called Sensor Driver Block. If you go inside it, you can see 2 subsystems: one for codegen and another one for simulation. By going inside the codegen subsystem, here you have to replace the blocks for getting the data from ADC peripheral. You can use the NXP Adc block and set it to Adc_CtuReadFifoData, if you are using the BCTU peripheral for triggering all ADC instances for getting the currents and DC bus voltage.

stefancinipeanu_1-1771402776008.png

For estimating the speed and position of the rotor, it depends on what sensor you are using. The sunrise motor is not equiped with an encoder so you have to remove all blocks and computation for encoder. It has Hall sensors that can be used or you can use sensorless techniques. For sensorless, refer to our delivered motor control examples to see how this approach can be fulfilled.

3. FOC reference model. It depends on what blocks for implementing the FOC architecture you want to use. If you are evaluating the Motor Control Blockset, you can leave the entire FOC subsystem as it is with eventually small modifications. But if you want to use NXP's AMMCLib blocks, you have to go on each subsystem from FOC reference model and to replace each Clark, Park, PI controllers, etc. blocks with their AMMCLib equivalent blocks.

4. Output Drivers subsystem. This subsystem will handle the PWM duty cycle updates for the PWM generator peripheral. If you can inside this subsystem, the PWM blocks from TI has to be replaced with NXP Pwm block and configure it properly. Again you can refer to our delivered motor control examples to see how to use the Pwm blocks and how to configure them to achieve PWM generation for each motor phase.

On the SpeedGoat side, I suppose you can leave the subsystem as it is, but you will need to provide the parameters of your motor within the pmsm_hil_data.m script.

stefancinipeanu_3-1771403789560.png

These are some high-level observations, but definitely you have to work on your own to see exactly what other things you have to consider modifying. 

Hope this helps!

Regards!

Stefan.

 

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2319019%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E7%94%B5%E6%9C%BA%20HIL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2319019%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%3CSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%20%E5%B8%A6%E9%A9%B1%E5%8A%A8%E5%99%A8%20GD3000%20%E5%92%8C%20Sunrise%20%E7%94%B5%E6%9C%BA%E7%9A%84%20S32K344MINI-EVB%20%E6%9D%BF%E3%80%82%E6%88%91%E5%B7%B2%E7%BB%8F%E6%B5%8B%E8%AF%95%E4%BA%86%E4%B8%80%E4%B8%AA%E4%BD%A0%E5%8F%AF%E4%BB%A5%E7%94%A8%E9%A1%B9%E7%9B%AE%20%22%20s32K344%3A%20mc_pmsm_1SH_S32CT%20%22%20%E6%9D%A5%E7%AE%A1%E7%90%86%E7%94%B5%E6%9C%BA%E9%80%9F%E5%BA%A6%E7%9A%84%E7%A8%8B%E5%BA%8F%E3%80%82%E6%88%91%E5%BF%85%E9%A1%BB%E5%B0%BD%E5%BF%AB%E6%89%BE%E5%88%B0%E7%9B%AE%E6%A0%87%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_1-1771329707405.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1771329707405.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377035iF819AB4615CBA4DB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_1-1771329707405.png%22%20alt%3D%22JonAnder_Amante_1-1771329707405.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E6%88%91%E7%9A%84%E7%9B%AE%E6%A0%87%E6%98%AF%E5%88%A9%E7%94%A8%20Speedgoat%20%E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B5%81%E6%8E%A7%E5%88%B6%E5%99%A8%E5%92%8C%E9%80%9F%E5%BA%A6%E6%8E%A7%E5%88%B6%E5%99%A8%EF%BC%89%E3%80%82%E6%82%A8%E8%83%BD%E5%91%8A%E8%AF%89%E6%88%91%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%E6%88%91%E7%9A%84%E7%9B%AE%E6%A0%87%E5%90%97%EF%BC%9F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fes.mathworks.com%2Fhelp%2Fmcb%2Fgs%2Ffield-oriented-control-pmsm-using-hardware-in-the-loop-hil-simulation.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fes.mathworks.com%2Fhelp%2Fmcb%2Fgs%2Ffield-oriented-control-pmsm-using-hardware-in-the-loop-hil-simulation.html%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_2-1771330088859.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_2-1771330088859.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377037i1C0D36D57338595C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_2-1771330088859.png%22%20alt%3D%22JonAnder_Amante_2-1771330088859.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E5%A4%A7%E5%AE%B6%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3EJon%20Ander%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2319363%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Motor%20HIL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2319363%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F226147%22%20target%3D%22_blank%22%3E%40JonAnder_Amante%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E6%89%80%E6%8C%87%E7%9A%84%20MathWorks%20%E7%94%B5%E6%9C%BA%E6%8E%A7%E5%88%B6%20HiL%20%E5%8F%82%E8%80%83%E7%A4%BA%E4%BE%8B%E5%8C%85%E5%90%AB%E4%BA%86%E5%A4%A7%E9%87%8F%E9%9C%80%E8%A6%81%E4%BF%AE%E6%94%B9%E7%9A%84%E5%85%83%E7%B4%A0%E3%80%82%E6%88%91%E6%97%A0%E6%B3%95%E4%B8%BA%E6%82%A8%E6%8F%90%E4%BE%9B%E4%B8%BA%20S32K344-MINI%20EVB%20%E9%87%8F%E8%BA%AB%E5%AE%9A%E5%81%9A%E7%9A%84%E5%AE%8C%E6%95%B4%E6%A8%A1%E5%9E%8B%EF%BC%8C%E4%BD%86%E6%88%91%E5%8F%AF%E4%BB%A5%E6%8F%90%E4%BE%9B%E4%B8%80%E4%BA%9B%3CSTRONG%3E%E7%AE%80%E7%9F%AD%E7%9A%84%E9%AB%98%E7%BA%A7%E6%8C%87%E5%AF%BC%E5%92%8C%E6%A6%82%E8%BF%B0%3C%2FSTRONG%3E%EF%BC%8C%E8%AE%A9%E6%82%A8%E4%BA%86%E8%A7%A3%E5%93%AA%E4%BA%9B%E5%AD%90%E7%B3%BB%E7%BB%9F%E9%9C%80%E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%9A%84%20ADC%20%E4%B8%AD%E6%96%AD%E5%86%85%E6%89%A7%E8%A1%8C%E3%80%82%E6%9F%A5%E7%9C%8B%E7%A1%AC%E4%BB%B6%E5%9E%8B%E5%8F%B7%E8%AE%BE%E7%BD%AE%EF%BC%8C%E5%B5%8C%E5%85%A5%E5%BC%8F%E5%A4%84%E7%90%86%E5%99%A8%E5%AD%90%E7%B3%BB%E7%BB%9F%E7%9A%84%E5%9F%BA%E6%9C%AC%E9%80%9F%E7%8E%87%E8%A7%A6%E5%8F%91%E4%BF%A1%E5%8F%B7%E8%AE%BE%E7%BD%AE%E4%B8%BA%20ADCB1_INT%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefancinipeanu_2-1771403215106.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefancinipeanu_2-1771403215106.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377120iF6FFD04292EAF119%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22stefancinipeanu_2-1771403215106.png%22%20alt%3D%22stefancinipeanu_2-1771403215106.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E8%A6%81%E4%BD%BF%E7%94%A8%E6%81%A9%E6%99%BA%E6%B5%A6%E6%A8%A1%E5%9D%97%E5%AE%9E%E7%8E%B0%E8%BF%99%E7%A7%8D%E6%96%B9%E6%B3%95%EF%BC%8C%E5%A6%82%E6%9E%9C%E8%A6%81%E7%94%9F%E6%88%90%E4%BB%A3%E7%A0%81%EF%BC%8C%E5%88%99%E9%9C%80%E8%A6%81%E5%B0%86%E6%89%80%E6%9C%89%E7%94%B5%E6%9C%BA%E6%8E%A7%E5%88%B6%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E5%8C%85%E5%90%AB%E5%9C%A8%E4%B8%8E%E8%AE%BE%E7%BD%AE%E4%B8%BAADC%20%3CSTRONG%3E%E4%B8%AD%E6%96%AD%E7%9A%84%E7%A1%AC%E4%BB%B6%E4%B8%AD%E6%96%AD%E5%9B%9E%E8%B0%83%3C%2FSTRONG%3E%E6%A8%A1%E5%9D%97%E7%9B%B8%E8%BF%9E%E7%9A%84%E8%A7%A6%E5%8F%91%E5%AD%90%E7%B3%BB%E7%BB%9F%E4%B8%AD%E3%80%82%E5%87%BA%E4%BA%8E%E4%BB%BF%E7%9C%9F%E7%9B%AE%E7%9A%84%EF%BC%8C%E8%A6%81%E5%A4%8D%E5%88%B6%E8%BF%99%E7%A7%8D%E8%A1%8C%E4%B8%BA%EF%BC%8C%E5%8F%AF%E4%BB%A5%E5%B0%86%E7%A1%AC%E4%BB%B6%E4%B8%AD%E6%96%AD%E6%A8%A1%E5%9D%97%E6%9B%BF%E6%8D%A2%E4%B8%BA%20%3CSTRONG%3EFunction-Call%20Generator%3C%2FSTRONG%3E%20%E6%A8%A1%E5%9D%97%EF%BC%8C%E5%9C%A8%E5%85%B6%E4%B8%AD%E5%8F%AF%E4%BB%A5%E8%AE%BE%E7%BD%AE%E8%A7%A6%E5%8F%91%E4%BF%A1%E5%8F%B7%E7%9A%84%E6%A8%A1%E6%8B%9F%20ADC%20%E4%B8%AD%E6%96%AD%E7%9A%84%E9%A2%91%E7%8E%87%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefancinipeanu_0-1771402223391.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefancinipeanu_0-1771402223391.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377115i1A984D0B226FE2F3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22stefancinipeanu_0-1771402223391.png%22%20alt%3D%22stefancinipeanu_0-1771402223391.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E2.%E7%94%A8%E4%BA%8E%E6%B5%8B%E9%87%8F%E7%9B%B8%E7%94%B5%E6%B5%81%E5%92%8C%E4%BC%B0%E7%AE%97%E8%BD%AC%E5%AD%90%E4%BD%8D%E7%BD%AE%26amp%3B%20%E9%80%9F%E5%BA%A6%E7%9A%84%3CSTRONG%3E%E8%BE%93%E5%85%A5%E9%A9%B1%E5%8A%A8%E5%99%A8%3C%2FSTRONG%3E%E3%80%82%E4%B8%BA%E6%AD%A4%EF%BC%8C%E6%9C%89%E4%B8%80%E4%B8%AA%E5%90%8D%E4%B8%BA%3CSTRONG%3E%E4%BC%A0%E6%84%9F%E5%99%A8%E9%A9%B1%E5%8A%A8%3C%2FSTRONG%3E%E5%9D%97%E7%9A%84%E5%8F%98%E9%87%8F%E5%AD%90%E7%B3%BB%E7%BB%9F%E3%80%82%E5%A6%82%E6%9E%9C%E8%BF%9B%E5%85%A5%E5%85%B6%E4%B8%AD%EF%BC%8C%E5%8F%AF%E4%BB%A5%E7%9C%8B%E5%88%B0%E4%B8%A4%E4%B8%AA%E5%AD%90%E7%B3%BB%E7%BB%9F%EF%BC%9A%E4%B8%80%E4%B8%AA%E7%94%A8%E4%BA%8E%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%EF%BC%8C%E5%8F%A6%E4%B8%80%E4%B8%AA%E7%94%A8%E4%BA%8E%E6%A8%A1%E6%8B%9F%E3%80%82%E9%80%9A%E8%BF%87%E8%BF%9B%E5%85%A5%20codegen%20%E5%AD%90%E7%B3%BB%E7%BB%9F%EF%BC%8C%E6%82%A8%E5%BF%85%E9%A1%BB%E6%9B%BF%E6%8D%A2%E4%BB%8E%20ADC%20%E5%A4%96%E5%9B%B4%E8%AE%BE%E5%A4%87%E8%8E%B7%E5%8F%96%E6%95%B0%E6%8D%AE%E7%9A%84%E6%A8%A1%E5%9D%97%E3%80%82%E5%A6%82%E6%9E%9C%E6%82%A8%E4%BD%BF%E7%94%A8BCTU%E5%A4%96%E8%AE%BE%E8%A7%A6%E5%8F%91%E6%89%80%E6%9C%89ADC%E5%AE%9E%E4%BE%8B%E4%BB%A5%E8%8E%B7%E5%8F%96%E7%94%B5%E6%B5%81%E5%92%8C%E7%9B%B4%E6%B5%81%E6%80%BB%E7%BA%BF%E7%94%B5%E5%8E%8B%EF%BC%8C%E5%88%99%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E6%81%A9%E6%99%BA%E6%B5%A6Adc%E6%A8%A1%E5%9D%97%E5%B9%B6%E5%B0%86%E5%85%B6%E8%AE%BE%E7%BD%AE%E4%B8%BAADC_CtrureadFIFOData%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefancinipeanu_1-1771402776008.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefancinipeanu_1-1771402776008.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377117i5D0A22F12F15C527%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22stefancinipeanu_1-1771402776008.png%22%20alt%3D%22stefancinipeanu_1-1771402776008.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3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%3E%E5%9C%A8%20SpeedGoat%20%E6%96%B9%E9%9D%A2%EF%BC%8C%E6%88%91%E6%83%B3%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BF%9D%E6%8C%81%E5%AD%90%E7%B3%BB%E7%BB%9F%E7%9A%84%E5%8E%9F%E6%A0%B7%EF%BC%8C%E4%BD%86%E9%9C%80%E8%A6%81%E5%9C%A8%3CSTRONG%3Epmsm_hil_data.m%3C%2FSTRONG%3E%E8%84%9A%E6%9C%AC%E4%B8%AD%E6%8F%90%E4%BE%9B%E7%94%B5%E6%9C%BA%E5%8F%82%E6%95%B0%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefancinipeanu_3-1771403789560.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefancinipeanu_3-1771403789560.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377121i81DD2DF70444D839%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22stefancinipeanu_3-1771403789560.png%22%20alt%3D%22stefancinipeanu_3-1771403789560.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E8%BF%99%E4%BA%9B%E9%83%BD%E6%98%AF%E4%B8%80%E4%BA%9B%E9%AB%98%E5%B1%82%E6%AC%A1%E7%9A%84%E6%84%8F%E8%A7%81%EF%BC%8C%E4%BD%86%E8%82%AF%E5%AE%9A%E8%BF%98%E9%9C%80%E8%A6%81%E4%BD%A0%E8%87%AA%E5%B7%B1%E5%8E%BB%E7%9C%8B%E7%9C%8B%E5%88%B0%E5%BA%95%E8%BF%98%E6%9C%89%E5%93%AA%E4%BA%9B%E4%B8%9C%E8%A5%BF%E9%9C%80%E8%A6%81%E8%80%83%E8%99%91%E4%BF%AE%E6%94%B9%E3%80%82%20%3C%2FP%3E%0A%3CP%3E%E5%B8%8C%E6%9C%9B%E5%AF%B9%E6%82%A8%E6%9C%89%E6%89%80%E5%B8%AE%E5%8A%A9%EF%BC%81%3C%2FP%3E%0A%3CP%3E%E6%AD%A4%E8%87%B4%E6%95%AC%E7%A4%BC%EF%BC%81%3C%2FP%3E%0A%3CP%3E%E6%96%AF%E7%89%B9%E5%87%A1%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E