Showing results 1 to 3 of 3

Thread: Reading bit from word

  1. #1
    Join Date

    Default Reading bit from word

    Hello everybody.

    I'm not so sure if it's really dumb question, but I will ask anyway:

    Am I able to read and/or change single bit in whole which is external? I'd like to make status displays on words and visibility is based on value limits, not a single bit.... I could make it with combined element, but I have plenty of things to show from one word.... And it's hell of a work with combined element.

    But I can't imagine I couldn't refer to single bit in word....

  2. #2
    louis.paglaiccetti Gast

    Default Re: Reading bit from word

    Hello Kuki,

    No, this comes up quite often actually.I see you already found what the combined element can do. Similarly, there is a binary Reaction Matrix which offers similar functionality, but can also create alarms/events on individual bits or status buits of a word. Except, the combined element is created per screen object, the Reaction Matrix can be defined only once, and many variables can link to the same Reaction Matrix, as it is global in its use.

    The numeric Reaction matrix allows you to not analyze bits, but look at the value of the word and make reactions if it is =, >, <, between a range, or treat all value changes as limit violation (any change). Variable Limits also allow the analysis of the variable value.

    If you really want to read in individual bits of the word as their own variables:

    You can use zenon Logic with the "unpack" function block. However, please know that 1 word = 1 zenon tag used. If this is unpacked into 8 external variables addressed = 8 zenon tags used. Attached to this post is a zenon Logic export file.
    Attached Thumbnails Attached Thumbnails zenonLogic_unpack_FBD.png  

  3. #3
    Join Date

    Default Re: Reading bit from word


    I have seen your post , my requirement is reverse of this , i have to combine 16 bool variables in to one 16 bit tag and i need to map to Process gateway , is there any method we can do this

Similar Threads

  1. Decoding the INT tag bit By Bit
    By paruvathakumar in forum VBA
    Replies: 5
    Last Post: 23rd August 2021, 14:13
  2. Reading 64-bit registers via Modbus
    By shikra in forum Drivers
    Replies: 4
    Last Post: 19th November 2013, 11:59
  3. Reading Excel
    By navaneet in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 1
    Last Post: 27th September 2013, 17:09
  4. Can zenon handle 800,000-word-tags?
    By sunnamkung in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 1
    Last Post: 26th March 2012, 23:22
  5. Word als Binär Code anzeigen
    By sknoerr in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 26th March 2009, 19:51

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts