• Atrás

  • Sample Simple Counter with Reset Configuration Files

    Overview

    This simple counter functions by following these steps:

    1. When Universal Input 1 (UI1), Local Register 1 (Cntr 1 Input via UI1) on the DXM150-B2R1 energizes.
    2. Local Register 4 (Cntr 1 Low Cnt) increments by a count of 1.
    3. After Local Register 4 (Cntr 1 Low Cnt) reaches 65535, on the next Cntr 1 input, the value resets to 0.
    4. Local Register 5 (Cntr 1 High Cnt) increments by 1.
    5. When UI2 on the DXM150-Bx is energized, the values of both Local Registers Cntr 1 High Cnt and Cntr 1 Low Cnt are reset to 0.

    If you are resetting the count values of either Local Registers 3 (Cntr1 High Cnt) or 4 (Cntr 1 Low Cnt) using another device, write a 0 to the appropriate Local Register 5 (Cntr 1 H Cnt Reset Action Rule) or 6 (Cntr 1 L Cnt Reset Action Rule) on Slave ID 199.

    All local registers are visible on the display to allow for troubleshooting and acknowledgement of inputs being active.

    To configure this simple counter:

    1. Set UI1 on the DXM150-Bx to be counter registers 4908 = 1 (use either the Register view of the DXM Configuration Tool software or the DXM150-B2R1's LCD). Register 4908 enables the counting function on the rising edge of the input signal.
    2. Monitor the count value using registers 4910 and 4911.

    The Universal Inputs (UI) on the DXM150-Bx Wireless Controller start at Register 3 on Slave ID 200 (I/O Board).

    The demonstrated functions include:

    • Defining local registers to be:

    ◦ Counter inputs and counter reset inputs

    ◦ Counter values

    • Creating Read and Write Rules to:

    ◦ Input to Local Registers

    ◦ Reset the counter value n the DXM150 I/O Base Board

    • Implementing Action Rules to reset the counter value to 0 based on either resetting the input or writing to the counter value reset Local Registers
    Añadir a Mi Biblioteca
    Añadido