adccommunitymod (AutomationDirect) asked a question.

Click PLC Words & Bits

Created Date: February 22,2010

Created By: duwop

**** 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.****

I 've been thinking about getting a few Click PLC 'c so I downloaded the software to give it a go. I am planning on connecting them to radios as modbus slaves. The Modbus master (which is a different brand) polls the modbus slaves. The Modbus master reads 63 Integers (words) of data & writes 12 Integers (words) of data. Some of the words need to be accessed at the bit level. I didn't see a clear way to do this in the Click. The only way that I seen is to for example: DS64 & DS65 needs to be accessed at the bit level (Both are part of the write data from the modbus master.) Block Copy DS64-DS65 to DH64-DH65 then, Unpack Copy DH64 to c101-c116 & Unpack Copy DH65 to c121-c136. Did I miss something or is this the way that I need to do this in the Click PLC???? Is there an easier way?


  • adccommunitymod (AutomationDirect)

    Created Date: February 22,2010

    Created by: milldrone

    Did I miss something or is this the way that I need to do this in the Click PLC????

    Is there an easier way?

    What you are doing is the only way I have found, (yet) to access bits from words.

  • adccommunitymod (AutomationDirect)

    Created Date: February 22,2010

    Created by: duwop

    I 've been thinking about getting a few Click PLC 'c so I downloaded the software to give it a go. I am planning on connecting them to radios as modbus slaves. The Modbus master (which is a different brand) polls the modbus slaves. The Modbus master reads 63 Integers (words) of data & writes 12 Integers (words) of data. Some of the words need to be accessed at the bit level. I didn't see a clear way to do this in the Click. The only way that I seen is to for example:

    DS64 & DS65 needs to be accessed at the bit level

    (Both are part of the write data from the modbus master.)

    Block Copy DS64-DS65 to DH64-DH65 then,

    Unpack Copy DH64 to c101-c116 &

    Unpack Copy DH65 to c121-c136.

    Did I miss something or is this the way that I need to do this in the Click PLC????

    Is there an easier way?

    Expand Post