sac2 control system toolbox on ltspice
TRANSCRIPT
SAC2 Control blocks, MATLAB Simulink-like
Simulation elements on LtspiceTorque information Lab.
Update history:2017.2.18 Update to ver. 2
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.
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.
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.
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
Fig.1 Adder block, Meta file : meta_adder.asc
Fig.2 Gain block, Meta file : meta_gain.asc
Fig.3 Differentiation block, Meta file : meta_differentiator.asc
Fig.4 Integration block, Meta file : meta_integrator.asc
Fig. 5 First order delay function : meta_first_order.asc
Fig. 6 Multiplier : meta_multiplier.asc
Fig. 7 Limiter function : meta_limiter.asc
Fig. 8 Divider function : meta_divider.asc
SAC Control Blocks Torque information system Lab.