Quantcast
Channel: Allen Bradley / Rockwell Automation Latest Topics
Viewing all articles
Browse latest Browse all 3755

Using the Same AOI input parameter in multiple places (coils)?

$
0
0

I'm writing an AOI to handle some logic to control a clamping cylinder.  The extend and return commands can come from several different places within the PLC program as well as from the robot in the work cell.

 

My original idea was just to set the extend and return input parameters as DINT's then address all of the coils as EXTEND_CLAMP.0, etc.  That works just fine, but it isn't as clean as just being able to use Clamp_Control.Extend in all of the coils.  I know Logix will return a duplicate coil warning if I simply use the AOI parameter over and over again, but will it prevent the OTE's from operating? 

 

What is the best practice for something like this?  AOIs and function blocks are relatively new to me.  I was always taught to avoid duplicate coils in straight ladder program; but function blocks throw a different wrench into the works.


Viewing all articles
Browse latest Browse all 3755

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>