Samkoon Sk HMI connect Siemens PLC

SK series touch screen is connected to Siemens S7-200/300/400/1200/1500 series PLC. Establish a serial communication connection through the serial port in the touch screen and the serial port of the Siemens S7-200/300/400/1200/1500 series PLC, thereby achieving the purpose of operating the Siemens S7-200/300/400/1200/1500 series PLC.

1. Hardware connection

Connecting cables:

RS485-Siemens S7-200

SK Series touch screen COM1/COM2Siemens S7-200 Series
8 TX-8 TX-
9 TX+8 TX-

The SK series touch screen terminal is DB9F, and the Siemens S7-200 series PLC terminal is DB9M.

RS232-Siemens S7-300

SK Series touch screen COM1/COM2Siemens S7-300 Series
2 RX5 GND
3 TX2 RX
5 GND5 GND

The SK series touch screen terminal is DB9F, and the Siemens S7-300 series PLC MPI terminal is DB9M.

SK series connects to Siemens 300 MPI communication and requires Siemens special MPI communication cable.

Siemens S7-200/300/1200/1500 Ethernet connection

Connecting cables:

RJ45 straight-through network cable;

SK series touch screen RJ45 interface pin diagram is as follows:

2. Software settings

  • Select SIEMENS in the connected device service.
  • In the connected device service, select the corresponding item according to the connected PLC model or supported protocol.
  • Ensure that the communication parameters and PLC station number in the touch screen connection parameters are consistent with the connected PLC.
  • For the settings of the connected PLC, please refer to the relevant technical documentation of Siemens S7-200/300 series PLC.

SK series touch screen default connection parameters

SettingDefault Parameter ValueSetting Range
PLC TypeS7-200(PPI)S7-200(PPI)/S7-300(MPI)
Communication Port TypeRS485RS232/RS422/RS485
Baud Rate192001200/2400/4800/9600/19200/38400/57600/115200
Data Bit Length87/8
Parity BitEVENEVEN/ODD/NONE
Stop Bit Length11/2
PLC Station Number21~255
HMI Station Number00~255
Supported FeatureSupported?
Offline SimulationYes
Online SimulationYes
Expansion ModeYes: S7-200(PPI)
No: S7-300(MPI)

3. Register Description

Siemens S7-200/ S7-200tcp
TCP port number: 102

Register NameAddress FormatInput RangeRemarks
Idd.o0.0~4095.7Bit: Input Image Register, Read-only
Qdd.o0.0~4095.7Bit: Output Image Register
Mdd.o0.0~4095.7Bit: Memory Bit
Sdd.o0.0~4095.7Bit: Sequential Control Relay
SMddd.o0.0~4095.7Bit: Special Bit Memory, SM0.0-SM29.7 Read-only
Tddd0~255Bit: Timer Status, Read-only
Cddd0~255Bit: Counter Status, Read-only
VB_Bitddddd.o0.0~10239.7Bit: Variable Bit
IWdd0~4095Word: Input Image Register, Read-only, 8-bit register, each word occupies two addresses
QWdd0~4095Word: Output Image Register, 8-bit register, each word occupies two addresses
MWdd0~4095Word: Memory Word, 8-bit register, each word occupies two addresses
SWdd0~4095Word: Sequential Control Relay, 8-bit register, each word occupies two addresses
SMWddd0~4095Word: Special Bit Memory, SMW0-SMW29 Read-only, 8-bit register, each word occupies two addresses
VBddddd0~10239Word: Variable Bit, 8-bit register
VWddddd0~10238Word: Variable Word, 8-bit register, each word occupies two addresses
VDddddd0~10236Double Word: Variable Double Word, 8-bit register, each double word occupies four addresses
TVddd0~255Word: Timer Current Value
CVddd0~255Word: Counter Current Value
AIWdd0~62Word: Analog Input, Read-only, 8-bit register, each word occupies two addresses
AQWdd0~62Word: Analog Output, Write-only, 8-bit register, each word occupies two addresses
IDdddd0~4092Double Word: Input Image Register
QDdddd0~4092Double Word: Output Image Register
MDdddd0~4092Double Word: Memory Word
SDdddd0~4092Double Word: Sequential Control Relay
SMDdddd0~4092Double Word: Special Memory

Siemens S7-1200 tcp
TCP端口号:102

Register NameAddress FormatInput RangeRemarks
Idddd.o0.0~1024.7Bit: Input Image Register, Read-only
Qdddd.o0.0~1024.7Bit: Output Image Register
Mdddd.o0.0~8191.7Bit: Memory Bit
DB_BitDDD:dddd.o0:0.0~255:8192.7Bit: Bits of a Word in DB Block Storage Area, Block Number DD 0~255, Word within the block dddd 0~8192, Bit within the word o 0~7
IWdddd0~1024Word: Input Image Register, Read-only, 8-bit register, each word occupies two addresses
QWdddd0~1024Word: Output Image Register, 8-bit register, each word occupies two addresses
MWdddd0~8191Word: Memory Word, 8-bit register, each word occupies two addresses
DBWDDD:dddd0:0~255:8192Word: DB Block Storage Area, Block Number DD 0~255, Word within the block dddd 0~8192, 8-bit register, each word occupies two addresses
DBDDDD:dddd0:0~255:8192Double Word: DB Block Storage Area, Block Number DD 0~255, Word within the block dddd 0~8192, 8-bit register, each double word occupies four addresses
IDdddd0~1021Double Word: Input Image Register
QDdddd0~1021Double Word: Output Image Register
MDdddd0~8188Double Word: Auxiliary Memory

Siemens S7-300(MPI) / Siemens S7-300 / Siemens S7-300 tcp / Siemens S7-400 tcp
TCP端口号:102

Register NameAddress FormatInput RangeRemarks
Idddd.o0.0~4095.7Bit: Input Image Register
Qdddd.o0.0~4095.7Bit: Output Image Register
Mdddd.o0.0~4095.7Bit: Memory Bit
DB_BitDDD:dddd.o0:0.0~255:8192.7Bit: Bits of a Word in DB Block Storage Area, Block Number DD 0~255, Word within the block dddd 0~8192, Bit within the word o 0~7
IWdddd0~4095Word: Input Image Register, 8-bit register, each word occupies two addresses
QWdddd0~4095Word: Output Image Register, 8-bit register, each word occupies two addresses
MWdddd0~4095Word: Memory Word, 8-bit register, each word occupies two addresses
DBWDDD:dddd0:0~255:8192Word: DB Block Storage Area, Block Number DD 0~255, Word within the block dddd 0~8192, 8-bit register, each word occupies two addresses
DBDDDD:dddd0:0~255:8192Double Word: DB Block Storage Area, Block Number DD 0~255, Word within the block dddd 0~8192,8-bit register, each double word occupies four addresses
IDdddd0~4092Double Word: Input Image Register
QDdddd0~4092Double Word: Output Image Register
MDdddd0~4092Double Word: Auxiliary Memory

LOGO_TCP

Register NameAddress FormatInput RangeRemarks
Idd1~64Bit: Input Image Register
Qdd1~64Bit: Output Image Register
Mddd1~112Bit: Memory Bit
VBdddd.o0.0~1023.7Bit: Intermediate Register
AIdd1~16Word: Input Image Register
AQdd1~16Word: Output Image Register
AMdd1~64Word: Memory Word
VWdddd0~511Word: Intermediate Register

Note:
d represents decimal, the input range is 0-9;
o represents octal, the input range is 0-7; DDD represents the block number, the input range is 0-255;

Word: Indicates that the register can only be used as a word;
Double word: indicates that the data type of this register must be 32-bit during configuration;
Bit: indicates that the register can only be used as a bit;
Read-only: Indicates that the register can only be read but not written;

Different device models may support different register names and different ranges.

4. PLC configuration steps

1200 Series Ethernet Communication Configuration

Use Porto V15 or above to create a PLC program, right-click on the project properties, and configure the PLC IP and protection properties. As shown below:

Set the PLC IP to be in the same network segment as the touch screen, for example: the touch screen IP is 192.168.2.110, the PLC IP should be 192.168.2.120, the first three digits of the IP 192.168.2 are the same, and the last digit is different

Configure PLC protection attributes and select “Full Read Permission”. Some PLCs have “Allow access from remote partners” and need to check “Allow”

HMI access to the DB block needs to be configured as follows. Configuration errors will cause the HMI to prompt a communication error. The DB block configuration steps are as follows:

Create DB block and select manual allocation

Right click on properties->select not to optimize

Note:

If HMI keeps prompting 201 error, check whether the PLC IP and port number are configured normally.
The computer can ping HMI and PLC normally.
HMI connection IP and port number settings are normal
Run Botu v15 or above, switch to online, select the online maintenance function, select format memory card, re-download the PLC program after formatting is completed, and observe whether the HMI still prompts a communication error

400 Series Ethernet Communication Configuration

Configure special addresses such as LW45000 and LW45001

LW45000+station number*2 Configure the base corresponding to the current station number (0~7)

LW45001+station number*2 Configure the slot corresponding to the current station number (1~31)

For example, the current station number of the HMI connected device is 2, the base is 0, and the slot is 2. You need to configure LW45004=0, LW45005=2, and so on for other station numbers.

300 Series Ethernet Communication Configuration

300 series serial port communication requires the use of special MPI communication cables. Direct connection of the serial port and PLC cannot establish a normal connection.

The 300 series uses the DB block, which is the same as the above-mentioned 1200 series PLC. The DB block needs to be configured in the PLC program.

5. Tag import function

Siemens 1200/1500 series PLC programming software Botu v15 or above supports the variable label export function. HMI programming software supports the import of variable label tables exported by Botu v15 or above.

Specific steps are as follows

Define and export variable tables

Modify the file format to xls type

HMI software uses variable tables

Leave a Comment