MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do you download a program to the simulated PLC in TIA Portal?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How do you download a program to the simulated PLC in TIA Portal?

Downloading to a simulated PLC (S7-PLCSIM) in TIA Portal means running the program on a computer with no real hardware, to debug logic offline, prove interlocks and simulate I/O. The essentials are to configure the project and the simulated CPU correctly and establish a connection, then follow the download procedure — while keeping clearly in mind what simulation can and cannot do.

What simulation can and cannot do

Simulation suits verifying sequential logic, timing, arithmetic and some communication protocols, and lets you get a program running and test the interlocks without any hardware. It is not the same as a real machine, though: the I/O is simulated with no real load, and the scan cadence, fault behaviour and diagnostics differ from the real hardware, while functions involving motion control, high-speed counting and hard real-time synchronisation often cannot be fully simulated. A pass in simulation therefore does not guarantee a pass on site.

Start the simulator and configure the interface

Start the simulation from the project, which creates a virtual CPU; then in the download dialog select the simulated PLC as the target interface and confirm the choice of PC network adapter and virtual adapter. If the simulated target does not appear in the download dialog, the simulator is usually not running or the interface selection is wrong; settle that first rather than clicking download repeatedly in a "no device found" state.

The download procedure and what gets downloaded

You can download the whole project or just the program blocks, or the hardware configuration alone. After changing the hardware configuration (adding a module, changing an address, say) a full download is usually needed, otherwise the structure of the simulated CPU will not match the project. When only the program logic has changed, downloading the program blocks is faster and will not disturb a hardware setup already proved correct. Make sure the project compiles before downloading; a compile error aborts the download part way through.

Operating and observing in simulation

Once the simulated CPU exists, watch variables in a watch table or status table, toggle inputs on the simulation panel to mimic field signals and watch outputs on the indicator lamps, and set an input point manually to check the program's response. The simulation panel usually also allows forcing and holding of inputs and outputs, which makes it easy to build edge conditions. Note that what the panel displays is a simulated value, not the actual level on a real terminal.

Common problems and what to do

A download that reports the interface is unavailable usually means the simulator is not running or a firewall is blocking it. If the program will not run after the connection is made, check whether the CPU is in run mode. Time-related functions behaving oddly is usually because simulation does not provide a real-time clock or the precise timing of hardware interrupts. Deal with these at the configuration level first, rather than bending the program to suit the simulator.

Simulated versus real PLC capability at a glance

CapabilitySimulated PLCReal PLCWhat to watch
Sequential and interlock checksSupportedSupportedThe main use of simulation
Digital I/OSimulated on the panelConnected to real signalsNo real levels in simulation
Analog handlingYou can enter valuesReal ranges wired inRange and accuracy not comparable
CommunicationSome protocols supportedAll supportedGo by the manual's support list
High-speed countingGenerally inaccurateCounted in hardwareDo not calibrate frequency in simulation
Motion controlUsually unsupportedSupportedNeeds real-machine verification
Real-time clockEmulated or absentHardware clockTime logic must be retested on real hardware
Diagnostics and faultsDifferent from realityReal module diagnosticsDiagnostic code needs real-machine checks
Scan cadenceTied to the PC's performanceSet by the hardwareBe careful with cadence-sensitive programs

Notes

The value of simulation is to solve in the office what can be solved there, cutting on-site commissioning time. Anything strongly tied to real hardware behaviour, such as module diagnostics, determinism and load driving, must still be verified on the machine. Keep simulation results and real-machine results recorded separately, so that a simulation conclusion is never treated directly as a site conclusion.

References

PLC program structure and language conventions follow GB/T 15969.3 (identical to IEC 61131-3); the safety requirements for equipment operation, electrical connection, protection and earthing follow GB 5226.1 and the equivalent international standard IEC 60204-1. The functions and limits supported by the simulation software are as stated in the manufacturer's manual, and must not be used as the basis for accepting the real machine.

Points to watch

⚠️ Three common traps:
(1) Treating a pass in simulation as a pass on site, when the real machine still fails on timing, loading or diagnostic differences;
(2) Changing the hardware configuration but downloading only program blocks, so the simulated CPU structure no longer matches the project and behaviour is inconsistent;
(3) Checking high-speed counting or motion control in simulation, where the result differs greatly from reality.

Before downloading to a real PLC, make sure the machine is in a safe state with no risk of a mechanism moving, and take a backup of the program. Simulation conclusions do not replace on-site verification: before commissioning, retest the critical functions and confirm the safety circuits on the real machine.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL