adccommunitymod (AutomationDirect) asked a question.

DL06 Stage Programming

Created Date: May 18,2015

Created By: rrc1962

**** 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.****

Will an SP0 (_FirstScan) work inside a stage? IE: Will it fire once when the stage is activated or will it fire once when the program is started even though it is in a stage? My program started getting out of hand, so I broke up the process into sub processes, which is going to make it a whole lot easier to manage. This is my first try at stage programming and not sure how SP0-SP5 behave in a stage. What I need to do is jump from S0(ISG), which is the off/idle state, to S1, then start a pulse output until a limit is triggered. It's similar to the example in the manual...aside from doing it in stages. When the limit is triggered, I jump to S2 where I reverse direction and retract. Just need to execute the code in S1 and S2 as soon as the stage becomes active. Thanks


  • adccommunitymod (AutomationDirect)

    Created Date: May 18,2015

    Created by: bcarlton

    S0

    - JMP S1

    S1

    - OUT 'Pulse Output Forward '

    - If limit is made JMP S2

    S2

    - OUT 'Pulse Output Reverse '

    You didn't state anything past this. Writ up this using the stages. Zip and post the program noting where any problem lies.

    If this doesn't sound right then you may need to consider how to better describe the process.

    SP0 is on during the first scan. Any stage (like your ISG and any other stage which is already on when evaluation gets to them in the first scan) will see SP0 as TRUE. It is not the first scan of a stage which has just been made true at some time after the first scan.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 19,2015

    Created by: rrc1962

    S0

    SP0 is on during the first scan. Any stage (like you ISG and any other stage which is already on evaluation gets to them in the first scan) will see SP0 as TRUE. It is not the first scan of a stage which has just been made true at some time after the first scan.

    That explains why it's not working. I have a new issue now. Y0 and Y1 keep blowing. I can install a DL05 and it works great. We 've been driving stepper drives for years with DL05 PLC's. When I replace the 05DD-D with an 06DD1-D with the same wiring method, Y0 and Y1 blow as soon as they are activated. If I move the step and direction leads over to Y2 and Y3, I can activate them all day long with no problem.

    It is wired exactly to the schematics in the manual and there doesn't appear to be any differences between the wiring to Y0/Y1 and the rest of the outputs.

    I'm stumped....and this is getting expensive. I'm hoping the DL06 PLC's are repairable.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 19,2015

    Created by: bcarlton

    The outputs do appear to have identical specs between the two units. It sounds like a call to tech support is in order.

  • adccommunitymod (AutomationDirect)

    Created Date: May 20,2015

    Created by: rrc1962

    The outputs do appear to have identical specs between the two units. It sounds like a call to tech support is in order.

    Turns out I was running the position counter up and not resetting it, which was preventing Y0 from activating. New issue now that I'll put in another post.

  • adccommunitymod (AutomationDirect)

    Created Date: May 18,2015

    Created by: rrc1962

    Will an SP0 (_FirstScan) work inside a stage? IE: Will it fire once when the stage is activated or will it fire once when the program is started even though it is in a stage?

    My program started getting out of hand, so I broke up the process into sub processes, which is going to make it a whole lot easier to manage. This is my first try at stage programming and not sure how SP0-SP5 behave in a stage.

    What I need to do is jump from S0(ISG), which is the off/idle state, to S1, then start a pulse output until a limit is triggered. It's similar to the example in the manual...aside from doing it in stages. When the limit is triggered, I jump to S2 where I reverse direction and retract. Just need to execute the code in S1 and S2 as soon as the stage becomes active.

    Thanks

    Expand Post