22
Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com TRUY XUT B&R PLC/POWERPANEL QUA OPC SERVER Stham chiếu: DPTA-DOC014-140314 Phiên bn: rev0 Cp nht ln cui: 14/03/2014 1/ Yêu cu phn mm Cho phép các chương trình OPC Client truy xut ñến các biến bên trong B&R PLC/Powerpanel Các phn mm yêu cu: Phn mm B&R Automation Studio (ñề nghversion 3.0.90.18) PVI version 3.0.2.3019 (Nâng cp nếu cn MobileOPCExplorer(MatrikonOPC OPC Explorer phiên bn chy không cn cài ñặt) 2/ Các bước thc hin To project mi Trong Tab logic view nhp chut phi chn Add object

B&R OPC test

  • Upload
    thao-le

  • View
    204

  • Download
    0

Embed Size (px)

Citation preview

Page 1: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

TRUY XUẤT B&R PLC/POWERPANEL QUA OPC SERVER

Số tham chiếu: DPTA-DOC014-140314 Phiên bản: rev0 Cập nhật lần cuối: 14/03/2014 1/ Yêu cầu phần mềm

Cho phép các chương trình OPC Client truy xuất ñến các biến bên trong B&R PLC/Powerpanel

Các phần mềm yêu cầu:

� Phần mềm B&R Automation Studio (ñề nghị version 3.0.90.18) � PVI version 3.0.2.3019 (Nâng cấp nếu cần � MobileOPCExplorer(MatrikonOPC OPC Explorer phiên bản chạy không cần cài ñặt)

2/ Các bước thực hiện

Tạo project mới

Trong Tab logic view nhấp chuột phải chọn Add object

Page 2: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Page 3: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Page 4: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Soạn một ñoạn mã ñơn giản

Khai báo 3 biến a, b, c ñể dùng

Page 5: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Nhấp chuột phải ñể Add object

Chọn New OPC Tag Declaration

Page 6: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Page 7: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Chọn và kéo các biến a, b, c vào cửa sổ OPCtest declaration

Trở qua tab Configuration View, nhấp chuột phải chọn Add object

Page 8: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Page 9: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Chọn và kéo các tag a,b c vào cửa sổ OPC Windows Mapping

Page 10: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Build project

Nếu build không bị lỗi

Page 11: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Nhấp Transfer ñể chuyển chương trình bào ARsim

Mở folder chủa OPCtest

Page 12: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Vào folder Temp

Page 13: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Page 14: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Page 15: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Copy file OPCtestWinOpcMap.opcs Vào chép vào folder C:\Program Files\BrAutomation\PVI\V3.00.02\Bin

Page 16: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Page 17: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

ðổi tên thành BR.OPC.Server_OPCtestWinOpcMap.opcs Mở file BR.OPC.Server.ini Sửa ñổi hàng sau thành CfgFile0 = BR.OPC.Server_OPCtestWinOpcMap.opcs

Page 18: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Chạy MobileOPCExplorer lên

Chọn BR.OPC.Server_3.0_V1.14.13 chọn connect

Vấn ñề này là do chưa có Key

Page 19: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Chọn Add tags

Page 20: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Trở lại AS

Chọn Monitor ñể giám sát biến a, b, c

Page 21: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Page 22: B&R OPC test

Duc Phong Technology and Automation Corporation 02 Duy Tan street, Hiep Phu ward, Disctrict 9, Ho Chi Minh city, Vietnam Tel: +84 8 3736 0166 Fax: +84 8 3736 0166 Contact: [email protected] Website: http://www.dpta.com

Lê ðức Thảo Phong kỹ thuật, DPTA Corporation Email: [email protected] 14/03/2014