例子程序在OB1當中調(diào)用數(shù)據(jù)讀寫功能塊:SFC67和SFC68,如下圖:

分別在STEP7 MicroWin32和STEP7當中監(jiān)視S7200和S7300 PLC當中的數(shù)據(jù),數(shù)據(jù)監(jiān)視見面如下:


通過 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站組態(tài), 在S7-200系統(tǒng)中不需要對通訊進行組態(tài)和編程,只需要將要進行通訊的數(shù)據(jù)整理存放在V 存儲區(qū)與S7-300的組態(tài)EM277從站時的硬件I/O地址相對應就可以了 插入一個S7-300的站:
選中STEP7的硬件組態(tài)窗口中的菜單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