Nhãn hiệu của chúng tôi

Impact-Company-Logo-English Black-01-177x54

Chào mừng bạn đến với Trang web của Schneider Electric

Chào mừng đến với trang web của chúng tôi.
		
Hôm nay chúng tôi có thể giúp gì cho bạn?
In EcoStruxure Machine SCADA Expert, is it possible to trigger alarms with the individual bit states from a WORD (Integer) address?
Issue
In EcoStruxure Machine SCADA Expert, is it possible to create and trigger Alarm events with the individual 16 bit states from a WORD/Integer address?

Product Line
EcoStruxure Machine SCADA Expert

Environment
HMI/SCADA programming software in Windows

Resolution
There is no direct way to create single Alarms from the individual 16 bits from inside an Integer (Word).
However, there is a way to extract the Boolean data from the WORD and put it into 16 individual Bit Tags (or an array of them).

Example:
If we had a WORD Tag called "iMyInteger" that we would like to create 16 Alarms from each of the bits from the WORD, we can create an Array of Boolean Tags called "myBoolArray" (with indexes 0 to 15) to be the Alarm bits and use a VBScript to move the data from the Integer Tag to the Array of Boolean Tags.

Steps:
  1. Create a Tag representing the Integer in the Driver Sheet (Note: the I/O Address in the screenshot shows a Modbus TCP address)
  2. Create a Boolean Array of size 16 (note that you put in the Max value of the array which is '15' starting from 0 in the Project Tag list below.

  3. Create an Alarm Sheet using the Boolean Array (each index for each Alarm) and write in your appropriate Alarm Message.
  4. Create a New Script under Tasks->Script that assigns the value of each bit from the Integer into each array of the Boolean Array Variable with the syntax shown in the screenshot below.

For projects with many Integer Tags, one can lay out the Boolean Tags and VBScript code in Microsoft Excel and copy-paste them from Excel into any Worksheet in EcoStruxure Machine SCADA Expert (that looks like a table from Excel).
Attached to this FAQ is an Excel spreadsheet that can generate the Boolean Tags as well as the VBScript for multiple Integer Tags into multiple Arrays of Boolean Tags:
"EcoStruxure Machine SCADA Expert - Generate Bit Position Tags and VBScript for Alarm Sheet.xlsm"

Schneider Electric Việt Nam

Phần đính kèm
EcoStruxure Machine SCADA Expert - Generate Bit Position Tags and VBScript for Alarm Sheet.xlsm [46.74 KB]
Tìm hiểu thêm
Phạm vi:
Tìm hiểu thêm
Phạm vi:

Bạn cần trợ giúp?

  • Công cụ chọn sản phẩm

    Nhanh chóng và dễ dàng tìm được sản phẩm và phụ kiện phù hợp cho các ứng dụng của bạn.

  • Nhận báo giá

    Bắt đầu gửi yêu cầu bán hàng trực tuyến và chuyên gia sẽ liên hệ với bạn.

  • Nơi mua hàng?

    Dễ dàng tìm nhà phân phối Schneider Electric gần bạn nhất.

  • Trung tâm Hỗ trợ

    Tìm sự hỗ trợ cho mọi nhu cầu của bạn tại một nơi.

  • Tài liệu về Sản phẩm
  • Tải xuống phần mềm
  • Công cụ chọn Sản phẩm
  • Thay thế và thay đổi sản phẩm
  • Trung tâm Hỗ trợ
  • Tìm Văn phòng của chúng tôi
  • Nhận báo giá
  • Tìm Nhà Phân phối
  • Cơ hội nghề nghiệp
  • Hồ sơ doanh nghiệp
  • Báo cáo hành vi sai trái
  • Khả năng truy cập
  • Phòng tin tức
  • Nhà đầu tư
  • EcoStruxure
  • Tìm việc
  • Blog
  • Chính sách bảo mật
  • Thông báo về Cookie
  • Điều khoản sử dụng
  • Change your cookie settings