Linuxdept (Customer) asked a question.

i have a Click PLC Program i have written that uses the Pack and Unpack Instructions "Diagram"
how can i accomplish this same thing with the Productivity 2000 , thanks everyone

unpack1


  • Linuxdept (Customer)

    we are basically Communicating to the ClickPlus with a Modbus address that we send an Integer to the DS300 from a single copy to DH20 then we use DH20 in the unpack right to the outputs, can you provide a small example in Productivity 2000 that does the same thing

  • kewakl (Customer)

    Can you try Bit of Word in a CopyData instruction. Where a.b.c is your Group.Base.Slot

    1. CPD
    2. word:bit01 DO-a.b.c.01
    3. word:bit02 DO-a.b.c.02
    4. word:bit03 DO-a.b.c.03
    5. word:bit04 DO-a.b.c.04
    6. word:bit05 DO-a.b.c.05
    7. word:bit06 DO-a.b.c.06
    8.  
    9.  

     

     

    Expand Post
  • Linuxdept (Customer)

    My ladder Looks like the Following but the RELAY1 is not showing up be used in the unpack command prog101

    • PouchesInc (Customer)

      Im a bit confused by your logic there. The first instruction shows you copying an integer of supposedly "32343" to a control bit? That doesnt really work.

  • Garry (Customer)

    Hi @Linuxdept (Customer)​,

    In your example, you would use one or the other methods. Not both like you would in the Click PLC.

    PRNT1:1 to PRNT1:16 would represent all of the bits in PRNT1

    P2000 CPD InstructionThe unpack bits would also work.

    I hope this helps you out.

    Regards,

    Garry

     

    Expand Post
    • Linuxdept (Customer)

      so if i use the UPKB (unpack bits) as Shown below and i put a INT of 32768 in PRNT1 this would Covert it to Binary we would have 1000000000000000 i hope this is correct that would be so easy

      unpack2

      • unpack2
      • Garry (Customer)

        You are correct. If PRNT1 (Unsigned 16 Bit) contains the value of 32768 then this would be 1000 0000 0000 0000.

        Regards,

        Garry

      • Garry (Customer)

        Glad you got it going.

        Thanks for the update.

10 of 14