adccommunitymod (AutomationDirect) asked a question.

Bit of Word in EZTouch

Created Date: February 15,2005

Created By: Dweeb

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

Can I use a bit of word B2111.2 (bit 2 of V2100) as discrete point in EZtouch


  • adccommunitymod (AutomationDirect)

    Created Date: February 15,2005

    Created by: Dweeb

    Can I use a bit of word B2111.2 (bit 2 of V2100) as discrete point in EZtouch

  • adccommunitymod (AutomationDirect)

    Created Date: February 15,2005

    Created by: Tech Guy

    Yes, it is formatted differently like: V2111/2.

  • adccommunitymod (AutomationDirect)

    Created Date: February 15,2005

    Created by: Dweeb

    Thanks for your quick reply!

  • adccommunitymod (AutomationDirect)

    Created Date: February 15,2005

    Created by: franji1

    One caveat - the bit number value after the slash in EZTouch is OCTAL, not DECIMAL (as in DirectSoft).

    The two are the same for bits 0-7, but bit "10 " in EZTouch is actually bit 8 in DirectSoft, bit "17 " in EZTouch is actually bit 15 in DirectSoft. It can be a little confusing.

    One other caveat - when WRITING to Bit-of-word, there is no protocol command to just write a 1 or 0 to B2111.2. What must be done is that the whole word V2111 must be read, then the one bit must be modified, then written back to the PLC, which takes multiple PLC scans. This can create some strange behavior if your ladder program (or anything else) is also writing to any other bits in V2111!

    There is no problem READING bits for status info, but writing creates this problem. If it is possible for multiple sources of changes to a bit of word to the same word at the same time(e.g. multiple HMI screens, ladder program, DirectSoft/DSData, etc.), then you are better off writing to CRs (which can be written to individually using ECOM or K-Sequence protocol) then moving the CRs to the bit of word via ladder logic at the top of your program:

    STR C1112

    OUT B2111.2

    STR C1115

    OUT B2111.5

    STR C1120

    OUT B2112.0

    etc.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: February 16,2005

    Created by: bcarlton

    Whenever I read from or write into the PLC from an external source (HMI, BASIC module etc) I reserve whole words (with 'read ' and 'write ' on their own word(s)) for just that device. The PLC may ony 'write ' to the 'read ' words and it may only 'read ' from the 'write ' words. The first time I made the mistake of mixing these up the machine was doing incredibly wierd stuff. Only after realizing what was going on was I able to correct it and make my hard and fast rules. Remember, in 'C ' memory a 'whole word ' starts on a 'C ' which ends in zero and has an even number as the next one (eg C240 - not C250 or C242)

    Expand Post