MikeBUSA

MrPLC Member
  • Content count

    2
  • Joined

  • Last visited

Everything posted by MikeBUSA

  1. I have two employees who can't agree on a design. Maybe the good people here at Mr. PLC can help. The debate is how to design the function blocks we know we need. What is the "best practice"? We have a small assembly machine. Module 1 starts the assembly. When it's complete, the part is indexed via a turn table to Module 2. When Module 2 is complete, the part is indexed to Module 3. When Module 3 is done, the part is released. Simple enough so far, right? This machine can be expanded to 4 groups of those 3 modules. The customer can purchase the machine in any configuration of 1 to 4 groups. To recap, one group assembles the part. Here's the debate. Employee A feels like each module - not the entire group - should be a function block. He wants to create structures for each Module and map variables in and out of it individually with only what is needed. He thinks each  variable should be tightly controlled. So we would have one function block for Module 1 duplicated 4 times. Another function block for Module 2 is created, duplicated 4 times. So on and so forth. The function block would only contain logic for one module. One group would be 3 function blocks. Employee B feels this is too complicated. He thinks a function block for 3 modules - Module 1, Module 2, and Module 3 should be created. The I/O and variables needed for all 3 modules need to be mapped to the function block. So a function block for Module 1, Module 2, and Module 3 would be duplicated 4 times. Since Omron doesn't support multiple ladder routines, the logic for all 3 modules would be in one routine. A newer version of Sysmac appears to allow navigating through long ladder logic. An important consideration. Some variables are shared by each module. Employee A thinks that's ok and just need mapped as read-only on the shared function so only the Module sharing information writes to it. Employee B thinks it's too complicated and all variables should be shared unconditionally. We are at a loggerheads here. We know both ways will work. But nobody knows the way this should be done. Both employees think they are correct and adamant about it. How do I decide?