SFB19_SFB20启停远程设备实例

sfb19_sfb20

  • SFB19: 启动远程CPU(暖启动/冷启动)
  • SFB20:停止远程CPU
  • 注意操作的是远程cpu,前提一定存在一个中间设备做S7通信
  • sfb19/20适用于于300/400PLC,且可以选择启用400冗余系统中的其中一个PLC或者两个PLC。

应用

  • 实例以300PLC作为S7的服务器,400PLC作为S7的客户端;组态工作在400侧实现,控制300PLC启停。
  • 400侧netPro配置如下,300PLC的TSAP默认是03.02,表示Rack0,slot2。
  • 只做启停,不涉及数据交换,不用写PUT/GET
  • 组态后编译下载进PLC
  • SFB19/20编程如下:
    • id:填S7 LOCAL ID
    • pi_name:此处是标准S7,填写P_PROGRAM的ASCII code.
  • pi_name填写规则:
Pointer to the memory area in which the 
name of the program (**ASCII code**) to be 
started is located. This name must not 
contain more than 32 characters. 

With an S7 PLC, it must be P_PROGRAM.

With an H system, the following names are possible:

 - P_PROGRAM (the start job is valid for all CPUs in the H system.)

 - P_PROGR_0 (the start job is valid for the CPU in Rack 0 in the H system.)

 - P_PROGR_1 (the start job is valid for the CPU in Rack 1 in the H system.)

  • 其他配置详情可以参考帮助,可以实现H-SYStem的启停,也可以实现暖启动/冷启动
posted @ 2026-08-31 17:48  你要去码头整点薯条吗  阅读(10)  评论(0)    收藏  举报