• Cap (Customer)

    When the Save Recipe Button ( Likely HMI Screen ) is Pressed, and the Recipe to save has been chosen as 2, then You will load Twenty Words of Data ( First Instruction ) STARTING FROM Memory V1201( Likely your Recipe Table for Recipe TWO ) to the 20 Words of Memory Starting at V1501 ( Likely your 'Active Recipe' the PLC will act upon).

     

    LDA OXXX will do the Octal to Hex Conversion Needed to get the Instruction to work properly.. The Data is Stored in HEX Format, however the Memory is Allocated and Addressed in Octal Formatt..

     

    https://cdn.automationdirect.com/static/manuals/d2user/d2user.html

     

    Page 5-144

     

    Cap

     EDIT: Changed to Octal from Hex.. Brain Fog!

    Expand Post
    • AmitTE (Customer)

      How could I replicate it using the CLICK Software?

      • OkiePC (Customer)

        Click supports indirect addressing, but not as the Source of a Block Copy, so you would have to loop through 20 Single Copy instructions to accomplish the same thing. Click does have FOR/NEXT instructions to accommodate looping in order to get this done in a single PLC scan. You would have to create two pointers, one for the source and one for the destination and increment both.

         

        I would recommend that you study the layout of the data in the DirectSoft PLC to find out the size and number of these recipes and make sure you block off and comment the addresses you'll use for this system in the Click.

         

        Here's what it might look like in a Click with addresses I picked haphazardly.

        Recipe with pointers

        Expand Post
      • Tinker (Customer)

        While the example given by OkiePC looks like a good way to get the equivalent of an indirect block copy on a CLICK, note that in the original DirectSoft program the data location and counts look look to be constants. If locations are constant one could probably use the CLICK block copy with direct addresses

      • AmitTE (Customer)

        Thank you! I know this might be a stupid question as I haven't really utilized the directsoft software. But does the instruction refer to Moving the O1201 values to V5101 or the other way around

      • OkiePC (Customer)

        If we find out there are only a dozen or less recipes 20 words each, and each can be viewed/edited and copied into the working recipe area, then a dozen static block copy rungs for each operation would certainly be easier to read and understand than the indirection method. But if there are 40 of them, and you have more than two operations to perform on each, then that approach might be cumbersome.

        Expand Post
      • Cap (Customer)

        The V1201 Locations are Moved to the V1501 Locations.

         

        Cap

      • PouchesInc (Customer)

        Yep, it says V5101 not V1501

         

        Which has me wondering, what specific PLC is this? I dont think in a DL06 that V5*** is user memory area, that memory is used by specific instruction types I think. So depending on which PLC this is, the data being sent to those specific memory addresses could be doing some specific thing like loading up a bunch of timers or counters or whatever.

        Expand Post
10 of 11