adccommunitymod (AutomationDirect) asked a question.

D2-CTRINT preset sorting

Created Date: October 03,2003

Created By: Eric Rousculp

**** 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 an application that requires high speed operation and continuously variable presets (will get out of assending order). Has anyone written a routine to sort preset values and come up with a system to use them?


  • adccommunitymod (AutomationDirect)

    Created Date: October 03,2003

    Created by: Eric Rousculp

    I have an application that requires high speed operation and continuously variable presets (will get out of assending order). Has anyone written a routine to sort preset values and come up with a system to use them?

  • adccommunitymod (AutomationDirect)

    Created Date: January 01,2004

    Created by: elevmike

    We built a positioning system that uses an encoder/up-down counter. The presets are not programmed in but set on the jobsite by placing the controller in a "setup mode ". The setup mode allows the operator move the positioning system to the position to be recorded, then presses a button to Move the current up/down counter value into Vmem. The presets are loaded into FlashRom with the MOVE instruction. The DL240 has a Non-Volitale memory area that will retain the values on a power cycle.

    The presets are kept in order by using indirect addressing, once the value in V4000 is loaded from the up/down counter, the INC steps the next preset to V4001 etc..I think there 240 Vmem locations in the DL240 Cpu.

    When the program is in the "run " mode, (not the plc mode) we jump to a sub that has conditional contacts that compare the up/down counter value to the preset value and produces a output to control the drive.

    Your in for some serious brain work.

    I hope this helps some.

    Expand Post