12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

172 Input/Output <strong>Instructions</strong> (MSG, GSV, SSV, IOT)GuidelinesAs you plan and program your MSG instructions, follow theseguidelines:Guideline1. For each MSG instruction, create a controltag.2. Keep the source and/or destination data atthe controller scope.3. If your MSG is to a device that uses 16-bitintegers, use a buffer of INTs in the MSGand DINTs throughout the project.4. Cache the connected MSGs that executemost frequently.5. If you want to enable more than 16 MSGs atone time, use some type of managementstrategy.6. Keep the number of unconnected anduncached MSGs less than the number ofunconnected buffers.DetailsEach MSG instruction requires its own control tag.• Data type = MESSAGE• Scope = controller• The tag cannot be part of an array or a user-defined data type.A MSG instruction can access only tags that are in the Controller Tags folder (controllerscope).If your message is to a device that uses 16-bit integers, such as a PLC-5® or SLC 500controller, and it transfers integers (not REALs), use a buffer of INTs in the message andDINTs throughout the project.This increases the efficiency of your project because Logix controllers execute moreefficiently and use less memory when working with 32-bit integers (DINTs).To convert between INTs and DINTs, see <strong>Logix5000</strong> <strong>Controllers</strong> Common Procedures,publication 1756-PM001.Cache the connection for those MSG instructions that execute most frequently, up tothe maximum number permissible for your controller revision.This optimizes execution time because the controller does not have to open aconnection each time the message executes.If you enable more than 16 MSGs at one time, some MSG instructions may experiencedelays in entering the queue. To guarantee the execution of each message, use one ofthese options:• Enable each message in sequence.• Enable the messages in groups.• Program a message to communicate with multiple devices. For more information,see <strong>Logix5000</strong> <strong>Controllers</strong> Common Procedures, publication 1756-PM001.• Program logic to coordinate the execution of messages. For more information, see<strong>Logix5000</strong> <strong>Controllers</strong> Common Procedures, publication 1756-PM001.The controller can have 10 - 40 unconnected buffers. The default number is 10.• If all the unconnected buffers are in use when an instruction leaves the messagequeue, the instruction errors and does not transfer the data.• You can increase the number of unconnected buffers (40 max.), but continue tofollow guideline 5.• To increase the number of unconnected buffers, see <strong>Logix5000</strong> <strong>Controllers</strong> CommonProcedures, publication 1756-PM001.Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!