Sac2 control system toolbox on LTspice

14
SAC2 Control blocks, MATLAB Simulink-like Simulation elements on Ltspice Torque information Lab. Update history: 2017.2.18 Update to ver. 2

Transcript of Sac2 control system toolbox on LTspice

Page 1: Sac2 control system toolbox on LTspice

SAC2 Control blocks, MATLAB Simulink-like

Simulation elements on LtspiceTorque information Lab.

Update history:2017.2.18 Update to ver. 2

Page 2: Sac2 control system toolbox on LTspice

Matlab Simulink-like simulation blocks on LTspice

• Clearer view of simulation model than LCR-analogy simulation models for mechanical systems• A first order symbol is available which is not on the original

LTspice.• For those people who want to have Matlab Simulink-like

environment for their personal projects• Just six functional blocks are provided but they are almost

enough for most control system simulations.

Page 3: Sac2 control system toolbox on LTspice

Preparation

• Download a copy of LTspice from Linear Technology’ site• Download SAC2 Control blocks from Sensible Analog Circuit Lab. site, https://drive.google.com/drive/folders/0B4Jl3immkOIqRllESC1zU0Mwbk0?usp=sharingand expand it in a folder.• Read the meta files to know how to use each control element.• Run simulations on “LCR_bench.asc” and “test_bench.asc” to know how it

works for you.

Page 4: Sac2 control system toolbox on LTspice

Operating example• Run “LCR_bench.asc”• An example for simulating the current flowing an series LCR circuit

𝑣 (𝑡 ) [V ]=𝐿 𝑑𝑖 (𝑡 )𝑑𝑡 +𝑅𝑖 (𝑡 )+ 1𝐶∫𝑣𝑚𝑑𝑡

𝑉 (𝑠 )− 1𝑠 ∙1𝐶 𝐼 (𝑠 )=𝑅( 𝐿𝑅 𝑠+1) 𝐼 (𝑠 ) 𝐼 (𝑠 )= 1

𝑅 ∙1

( 𝐿𝑅 𝑠+1) (𝑉 (𝑠 )− 1𝑠 ∙

1𝐶 𝐼 (𝑠 )  )

• Check that the values of current through the LCR series circuit and voltage V(I) are identical.

Page 5: Sac2 control system toolbox on LTspice

Operating manual

• Fig. 1 Adder function• Fig. 2 Gain function• Fig. 3 Differentiation function• Fig. 4 Integration function• Fig. 5 First order delay function• Fig. 6 Multiplier function• Fig. 7 Limiter function• Fig. 8 Divider function

These are the contents of each meta_xx.asc file. Refer to the contents by opening meta_xxx.asc file while editing schematics.

Contents

Page 6: Sac2 control system toolbox on LTspice

Fig.1 Adder block, Meta file : meta_adder.asc

Page 7: Sac2 control system toolbox on LTspice

Fig.2 Gain block, Meta file : meta_gain.asc

Page 8: Sac2 control system toolbox on LTspice

Fig.3 Differentiation block, Meta file : meta_differentiator.asc

Page 9: Sac2 control system toolbox on LTspice

Fig.4 Integration block, Meta file : meta_integrator.asc

Page 10: Sac2 control system toolbox on LTspice

Fig. 5   First order delay function : meta_first_order.asc

Page 11: Sac2 control system toolbox on LTspice

Fig. 6   Multiplier : meta_multiplier.asc

Page 12: Sac2 control system toolbox on LTspice

Fig. 7   Limiter function : meta_limiter.asc

Page 13: Sac2 control system toolbox on LTspice

Fig. 8   Divider function : meta_divider.asc

Page 14: Sac2 control system toolbox on LTspice

SAC Control Blocks Torque information system Lab.