例子程序在OB1当中调用数据读写功能块:SFC67和SFC68,如下图:

分别在STEP7 MicroWin32和STEP7当中监视S7200和S7300 PLC当中的数据,数据监视见面如下:


通过 CP5611,STEP7 MicroWin32, Set PG/PC Interface 可以读取 S7200 和 S7300 的站地 址,如下图:

站地址0代表的时进行编程的PG,即当前连接PLC的PC
2.S7-200 和 进行PROF US通信
S7-300与S7-200通过EM277进行PROFIBUS DP通讯,需要在STEP7中进行S7-300站组态, 在S7-200系统中不需要对通讯进行组态和编程,只需要将要进行通讯的数据整理存放在V 存储区与S7-300的组态EM277从站时的硬件I/O地址相对应就可以了 插入一个S7-300的站:
选中STEP7的硬件组态窗口中的菜单Option今Install new GSD
导入SIEM089D.GSD文件,

The example program calls the data reading and writing function blocks in ob1: sfc67 and sfc68, as shown in the following figure:
The data in S7200 and s7300 PLC are monitored in STEP7 microwin32 and STEP7 respectively. The data monitoring interface is as follows:
The station addresses of S7200 and s7300 can be read through CP5611, STEP7, microwin32, and set pg/pc interface, as shown in the following figure:
The PG that is programmed when the station address 0 represents, that is, the PC currently connected to the PLC
2. Profi US communication between S7-200 and S7-300
S7-300 and S7-200 communicate with PROFIBUS DP through EM277. It is necessary to configure the S7-300 station in STEP7. There is no need to configure and program the communication in the S7-200 system. Just sort and store the data to be communicated in the V storage area, which corresponds to the hardware i/o address of the S7-300 configuration EM277 slave station. Insert a S7-300 station:
Select the menu option install new GSD in the hardware configuration window of STEP7
Import siem089d GSD file,







客服1