![Logo](https://cloud.githubusercontent.com/assets/26493472/24761704/7bf03ca8-1aec-11e7-8db8-3e7e2480384a.png)
# Introduction
If you have TIA Portal but don't have any machine to program, then this project is for you. It is a 3D simulation of *Packing Machine* which is controlled by *Siemens S7-PLCSIM* (virtual PLC). So basically you can program PLCSIM using TIA Portal, and test the program visually in the 3D graphical simulation.
# Prequisites
- **Windows** operating system
- Installed [**TIA Portal**](http://www.industry.siemens.com/topics/global/en/tia-portal/Pages/default.aspx) and [**Simatic S7-PLCIM**](http://w3.siemens.com/mcms/simatic-controller-software/en/step7/simatic-s7-plcsim/pages/default.aspx) (both tested with V13)
- Download and unzip [**NetToPLCSim**](https://sourceforge.net/projects/nettoplcsim/files/latest/download)
- Clone/download this repository
# Get Started
It is important to do the following steps in order they are written in.
## NetToPLCSim
1. Restart your computer (optional, read the **Note** below).
2. Start **NetToPLCsim.exe** as Administrator.
3. If dialog window about Port 102 pops up, click on Yes to make the port available.
4. In NetToPLCSim open the **defualt.ini** file contained in this repo.
5. Click on *Start Server* button.
>**Note:** The computer restart is not needed if you haven't started TIA Portal or PLCSIM yet since the computer power-up.
![Screen](https://cloud.githubusercontent.com/assets/26493472/24073674/7a75d8ba-0bfb-11e7-92a4-8159509bccb8.png)
## PLCSIM
1. Start **PLCSIM**.
2. Create new *S7-1200* project or open existing one.
## TIA Portal
1. Start **TIA Portal**.
2. Open the **PackingMachine_Clean** project contained in this repo.
3. Download the project to running PLCSIM instance.
## Packing Machine App
1. Start the **PackingMachine.exe** app contained in this repo.
2. Choose screen resolution and hit Play button.
3. Click on the *Connect* button in lower left corner.
4. If everything goes ok, it should change its text to *Disconnect* (which means it is successfully connected to PLCSIM).
![image](https://cloud.githubusercontent.com/assets/26493472/24073735/659e09c0-0bfc-11e7-9e04-e1699d42539d.png)
# How to Program
Now you can *Save as* the opened PackingMachine_Clean TIA Portal project under different name and start programming. The list of Inputs and Outputs can be found in the same-named PLC Tag tables. Even in the simulation app after pressing Esc or Space and clicking on the Help icon, a list of keyboard shortcuts is present which can be used to manually trigger individual outputs (only when Disconnected from PLCSIM).
![image](https://cloud.githubusercontent.com/assets/26493472/24757240/e58317f2-1ade-11e7-9439-65ba47b2e0b9.jpg)
After pressing **Esc** a pause menu is triggered. You can also use **Space** shortcut to restart the scene.
![image](https://cloud.githubusercontent.com/assets/26493472/24073817/0aae2f3e-0bfe-11e7-9476-10efcc76502c.png)
# Support
If you have any questions, feel free to open New Issue.
# Special Thanks to
* **Davide Nardella** for creating Sharp7
* **Thomas Wiens** for creating NetToPLCSim
* **Michele Cattafesta** (www.mesta-automation.com) for [great tutorial](https://www.mesta-automation.com/how-to-write-a-siemens-s7-plc-driver-with-c-and-sharp7) on Sharp7
没有合适的资源?快使用搜索试试~ 我知道了~
面向想要学习PLC编程但无法访问真实世界的机器或结构来学习编程的学生的项目。___下载.zip
共295个文件
meta:129个
cs:33个
asset:16个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 65 浏览量
2023-04-16
20:19:44
上传
评论
收藏 129.06MB ZIP 举报
温馨提示
面向想要学习PLC编程但无法访问真实世界的机器或结构来学习编程的学生的项目。___下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
面向想要学习PLC编程但无法访问真实世界的机器或结构来学习编程的学生的项目。___下载.zip (295个子文件)
PackingMachine_Clean.ap13 8KB
DefaultWsdlHelpGenerator.aspx 59KB
DefaultWsdlHelpGenerator.aspx 57KB
ProjectSettings.asset 39KB
LightingData.asset 12KB
InputManager.asset 5KB
QualitySettings.asset 5KB
GraphicsSettings.asset 4KB
NavMeshAreas.asset 4KB
Physics2DSettings.asset 4KB
TagManager.asset 4KB
DynamicsManager.asset 4KB
UnityConnectSettings.asset 4KB
EditorSettings.asset 4KB
AudioManager.asset 4KB
TimeManager.asset 4KB
NetworkManager.asset 4KB
ClusterInputManager.asset 4KB
EditorBuildSettings.asset 4KB
resources.assets 4.26MB
sharedassets0.assets 1.8MB
globalgamemanagers.assets 34KB
ScreenSelector.bmp 339KB
Compat.browser 2KB
machine.config 27KB
machine.config 17KB
web.config 11KB
config 2KB
Sharp7.cs 125KB
PlcConnection.cs 13KB
ModalMenu.cs 5KB
MoveActuator.cs 4KB
PlcIO.cs 4KB
RigidbodyMoveActuator.cs 4KB
GrabActuator.cs 3KB
GrabHands.cs 3KB
RotationsSensor.cs 3KB
Package.cs 2KB
MouseOrbit.cs 2KB
PackageCap.cs 1KB
PlcConnectDisconnect.cs 1KB
MainPlcProgram.cs 1KB
RotationSensor.cs 1KB
PlcProgram.cs 1KB
BallSpawner.cs 1002B
StickOnTouch.cs 929B
PositionSensor.cs 887B
Button.cs 866B
ConstraintYByX.cs 793B
EmissionActuator.cs 665B
RaycastSensor.cs 664B
RigidbodyOnTouch.cs 648B
RigidbodyParentUnused.cs 609B
SoundActuator.cs 543B
RigidbodyMotorActuator.cs 453B
Billboard.cs 402B
PackageBallCatcher.cs 380B
InsideSensor.cs 357B
MotorActuator.cs 342B
OnClick.cs 283B
Tests.cs 161B
mscorlib.dll 2.38MB
mono.dll 2.02MB
UnityEngine.dll 1.14MB
System.dll 1.02MB
Mono.Security.dll 287KB
System.Core.dll 260KB
UnityEngine.Networking.dll 246KB
UnityEngine.UI.dll 237KB
Assembly-CSharp.dll 153KB
MonoPosixHelper.dll 100KB
Assembly-CSharp-firstpass.dll 75KB
UnityEngine.PlaymodeTestsRunner.dll 30KB
Assembly-UnityScript-firstpass.dll 2KB
PackingMachine.exe 17.36MB
canada_montreal_thea.exr 67.26MB
ReflectionProbe-0.exr 1.18MB
PackingMachine.fbx 483KB
.gitattributes 32B
.gitignore 1KB
globalgamemanagers 31KB
PEData.idx 193KB
app.info 30B
browscap.ini 305KB
default.ini 141B
TexturesCom_WindowsBlocks0017_1_seamless_S.jpg 653KB
TexturesCom_WindowsBlocks0017_1_seamless_NOR.jpg 653KB
specimenposter_4967.jpg 236KB
level0 166KB
settings.map 3KB
HaloGlowOrange.mat 5KB
HaloGlowRed.mat 5KB
Glass.mat 5KB
InteriorHDR.mat 5KB
LeakyBronze.mat 5KB
GalvanizedMetal.mat 5KB
OrangeLight.mat 5KB
BluePlastic.mat 5KB
GreenPlastic.mat 5KB
RedPlastic.mat 5KB
共 295 条
- 1
- 2
- 3
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功