Eagle

MrPLC Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Eagle

  • Rank
    Hi, I am New!

Contact Methods

  • ICQ 0
  1. Hi all, I'm new at this board and I was scrolling trough the threads. I saw that maybe somebody can respond and help to solve my little prob. We are running on our package line an PLC 5/40 interfaced on DH+ with 5 panel views and to a DCS system. Actually the main Prog. consists of about 2000 Rungs stuffed in the MCP (lad2) and has no subroutines at all. The actual average Cycle time is about 12-14ms. The code consists of some math functions but mainly of common ladder logic. Considering that the production line has various stations I was asked to split the main program into various parts, referring to each machine part of the line. The only way to do this I think is to split it into several subroutines. I'm not so familiar with subroutines on AB so please excuse if a question maybe sounds a little bit A) Is it possible to jump into a subroutine (JSR) from the MCP without passing any type of parameter, using the same logical element addresses ( N7:10, etc) as in the MCP, execute some math, BTW/BTR, set outputs, preset timers etc. and return (RET) to the MCP without any return parameters ? Every subroutine will called only once in the MCP. B) I'm going right if the MCP (Lad2) will simply be split into subroutines without nesting, the cycle time will not increase in significant manner ? C) Due to the fact that nothing will be added, only be split, I think it will be not necessary to update I/O within every subroutine ? The update of the I/O by the processor is done on reaching the end of the main program. The main progr. basically only contains the JSR to the subroutines. Long words for a maybe little problem. Many thanks in advance for your help. Best regards Eagle