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.
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.
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.
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.
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.
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.
| Setting | Where it is set | Recommended practice | Effect if wrong |
|---|---|---|---|
| Project name and path | New project dialog | Pure English path, name with machine tag | Special characters cause faults |
| Device name | CPU properties, general | Matches the site equipment tag | Online identification fails |
| Firmware version | Chosen when adding the device | Matches the real hardware | Cannot download or go online |
| IP address | Ethernet interface properties | Per site subnet plan, no duplicates | Address conflict, no communication |
| Subnet mask | Ethernet interface properties | Same as other devices in the subnet | Cross-subnet communication fails |
| Clock memory byte | System and clock memory | Enable and record the address | Address referenced wrongly in program |
| System memory byte | System and clock memory | Enable and record the address | First-scan bits unavailable |
| Start-up mode | Start-up properties | Choose to suit the process | Power-up behaviour differs from intent |
| Retentive memory area | Retentive memory | Keep only what must be retained | Oversized area hurts performance |
| Protection and password | Protection properties | One policy for commissioning and operation | Lost password or uncontrolled access |
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.
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.
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.