How can we help you today?

Is it possible in SCADA to link the variable tag to "Bit" in a "WORD", I/O device setting is (OPC factory server)? (example "%M101.1" as the address of TAG).

OPC protocol is a tag based addressing, so you cannot use modbus address like %M101.1 when using OPC.

If the requirement is to extract bit from word, so here it is the below solutions.
- If you are using unity software, create variables with address inside unity like %MW101.0 and link the file to OFS. so you will have bit information to OPC client automatically.

- Else you read word directly from device with tag based addressing and later use script in scada to extract bit from word. Am not sure what scada and PLC programming software you are using. But my below answer is based on OFS, Vijeo citect and unity software.

// Read an individual bit number (0-31) from an integer and return
// the state (0 or 1)
INT
FUNCTION
BitRead(INT iValue, INT iBitNo)
RETURN (iValue BITAND Pow(2, iBitNo)) <> 0;
END

- Last solution is to change protocol type ot modbus TCPIP so that its easier for you read directly without using OFS.

Schneider Electric Saudi Arabia

Explore more
Range:
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Range:
  • Product Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Centre
  • Find our Offices
  • Get a Quote
  • Where to buy
  • Schneider Electric Community
  • Careers
  • Company Profile
  • Report a misconduct
  • Accessibility
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings