adccommunitymod (AutomationDirect) asked a question.

RLL Plus programming problem

Created Date: August 28,2009

Created By: Philco

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

Hi all, I'm working on a program that will control an injection molding machine and I decided to give a shot at stage programming. Now I have a problem to keep a state off when needed and I'm sure I miss something. Here's the quick config of the machine : - Dl205 PLC - 7 PID loops for the heat control and 1 loop for the injection control - Prop. hyd. valve without spool feedback that control the opening/closing motion of the mold. I use a linear pot to know the position of the mold. Now I have a MCR (Master control relay) state that activate other state when needed and one is HCR (Heat control relay). I want to disable the HCR state when the opening or the closing state is engage. The reason is the motion of the platen is very quick and when the HCR state is engage (with all the 7 PID loops on) it raise the time scan from 8-10ms to 25-30ms. That makes the control too slow so it overshoot the moment when I need to reduce the flow for the closing/opening motion. Here is two pics of the prog. 205 Photo 1 shows the heat state been initiate when the HCR control botton is released and photo 2 shows the HCR button released state. 206 As you can see, the Heat state is keep SET when the closing or the opening state is off. But when one of them turns on, the heat state seems to trip from on to off non-stop, even when the state controling this part stay on. Opening and closing state are activate by a SET and not a JUMP fonction FYI and they stayed on. Someone have an idea of what can cause that on-off trigger? If you need more informations to help me, please ask. Thanks alot! Phil


  • adccommunitymod (AutomationDirect)

    Created Date: August 28,2009

    Created by: Philco

    oh and the state I want to disabled is the Heat State S11

  • adccommunitymod (AutomationDirect)

    Created Date: August 28,2009

    Created by: bcarlton

    The pictures are not very useful. it's difficult to see what is going on.

    We would need all the code from any stage which affects S11. We also would need all the code for stage S11.

    Note that when you see the state of a contact or stage you are seeing its state at the end of the scan. You may have to analyze your code very carefully to see if the stage is possibly always off but a condition nearer the end of the scan sets S11 on, then the stage which performs the SET/RST (S7) may be performing correctly.

    So search your code carefully for ANY item which affect S11 (including JMPs inside S11)

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 29,2009

    Created by: Philco

    CORRECTED

    Here is the full prog.

    REMOVED

  • adccommunitymod (AutomationDirect)

    Created Date: August 29,2009

    Created by: bcarlton

    You did not send the program. The program consists of a number of files all with the same basename (your program name). You must zip them all together to transffer it.

  • adccommunitymod (AutomationDirect)

    Created Date: August 31,2009

    Created by: Philco

    I 've corrected the zip file and corrected the link for the download. Sorry for that!:D

  • adccommunitymod (AutomationDirect)

    Created Date: August 31,2009

    Created by: bcarlton

    Within S11 (which is extremely large - can it be divided?) are many OUT commands. When you RST S11 all these OUT commands will turn off. Some of these OUT commands are used within the opening and closing states (eg Open Sig C30). This may cause some problems. You also seem to control this within S13, the Opening Stage. Having multiple OUT commands in active stages can bring problems.

    Finally can you clairify the state of X3 E-Stop, X13 MCR btn and X15 Temp btn during normal running? Are they all ON or do they change at all?

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 31,2009

    Created by: Philco

    OH my bad, I forgot to delete this part in the S11 state! Rung 101 to 157 must be delete!

    I start from a complete program and convert it to state program so I cut and copy part of the program to their own state. I simply forgot to remove or at least isolate this part...

    Thanks bcarlton! I knew it was something stupid like that!:rolleyes:

    The X3 E-stop state is to stop all state in the event the E-stop btn is pressed. The MCR btn is to set the machine to ON (Master control relay) and the temp btn is to put the heating ON. So yes, in a normal operation of the machine, MCR state (S2) and HCR state (S7) will be ON, the same for the E-stop btn (X3 to ON). MCR must be ON to set HCR on.

    Let say in the event we must change molds on the machine, heating must be off but we must control the machine so this is why the HCR is isolate but dependant of the MCR.

    I'll give it a try right now and let you know.

    Thanks again! Thumbs up!

    Edit : That was it! All's working as expected now!

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 28,2009

    Created by: Philco

    Hi all,

    I'm working on a program that will control an injection molding machine and I decided to give a shot at stage programming. Now I have a problem to keep a state off when needed and I'm sure I miss something.

    Here's the quick config of the machine :

    - Dl205 PLC

    - 7 PID loops for the heat control and 1 loop for the injection control

    - Prop. hyd. valve without spool feedback that control the opening/closing motion of the mold. I use a linear pot to know the position of the mold.

    Now I have a MCR (Master control relay) state that activate other state when needed and one is HCR (Heat control relay). I want to disable the HCR state when the opening or the closing state is engage. The reason is the motion of the platen is very quick and when the HCR state is engage (with all the 7 PID loops on) it raise the time scan from 8-10ms to 25-30ms. That makes the control too slow so it overshoot the moment when I need to reduce the flow for the closing/opening motion.

    Here is two pics of the prog.

    205

    Photo 1 shows the heat state been initiate when the HCR control botton is released and photo 2 shows the HCR button released state.

    206

    As you can see, the Heat state is keep SET when the closing or the opening state is off. But when one of them turns on, the heat state seems to trip from on to off non-stop, even when the state controling this part stay on.

    Opening and closing state are activate by a SET and not a JUMP fonction FYI and they stayed on.

    Someone have an idea of what can cause that on-off trigger?

    If you need more informations to help me, please ask.

    Thanks alot!

    Phil

    Expand Post