adccommunitymod (AutomationDirect) asked a question.

C MORE MICRO - parts counting

Created Date: September 19,2009

Created By: polishfog

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

since you can only use BCD values with the CMore, how do you do a parts counter?


  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2009

    Created by: brachwal

    C-More Micro supports not only BCD format - binary also. When you add new tag in Tag Name Database change format in Tag Data Type field to whatever you want.

    I am not quite sure what you mean how to count parts. How is it dependent to BCD? The data type just determines to limit of parts counted:

    BCD 16 - 9999

    BCD 32 - 9999 9999

    Unsigned 16 - 65 535

    Unsigned 32 - 4 294 967 296

    I guess that you know it already. Another matter is how do you count. Either by counter - AD PLC supports only BCD format for counter or INC/INCB instructions. First one is for BCD, second for binary(decimal) but is limited to only one word. If you need more counts: use math for double words:

    BCD:

    LDD V2000

    ADDD K1

    OUTD V2000

    Decimal:

    LDD V2000

    ADDBD K1

    OUTD V2000

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: September 20,2009

    Created by: polishfog

    C-More Micro supports not only BCD format - binary also. When you add new tag in Tag Name Database change format in Tag Data Type field to whatever you want.

    I am not quite sure what you mean how to count parts. How is it dependent to BCD? The data type just determines to limit of parts counted:

    BCD 16 - 9999

    BCD 32 - 9999 9999

    Unsigned 16 - 65 535

    Unsigned 32 - 4 294 967 296

    I guess that you know it already. Another matter is how do you count. Either by counter - AD PLC supports only BCD format for counter or INC/INCB instructions. First one is for BCD, second for binary(decimal) but is limited to only one word. If you need more counts: use math for double words:

    BCD:

    LDD V2000

    ADDD K1

    OUTD V2000

    Decimal:

    LDD V2000

    ADDBD K1

    OUTD V2000

    I'm not understanding completely. What would be the best way to count parts? The machine I have will probably run millions of cycles - can this be counted easily and displayed?

    I'm real green with the AD product; almost all my experience is Allen Bradley. For example, with a SLC500 I could just use an ADD instruction with a floating point register.

    How would you do it with the DL06?

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: September 20,2009

    Created by: brachwal

    Increment.jpg shows the program for counting. Just change trigger logic accordingly to your needs.

    To display value on C-More Micro:

    1) Add Tag for the counter (look add.jpg)

    2) Add object Numeric Display (dsp.jpg) make sure to increase number of digits

    I hope this time I did not make any mistakes like with inc/dec with 8 button bazel :).

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2009

    Created by: polishfog

    since you can only use BCD values with the CMore, how do you do a parts counter?