MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do you add an S7-1200 CPU in TIA Portal and set its parameters?
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 add an S7-1200 CPU in TIA Portal and set its parameters?

Creating a project for an S7-1200 in TIA Portal comes down to creating the project, adding the device, setting the CPU properties, allocating I/O start addresses, and configuring protection and memory. There are not many steps, but a wrong parameter often only shows up after the machine goes live. The sections below follow the order of work and the settings that matter; the exact tabs and default values depend on the version in use.

1. Before you start

Confirm three things first. The engineering software version must support the firmware version of the target CPU, since firmware newer than the software may not be configurable. Prepare a clean project name and storage path, preferably a pure English path. And record the actual hardware on site, including the CPU type, whether a signal board is fitted, and the types and order of the expansion modules. Settling these before creating the project avoids repeated changes of device later.

2. Create the project and add the device

Start the software, create a project, fill in the project name, path and author details, then enter the project view. In the project tree, find devices and networks and choose to add a new device; in the controller catalogue, locate the target CPU by family and type and confirm its firmware version. Once added, the software opens the device view automatically, with the device overview on the left and the properties panel on the right. Where a project already exists, the hardware configuration can instead be imported and checked.

3. Set the basic CPU parameters

Select the CPU in the device view and work through the properties panel: the device name, comments and location identifier under general information; the IP address, subnet mask and router usage on the Ethernet interface; the enabling of the system and clock memory bytes and their addresses; the start-up mode and whether starting is permitted under certain conditions; the retentive memory area; and the protection level and access password. Keep the settings consistent with the site network plan, and make sure no two devices share an address in the same subnet.

4. Configure I/O and module start addresses

Add the signal board and expansion modules in their physical order, then check each module's start address. Where the program needs to use a particular address block, the start address can be changed in the module properties, but the address ranges of the modules must not overlap. Analog channel addresses accumulate per channel and correspond one to one with the addresses read in the program. Once configured, write the module positions and addresses into an I/O allocation table for later maintenance and continuity checks.

5. Protection, time and memory card

Protection settings cover the access level, the password for read and write access, and know-how protection. Password policy for commissioning and for normal operation should be planned as one, so that commissioning ends without a lost password or a password passed round the shift. For time, set the system clock and time zone and decide whether it is synchronised over communication. Where a memory card is used for project transfer or data logging, confirm that the card type and capacity are supported by the CPU, and follow the manual for formatting and write protection.

6. CPU parameters and recommended settings

SettingWhere it is setRecommended practiceEffect if wrong
Project name and pathNew project dialogPure English path, name with machine tagSpecial characters cause faults
Device nameCPU properties, generalMatches the site equipment tagOnline identification fails
Firmware versionChosen when adding the deviceMatches the real hardwareCannot download or go online
IP addressEthernet interface propertiesPer site subnet plan, no duplicatesAddress conflict, no communication
Subnet maskEthernet interface propertiesSame as other devices in the subnetCross-subnet communication fails
Clock memory byteSystem and clock memoryEnable and record the addressAddress referenced wrongly in program
System memory byteSystem and clock memoryEnable and record the addressFirst-scan bits unavailable
Start-up modeStart-up propertiesChoose to suit the processPower-up behaviour differs from intent
Retentive memory areaRetentive memoryKeep only what must be retainedOversized area hurts performance
Protection and passwordProtection propertiesOne policy for commissioning and operationLost password or uncontrolled access

7. Notes

Once configuration is done, validate it end to end in the order of compile, download, monitor online, then power-cycle and confirm again. Compile without errors, download, check online that every module is present and that addresses match the program, then power-cycle to confirm the retentive data and start-up behaviour are as intended. A download on a real machine belongs in a planned stop with someone watching; never overwrite the program on a live production line.

8. References

Programming languages, program organisation and data type definitions follow GB/T 15969.3, Programmable controllers, Part 3: Programming languages, equivalent to the international IEC 61131-3. General requirements and environmental conditions for PLC equipment follow GB/T 15969.2 and IEC 61131-2, and electrical installation and earthing of control equipment follow GB 5226.1 and IEC 60204-1. The specific property pages, defaults and firmware support ranges are as stated in the official manual.

9. Points to watch

⚠️ Three common traps:
(1) Picking the newest firmware version when adding the device, so it does not match the real hardware and download keeps failing before the mismatch is spotted;
(2) Finding only after commissioning that the protection password has been lost in a commissioning engineer's hands, leaving access uncontrolled but no one daring to reset it;
(3) Changing a module start address by hand without checking for overlap, so two modules fight over the same address block and overwrite each other's data.

A program download requires the machine to be stopped with someone watching, and mechanical and electrical safety must be confirmed first. Parameters tied to safety circuits must not be altered casually, and any change must be re-verified and recorded.

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