当前位置:网站首页>【工控老马】西门子PLC Siemens PLC TCP协议详解
【工控老马】西门子PLC Siemens PLC TCP协议详解
2022-07-02 09:42:00 【工控老马】
Siemens PLC TCP 协议详解
说明:蓝色文字表示已经破解部分,[红色文字] 表示对破解部分数字的说明,黑色文字表示对破解部分的进一步说明,黑色斜体加粗文字表示未破解部分,高亮文字部分表示驱动需要处理的部分,未标高亮部分驱动处理保持默认即可。
1.初始化连接
1.1 S7-200

[PLC -> PC]
03 00 00 16 11 d0 00 01 53 38 00 c0 01 09 c1 02 4d 57 c2 02 4d 57
1.2 S7-300
//--------------------------------------------------------------------------------
[PC -> PLC]
03 00 00 16 11 e0 00 00 00 00 00 c1 02 01 00 c2 02 01 02 c0 01 09

//--------------------------------------------------------------------------------
[PLC -> PC]
03 00 00 16 11 d0 00 00 44 31 00 c0 01 09 c1 02 01 00 c2 02 01 02
1.3 S7-400
//--------------------------------------------------------------------------------
[PC -> PLC]
03 00 00 16 11 e0 00 00 00 01 00 c1 02 02 00 c2 02 02 23 c0 01 09
//--------------------------------------------------------------------------------
[PLC -> PC]
03 00 00 16 11 d0 00 00 44 31 00 c0 01 0ac1 02 01 00 c2 02 01 02
2 初始化通讯
//--------------------------------------------------------------------------------
[PC -> PLC]
03 00 00 19 02 f0 80 32 01 00 00 cc c1 00 08 00 00 f0 00 00 01 00 01 03 c0

//--------------------------------------------------------------------------------
[PLC -> PC]
03 00 00 1b 02 f0 80 32 03 00 00 cc c1 00 08 00 00 00 00 f0 01 00 01 00 01 00 f0
3.读数据
3.1 典型示例 [M0]
//--------------------------------------------------------------------------------
[PC -> PLC]
03 00 00 1f 02 f0 80 32 01 00 00 00 00 00 0e 00 00 04 01 12 0a 10 02 00 01 00 00 83 00 00 00

//--------------------------------------------------------------------------------
[PLC -> PC]
03 00 00 1a 02 f0 80 32 03 00 00 00 00 00 02 00 05 00 00 04 01 ff 04 00 08 ec
3.2 参考示例[VB0 VB254 VB255]
//--------------------------------------------------------------------------------
[PC -> PLC]


//--------------------------------------------------------------------------------
[PLC -> PC]
4 写数据
4.1 S7-200
4.1.1 典型示例 [MB0]
//--------------------------------------------------------------------------------
[PC -> PLC]


//--------------------------------------------------------------------------------
[PLC -> PC]
4.1.2 参考示例 [Q0.0]
//--------------------------------------------------------------------------------
[PC -> PLC]

//--------------------------------------------------------------------------------
[PLC -> PC]
4.2 S7-300
4.2.1 Typical Example [MB0]
//--------------------------------------------------------------------------------
[PC -> PLC]

//--------------------------------------------------------------------------------
[PLC -> PC]
4.2.2 Typical Example [M0.3]
//--------------------------------------------------------------------------------
[PC -> PLC]

//--------------------------------------------------------------------------------
[PLC -> PC]
4.2.3 Typical Example [MW0]
//--------------------------------------------------------------------------------
[PC -> PLC]

//--------------------------------------------------------------------------------
[PLC -> PC]
4.2.4 Typical Example [MW0] 另一种协议帧,区别在变量数据排列格式和变量数目
//--------------------------------------------------------------------------------
[PC -> PLC]

//--------------------------------------------------------------------------------
[PLC -> PC]
边栏推荐
- SVO2系列之深度濾波DepthFilter
- HOW TO ADD P-VALUES TO GGPLOT FACETS
- How to Create a Nice Box and Whisker Plot in R
- File operation (detailed!)
- What week is a date obtained by QT
- HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R
- 输入一个三位的数字,输出它的个位数,十位数、百位数。
- SCM power supply
- B high and beautiful code snippet sharing image generation
- pgsql 字符串转数组关联其他表,匹配 拼接后原顺序展示
猜你喜欢

How to Visualize Missing Data in R using a Heatmap

jenkins 凭证管理

Dynamic debugging of multi file program x32dbg

Three transparent LED displays that were "crowded" in 2022
![[visual studio 2019] create MFC desktop program (install MFC development components | create MFC application | edit MFC application window | add click event for button | Modify button text | open appl](/img/6a/111da81436659c7502648907ec1367.jpg)
[visual studio 2019] create MFC desktop program (install MFC development components | create MFC application | edit MFC application window | add click event for button | Modify button text | open appl

HOW TO EASILY CREATE BARPLOTS WITH ERROR BARS IN R

YYGH-BUG-04

File operation (detailed!)

YYGH-BUG-04

HOW TO ADD P-VALUES ONTO A GROUPED GGPLOT USING THE GGPUBR R PACKAGE
随机推荐
PX4 Position_ Control RC_ Remoter import
小程序链接生成
[geek challenge 2019] upload
CMake交叉编译
时间格式化显示
Pyqt5+opencv project practice: microcirculator pictures, video recording and manual comparison software (with source code)
This article takes you to understand the operation of vim
数据分析 - matplotlib示例代码
Filtre de profondeur de la série svo2
JZ63 股票的最大利润
K-Means Clustering Visualization in R: Step By Step Guide
Cmake cross compilation
GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT
(C语言)八进制转换十进制
b格高且好看的代码片段分享图片生成
基于Arduino和ESP8266的Blink代码运行成功(包含错误分析)
PgSQL string is converted to array and associated with other tables, which are displayed in the original order after matching and splicing
B high and beautiful code snippet sharing image generation
文件操作(详解!)
Leetcode209 长度最小的子数组