Siemens S7-1200/S7-1500 (S7CommPlus, Symbolic Addressing) (Ethernet)
PLC Connection Guide
Supported Series
Siemens S7-1200 Firmware V4.6.1 or previous versions, S7-1500 Firmware V1.8.0 ~ V3.1.0, ET2000SP Series
PLC simulation: SIMATIC PLCSIM Advanced V3.0 and V4.0
Website: http://www.siemens.com/entry/cc/en/
HMI Setting
Parameters | Recommended | Options | Notes |
---|---|---|---|
PLC type | Siemens S7-1200/S7-1500 (S7CommPlus, Symbolic Addressing) (Ethernet) | ||
PLC I/F | Ethernet | ||
Port no. | 102 | ||
On-line simulator | Yes | Multi-HMI connect | TIA Settings *Note |
Limitations
Not supported on iP/iE Series HMI models.
*Note: According to Connection resource / HMI Communication settings
The screenshot shows the TIA Portal interface for configuring connection resources. It displays details like maximum number of resources, PG communication, HM communication, and S7 communication, along with available and used resources. Key sections highlighted are 'Connection resources' and 'Overview of addresses'.
PLC Settings
- Support PLC firmware version V2.80 and previous versions.
- To support CPU 1510SP F-1 PN (ET200S), the access level must be set to full access incl.
The image displays the 'Select the access level for the PLC' dialog. Options include 'Full access incl. fail-safe (no protection)', 'Full access (no protection)', 'Read access', 'HM access', and 'No access (complete protection)'. Each option indicates which functions (HMI, Read, Write, Fail-safe, Access per Password) are permitted. 'Full access incl. fail-safe (no protection)' allows all standard and fail-safe functions without a password.
PLCs with firmware version S7-1200/FW4.2/ & S7-1500/FW1.7/ and above support HMI access using a password function.
Note: If the user sets the HMI access level, the password for full access or read access must be used to communicate.
The image displays the 'IP Address Settings' dialog, allowing configuration of IP address, Port, Password Setting (Enable/Disable, Password input), Timeout, Turn around delay, and the number of resending commands.
Legacy and secure PG/PC communication permitted
Note: The option '[Only allow secure PG/PC and HMI communication]' is not supported and should not be checked.
Legacy and secure PG/PC communication permitted:
Communication security to PG/PC and HMI is determined by the options of both communication partners. Communication with TIA Portal < V17 and HMI systems < V17 is possible. Higher TIA Portal versions require separate activation of Legacy communication. Communication performance may be higher when only legacy PG/PC communication is used.
The checkbox 'Only allow secure PG/PC and HMI communication' is shown.
Get Tag Info
- In S7-1500 program software, create a PLC program and tags, then download to the PLC.
- Select 'Go offline'. EasyBuilder will connect to the PLC and get tag data. In PLC type, select "Siemens S7-1200/S7-1500 (S7CommPlus, Symbolic Addressing) (Ethernet)".
The image shows the 'Device Settings' dialog in EasyBuilder Pro. It includes fields for Name, Location, Device Type (Siemens S7-1200/S7-1500 (Symbolic Addressing) (Ethernet)), Device ID, I/F (Ethernet), and IP address/Port. Options for 'Support off-line simulation on HMI' and 'Use UDP (User Datagram Protocol)' are also present. Buttons include 'Settings...', 'Open Device Connection Guide...', 'OK', and 'Cancel'.
3. Click "Settings...", input PLC IP address.
The image displays the 'IP Address Settings' dialog, similar to the one seen earlier, for entering the PLC's IP address and Port number.
4. Check the PLC that is not connected to any PC. Click "Get Tag Info...".
The image shows the 'System Parameter Settings' window with a 'Device list'. It displays connected devices, including a local HMI and a Siemens S7-1500. The 'Get Tag Info...' button is highlighted.
5. Added Tag Manager that allows selecting the Siemens S7-1500 PLC tags to be imported.
The 'Tag Manager' window is displayed, showing a hierarchical view of PLC tags, including Blocks, UDTS, and Tags. Options to 'Select All', 'Discard All', 'OK', and 'Cancel' are available. A note states '* Prohibit duplicating structure name'.
6. Create an object and click read address “Settings...”
The 'New Bit Lamp/Toggle Switch Object' dialog is shown, with tabs for 'General', 'Security', 'Shape', and 'Label'. The 'General' tab allows for a 'Comment', selection between 'Bit Lamp' and 'Toggle Switch', and setting the 'Read address' including Device, Address, and Index. The 'Settings...' button for the read address is highlighted.
7. In PLC name select S7-1200/1500 then click Tag.
The 'New Bit Lamp/Toggle Switch Object' dialog is shown again, with 'Device' set to 'Siemens S7-1200/S7-1500' and a 'Tag' field. An 'Invert signal' checkbox is present. The 'Settings...' button for the tag is highlighted.
8. Select PLC tag.
The 'Tag Manager' window is displayed again, showing a list of PLC tags with their Data type and Description. The selected tag is 'PLC.Blocks.TONY.Test_Bool'. The 'Ok' button is highlighted.
Import Tags
Apart from using 'Get Tag' on HMI, tags from Siemens TIA project can be imported in EasyBuilder Pro.
* At least one db file must be imported. If only plc tags cannot be imported successfully.
1. In System Parameter Settings add S7-1200/1500 into the device list and then click [Import Tags...].
The 'System Parameter Settings' window is shown, with the device list including a local HMI and a Siemens S7-1500. The 'Import Tags...' button is highlighted.
2. Select the *.ap*(*.apxx) file.
When the *.ap file cannot be imported, the user can try [Project] -> [Archive], generate a *.zapxx file, decompress it and re-import it.
*Note1. Before importing TIA Files, users need to compile the file and download it to the PLC.
The image shows the TIA Portal interface with the 'Project' menu open, highlighting 'Archive...' and 'Save as...'. The file path indicates a project named 'EW_Nysa_Czyszczarka'.
3. Select the tags to be imported and then click OK.
(Support multiple devices in the same project)
The 'Archive' dialog is displayed, showing the source to be archived, select settings for archiving (Archive as compressed file, Discard restorable data, Add date and time to target name), and target path. The 'Archive' and 'Cancel' buttons are visible.
4. Tags are imported successfully.
A 'EasyBuilder Pro' dialog box appears with the message "Imported tag information successfully." and an 'OK' button.
Support Device Type:
Data type | EasyBuilder data format | Memo |
---|---|---|
Bool | bit | |
Byte | 16-bit BCD, Hex, Binary, Unsigned | 8-bit |
SInt | 16-bit BCD, Hex, Binary, Signed | 8-bit |
USInt | 16-bit BCD, Hex, Binary, Unsigned | 8-bit |
Word | 16-bit BCD, Hex, Binary, Unsigned | 16-bit |
Int | 16-bit BCD, Hex, Binary, Signed | 16-bit |
UInt | 16-bit BCD, Hex, Binary, Unsigned | 16-bit |
DWord | 32-bit BCD, Hex, Binary, Unsigned | 32-bit |
DInt | 32-bit BCD, Hex, Binary, Signed | 32-bit |
Real | 32-bit Float | 32-bit |
UDInt | 32-bit BCD, Hex, Binary, Unsigned | 32-bit |
String | Max: 256 | |
WString | Read only | |
DTL | ||
IEC_COUNTER | ||
IEC_DCOUNTER | ||
IEC_SCOUNTER | ||
IEC_UCOUNTER | ||
IEC_UDCOUNTER | ||
IEC_USCOUNTER | ||
Time | 32-bit BCD, Hex, Binary, Unsigned | DWord |
Time_Of_Day | 32-bit BCD, Hex, Binary, Unsigned | DWord |
Array | Bool, Byte, SINT, USInt, Word, Int, Ulnt, DWord, Dint, Real, UDInt, String | |
Struct | Bool, Byte, SINT, USInt, Word, Int, Ulnt, DWord, Dint, Real, UDInt, String |
String array can be used with index register.
The image shows the 'Device Settings' dialog for a Siemens S7-1500, with fields for Device, Tag, Data type (WORD), and Address format. The 'Index' field is set to 'Index 0 (16-bit)' and the 'Index register' checkbox is checked. 'Element count' is 32.
Both single-dimensional arrays and multi-dimensional arrays can start with non-zero values. Example: [1..9], or [1..3,2..5]
Importing data types other than those in the above table may result in failure to communicate.
Address tags do not allow the use of special characters, such as: [ ] " " etc., which may cause unexpected situations such as import exceptions or communication exceptions.
Wiring Diagram:
Ethernet cable:
The diagram shows an Ethernet cable with 8 wires and their corresponding pin assignments:
- 1: W/Orange
- 2: Orange
- 3: W/Green
- 4: Blue
- 5: W/Blue
- 6: Green
- 7: W/Brown
- 8: Brown