西門子6ES7313-6CG04-0AB0參數(shù)詳細(xì)
1.條件
Step7 編程軟件 PLC 中具有Profibus-DP 通訊口 Profibus 通訊電纜 Profibus 總線聯(lián)結(jié)器 Drive 中有Profibus 通訊模板.如: MASTER DRIVE 的CBP2 通訊模板, 標(biāo)準(zhǔn)變頻器的Profibus 通訊模板
2.硬件組態(tài)
1. 將MASTERDRIVES CBP/CBP2 加入組態(tài)
2. Profibus 地址(6)
3. 將MICROMASTER 4 加入組態(tài)
4. Profibus 地址(7)


3.選擇數(shù)據(jù)格式
1. MASTERDRIVE 中可供選擇的PP0 類型
2. I/Q address

1. MICROMASTER 4 中可供選擇的數(shù)據(jù)格式
2. I/Q address

4.Step 7 中的編程
創(chuàng)建數(shù)據(jù)塊DB1 說明:

1.在Step7 中對(duì)PKW (參數(shù)區(qū))讀寫參數(shù)時(shí)調(diào)用SFC14 和 SFC15
2. SFC14(“DPRD_DAT")用于讀Profibus 從站的數(shù)據(jù)
3. SFC15(“DPWR_DAT")用于將數(shù)據(jù)寫入Profibus 從站
4. W#16#100(即256)是硬件組態(tài)時(shí)PKW 的起始地址
程序舉例1(讀參數(shù)r015)

注:PKW ,IND 的詳細(xì)說明見附錄

1. W#16#100(即256)是硬件組態(tài)時(shí)PKW 的起始地址
2.將從站數(shù)據(jù)讀入DB1.DBX0.0 開始的8 個(gè)字節(jié)(P#DB1.DBX0.0 BYTE 8)
PKE -> DB1.DBW0
IND -> DB1.DBW2
PWE1 -> DB1.DBW4 參數(shù)值的高字位
PWE2 -> DB1.DBW6 參數(shù)值的低字位
3.將DB1.DBX28.0 開始的8 個(gè)字節(jié)寫入從站(P#DB1.DBX28.0 BYTE 8)
DB1.DBW28 -> PKE
DB1.DBW30 -> IND
參數(shù)值的高字位 DB1.DBW32 -> PWE1
參數(shù)值的低字位 DB1.DBW34 -> PWE2
注:PKW ,IND 的詳細(xì)說明見附錄
程序舉例2 (讀參數(shù)P401.2)

注:PKW ,IND 的詳細(xì)說明見附錄

西門子6ES7313-6CG04-0AB0參數(shù)詳細(xì)
從硬件目錄中選擇PROFIBUS DP下面的SIMOVERT文件夾,將MICROMASTER 4從站托拽到CP5611的DP軌道上,設(shè)置其從站地址為3,并添加接口區(qū)4PKW,2PZD (PPO1)

圖12.添加MM440從站
完成PC 站組件設(shè)置后,存盤編譯并下載當(dāng)前組態(tài)配置.

圖13.存盤編譯并下載
五. MM440參數(shù)設(shè)置:
為了實(shí)現(xiàn)通過PROFIBUS通訊方式對(duì)變頻器進(jìn)行監(jiān)控,變頻器需要PROFIBUS接口模板才能實(shí)現(xiàn),而且需要對(duì)變頻器參數(shù)進(jìn)行一定的參數(shù)設(shè)置才能實(shí)現(xiàn):
P700 命令源 6 (從CB來)
P918 站號(hào) 3 (必需要與硬件組態(tài)時(shí)保持一致)
P1000頻率設(shè)定源 6 (從CB來)
六. 數(shù)據(jù)通訊的測(cè)試-OPC Scout :
OPC Scout 工具隨Simatic Net 軟件一起提供,當(dāng)完成PC Station 組態(tài)下載后,可用此工具進(jìn)行OPC Server 和DP從站的數(shù)據(jù)通訊測(cè)試。
打開OPC Scout,(Start?SIMATIC>?SIMATICNet?OPC Scout),雙擊“OPC
SimaticNet.DP " 在隨之彈出的“ADD Group " 對(duì)話框中輸入組名, 本例命名為
“MM440"。點(diǎn)擊OK 確認(rèn)。

圖14.添加變量組
雙擊已添加的連接組(MM440),即彈出“OPC Navigator"對(duì)話框,此窗口中顯示所有的連接協(xié)議。打開CP5611文件夾,會(huì)看到組態(tài)的站號(hào)為3的從站,雙擊這個(gè)從站,即可出現(xiàn)有可能被訪問的對(duì)象樹(objects tree)

圖15.對(duì)象樹