当前位置:网站首页>【工控老马】西门子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]
边栏推荐
- FLESH-DECT(MedIA 2021)——一个material decomposition的观点
- 自然语言处理系列(一)——RNN基础
- Log4j2
- Seriation in R: How to Optimally Order Objects in a Data Matrice
- Mish shake the new successor of the deep learning relu activation function
- uniapp uni-list-item @click,uniapp uni-list-item带参数跳转
- Mish-撼动深度学习ReLU激活函数的新继任者
- QT meter custom control
- Repeat, tile and repeat in pytorch_ The difference between interleave
- Seriation in R: How to Optimally Order Objects in a Data Matrice
猜你喜欢
随机推荐
conda常用命令汇总
to_ Bytes and from_ Bytes simple example
[geek challenge 2019] upload
MySQL stored procedure cursor traversal result set
BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
PHP 2D and multidimensional arrays are out of order, PHP_ PHP scrambles a simple example of a two-dimensional array and a multi-dimensional array. The shuffle function in PHP can only scramble one-dim
多文件程序X32dbg动态调试
Jenkins用户权限管理
(C语言)3个小代码:1+2+3+···+100=?和判断一个年份是闰年还是平年?和计算圆的周长和面积?
测试左移和右移
HR wonderful dividing line
YYGH-BUG-05
CONDA common command summary
How to Create a Beautiful Plots in R with Summary Statistics Labels
[visual studio 2019] create and import cmake project
YYGH-10-微信支付
PyTorch nn.RNN 参数全解析
Cluster Analysis in R Simplified and Enhanced
GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT
Applet link generation