adccommunitymod (AutomationDirect) asked a question.

CTRIO Counter Reset

Created Date: November 12,2010

Created By: Bauer

**** 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 have found a lot of information regarding the CTRIO and retaining the count value but not much on simply programmably resting the count. I simply would like to reset the input count to 0 upon a contact closure in my main program. The simulating retentive counter example in chapter 8-10 of the manual shows contact C0 energizing the n+24.1 bit (Input counter reset) but I can not get this to actually rest my count. Any other examples out there? I'm using an DL06 and the CTRIO is set up starting at V4500 Thanks Pete


  • adccommunitymod (AutomationDirect)

    Created Date: November 12,2010

    Created by: bcarlton

    Using the Workbench you set up the start of the Input map and the Output map. You can also select 2 or 4 ranges. What do you have each of these set to?

    I have found that merely turning on the indicated bit and waiting until the confirmation (At Reset Value) turns on, then I release it.

  • adccommunitymod (AutomationDirect)

    Created Date: November 15,2010

    Created by: Bauer

    "2 ranges " is configured with the starting address for inputs at V4500 and I'm not using any outputs. "4 ranges " is set up with the same V4500 for word inputs and everything down below in on the "Input Functions " tab is grayed out. When I print out a report of the memory map when does in give me actual values for most parameters (i.e) V4500-V4501 = Scaled Units, C1F1_ScldUnit, but only states that "Reset, C1F1_Reset = n+24.1 "?

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: November 15,2010

    Created by: Bauer

    Here is the Memory Map Report:

    Ch1/Fn1 - Up Counter

    V4500-4501 = Scaled Units, C1F1_ScldUnit

    V4502-4503 = Raw Value, C1F1_RawValue

    V4520.1 = At Reset Value, C1F1_AtRstVal

    n+24.1 = Reset, C1F1_Reset

    System Functions

    V4524.6 = SysCmd Error, SysCmdError

    V4524.7 = SysCmd Complete, SysCmdComplet

    V4525.0 = Ch1 A, Ch1A

    V4525.1 = Ch1 B, Ch1B

    V4525.2 = Ch1 C, Ch1C

    V4525.3 = Ch1 D, Ch1D

    V4525.8 = Out 0 Active, Out0_Active

    V4525.9 = Out 0 Mode, Out0_Mode

    V4525.10 = Out 1 Active, Out1_Active

    V4525.11 = Out 1 Mode, Out1_Mode

    n+30.7 = Process SysCmd, ProcSysCmd

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: November 15,2010

    Created by: bcarlton

    Enter a value both in 'Input Map ' and 'Output Map '. If using 4 ranges (I recommend this) the bottom entry in each is usually the 'V ' starting point for a word of C bits. Check your Control Relay Bit Map. It will make more sense then. (The 'Output Map ' isn't for outputs from the CTRIO controlling things (even though it has the same name), it is the 'output from your PLC CPU to the CTRIO.)

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: November 15,2010

    Created by: franji1

    To minimize latency, 2 ranges better than 4

    FYI, from a latency standpoint, it's best to configure 2 ranges of memory (vs. 4 ranges). Some CPUs are better at backplane comm than others, but if you configure 4 ranges of PLC memory for your CTRIO configuration, it will take at least 2 (possibly up to 4) ladder scans for a "full data cycle " between the CPU and the CTRIO module.

    If there are just 2 ranges, it will take at most 2 ladder scans, possibly just 1 for a "full data cycle ".

    However, then you must use bit-of-word referencing for all your bits. But don't forget you can use nicknames for everything to help out with the referencing.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: November 15,2010

    Created by: Bauer

    Thank you both...

    Adding the "Output Address " solved everything. Maybe this should be added to the two sentences talking about soft resets in the manual!

    Still haven't figured out the difference between 2 and 4 ranges but 2 seems enough to do the reset, and that's all I needed - for now...

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: November 15,2010

    Created by: bcarlton

    The '4 Ranges ' lets you assign bit locations (C bits) for those functions which are on/off (like 'do reset ' and 'at reset '). They are sometimes easier to understand than bits of a V memory location.

  • adccommunitymod (AutomationDirect)

    Created Date: November 12,2010

    Created by: Bauer

    I have found a lot of information regarding the CTRIO and retaining the count value but not much on simply programmably resting the count. I simply would like to reset the input count to 0 upon a contact closure in my main program. The simulating retentive counter example in chapter 8-10 of the manual shows contact C0 energizing the n+24.1 bit (Input counter reset) but I can not get this to actually rest my count. Any other examples out there?

    I'm using an DL06 and the CTRIO is set up starting at V4500

    Thanks

    Pete

    Expand Post