Announcement

Collapse
No announcement yet.

Stage programming

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts


  • Stage programming

    Hello all,

    I would like to report the current stage of a do-more plc to a c-more panel. Can anyone say how this is done?

    Thanks,
    T.


  • #2
    MOVE:
    Source: MyProgramName.S0_15
    Destination: V100

    MOVER:
    Source: V100:0
    Num of elements: 16
    Destination: C100

    This will place stage 0 through 15 into C100 through C115.

    If you only need one stage, then just user a MOVE with the one stage.
    Last edited by plcnut; 10-03-2014, 06:05 AM.
    Circumstances don't determine who we are, they only reveal it.
    Jason Wolthuis

    Comment



    • #3
      You can do it with a single MOVE if you land the C bit on a word boundry.

      MOVE:
      Source: MyProgramName.S0_15
      Destination: C96:UW
      If you have an urgent issue, please contact AutomationDirect's Technical Support team.

      AutomationDirect.com Technical Support: 1(800) 633-0405 or (770) 844-4200 Email Tech Support

      Comment



      • #4
        Current stage

        Thanks you pointed me in the right direction.

        I am looking for current sage, I found the ENCO function will return the first non zero bit of a 32 bit location. That will work

        Thanks,
        T.

        Comment



        • #5
          Since multiple stages can be active at once, stages must be stored as bits. Unfortunately that complicates the simple case of a single active stage. Sounds like you are getting it worked out though.

          Comment

          Working...
          X