Water Tank PLC Control Simulation with Matlab Simulink
httpvh://youtu.be/Uz827S7tjRU
To play this simulation you need to have this item:
- Unity PRO S (minimum) / Unity Pro L /Unity Pro XL. Version 5 / 6 / 7 / 8 (I’m not provide the installer, you can find on another forum 1.5 Gb)
- Matlab 2012 / Matlab 2013 with simulink (I’m not provide the installer, you can find on another forum 6.5Gb)
- Modbus Ehternet OPC Server (Iconics) http://adf.ly/lA1Gt this is free OPC server, you don’t need to license the software
- Simulink Model, OPC Configuration(should be load from iconics modbus OPC Server) http://adf.ly/lA205
Water Tank with Valve, Simulink Model
To see how it works, you should see the video above.
OPC Configuration block setting (simulink)
OPC Read /Write Block Setting:
Below are the ladder diagram for logic control to controling level on water tank.
I set Valve will close when Level reach high limit 14 meters.
and Valve will open when level reach low limit 5 meters.
Ladder Diagram
simply ladder diagram using SET and RESET (Latching – Unlatching) block
FBD
Modbus Ethernet OPC Configuration
Installation:
[spoiler effect=”simple” show=”next installation”]
[/spoiler]
after installing you need to configure it or just load configuration from download file.
Configure OPC:
[spoiler effect=”simple” show=”Congure OPC Server”]
[/spoiler]
laddernya terlalu ribet….
bisa dibuat lebih simple lagi pak…
lebih banyak belajar yah…
@illank
sudah dilengkapi dengan yang simple, menggunakan fasiltas latching coil. FBD dan ladder
Mas, di beberapa catatan ada fasilitas download as PDF. Bagusan dikasih semuanya mas, biar tutorialnya di coba setiap saat. Kita susah internet disini
@Annas
Ok, saya cek dulu, harusnya otomatis muncul.
Terimakasih atas masukannya
can you provide some information on the Unity project you used for this? How did you configure the variables to read/write to the OPC server?
@Jon
What kind information do you need? Variable information? let me update soon.
yes I configure OPC server for read and write to PLC. and Simulink read and write to OPC.
btw I also have another simulink model for tank mixing, If you interested I will upload it.
check this out http://www.youtube.com/watch?v=UPNC_Ke1Xkk
Thanks Rifqi,
Actually I am interested in the PLC code in Unity Pro. How do you configure the networks in “Communication -> Networks”? How do are the tags in the OPC server mapped to variables in the PLC? Are you able to post the Unity project you used as an .sta file? Or just some screen captures of the configuration pages of networks and variables (“Variables & FB instances”)?
Thanks again – Jon.
@Jon
You’re welcome Jon,
I just configure network for the IP address.
Quantum provide Modbus TCP/IP connection from its ethernet port in CPU
The OPC mapped to variable via Modbus Address. For example I have %m1 and I read from OPC 00001 (or 1), and for %MW1 to 40001.
let me upload sta file.
did you upload the .sta file? I cannot see it on the site.
@Jon
check this link for sta/stu file
http://www.4shared.com/zip/nrwzcDnfce/tank_control_sim.html
Finally got it working. Thanks!
gan bisa diupload ulang Simulink Model, OPC Configuration, di 4shared sudah tidak ada. trims
Hi, thank you for showing the connection sample with PLC M340 and Simulink.
Could you again share the simulink model file? The link is not validate anymore….
Hi!
Can you share the simulink model file? The link is not validate anymore.
Pode ter certeza de que será seu melhor investimento. http://sobrevivealark.com/index.php?action=profile;u=2647
Tente nadar. Senhor-livramento!!!! Parabens!!!!
Oi gente. http://www.scnindia.com/index.php/scn/blog/item/74-tbba/74-tbba
Ok Terima kasih atas pembelajarannya