Welcome! Thank you for joining us. We’ll get started in a few minutes. You must join the teleconference to hear the audio portion of the broadcast. You cannot listen through your computer. Dial: 1-866-774-1453 You will hear hold music until the broadcast begins. This is expected We will send the presentation and a recording of today’s broadcast to you within a few days after the session.
November 2012 TechConnect Genius Webinar Getting Started With and Using the MSG Instruction Tim Kraynik Senior Technical Support Engineer November 15, 2012
Agenda 1. What is a MSG instruction? 2. How does a MSG instruction work? 3. How do I set up a MSG? 4. How do I set the communications path? 5. How do I troubleshoot a MSG instruction? 6. Where can I get help with the MSG instruction?
Agenda 1. What is a MSG instruction? 2. How does a MSG instruction work? 3. How do I set up a MSG? 4. How do I set the communications path? 5. How do I troubleshoot a MSG instruction? 6. Where can I get help with the MSG instruction?
MSG Instruction What is MSG, Network & Protocol What is a MSG Instruction? What is a Network? What is a Protocol?
MSG Instruction Protocols Examples of network protocols supported by Allen-Bradley controllers are: DF1 Full Duplex DH485 DH+ Ethernet DF1 Half Duplex DF1 Radio Modem Modbus RTU (Master or Slave) Modbus TCP/IP DeviceNet DNP3 Slave Profibus Note: Not all AB controllers support all of the above protocols
MSG Instruction What Can Be Done (Local Connections) The MSG instruction can be used to pass data from controller to another: The MSG instruction can be used to pass data from one controller family to another: The MSG instruction is not limited to a particular controller family!
MSG Instruction What Can Be Done (Advanced) The MSG instruction can be used to pass data from one Controller Family to another even if they are on different networks (a bridge is required):
MSG Instruction What Other Things Can We Do Other things that can be accomplished with the MSG instruction: Share data to/from a third party controllers (CIP Generic) Get status information from processor or I/O modules
Agenda 1. What is a MSG instruction? 2. How does a MSG instruction work? 3. How do I set up a MSG? 4. How do I set the communications path? 5. How do I troubleshoot a MSG instruction? 6. Where can I get help with the MSG instruction?
Understanding MSG Instruction To understand how a MSG instruction functions it is important that one has a good understanding of: When the processor communicates How the MSG instruction functions What a buffer is and how many are available Each controller family does operate differently FRN has increased and improved things from rev to rev
Understanding MSG Instruction When do the Processors Communicate Operating cycle consists of a series of operations that are performed sequentially and repeated. Logix scan is more complex and interrupts for IO at specified RPI settings
Understanding MSG Instruction Logix System Overhead Time Slice Logix controllers processor time can be adjusted to allow more time for MSG communications
Understanding MSG Instruction How the MSG Functions The MSG needs to be scanned true in ladder logic The MSG will take a snapshot of the data to send (on a MSG write) and move the snapshot into the communications buffer MSG EN (Enable) bit turns on to indcate that is has been triggered MSG DN (Done) bit turns on to indicate a successful transmission MSG ER (Error) bit turns on to indicate something went wrong
Understanding MSG Instruction How the MSG Functions Once in the Active Buffer the data will transmit over a period of scans until complete. Several or hundreds of processor scans may complete by the time the MSG is completed. The number of scans is dependent upon: The amount of data (how many elements/words) The type of network in use The baud rate that is selected Other traffic on the network The scan time of the controller Other MSG’s that are in the buffers
Understanding MSG Instruction SLC & ML Buffers The SLC/MicroLogix controllers have 14 buffers: 4 Active Buffers If not full – MSG request is placed in one of the Active Buffers This is where the actual MSG is processed and transmitted from 10 Backup Queue/Buffers If Active buffer is full – MSG request is placed into a backup queue MSG data waits in the backup queue until the Active buffer is opened MSG’s in the backup queue are handled on a first come first serve basis
Understanding MSG Instruction Logix Buffers Logix5000 Messages have buffers for unconnected messages and for cached/connected messages. Knowledgebase Answer 21192 - How to increase unconnected buffers
Understanding MSG Instruction Logix Memory Estimate Estimated Data and Logic Memory
Agenda 1. What is a MSG instruction? 2. How does a MSG instruction work? 3. How do I set up a MSG? 4. How do I set the communications path? 5. How do I troubleshoot a MSG instruction? 6. Where can I get help with the MSG instruction?
Understanding MSG Setup MSG from a MicroLogix 1400 to a SLC5/05 MSG from a CompactLogix L27 to a MicroLogix1400
Agenda 1. What is a MSG instruction? 2. How does a MSG instruction work? 3. How do I set up a MSG? 4. How do I set the communications path? 5. How do I troubleshoot a MSG instruction? 6. Where can I get help with the MSG instruction?
Communications Path
Agenda 1. What is a MSG instruction? 2. How does a MSG instruction work? 3. How do I set up a MSG? 4. How do I set the communications path? 5. How do I troubleshoot a MSG instruction? 6. Where can I get help with the MSG instruction?
Troubleshooting a MSG instruction Common error codes: 7h Target nodes does not respond DF1 ACK/NAK timeout DLE ENQ 16#001 Extended Error Code 16#0000_0204 – connection failure No cable/wrong cable Wrong node address MSG timeout value expired before any response form target 10h Target nodes cannot respond because of incorrect parameters 16#1000 – Illegal command from local processor The target device does not have the targeted data file defined in its program The number of elements is out of the boundaries
Troubleshooting a MSG instruction Check the Following (Checklist): Confirm that the DN bit is triggering Confirm that cabling is good Confirm both devices are set to the same exact protocol Confirm all communication settings match Confirm that the destination device node address Confirm the destination target file exist & is large enough Capture the error code from the message instruction 95% of all MSG calls are a result of one of or a combination of the above If you still are having trouble?
Agenda 1. What is a MSG instruction? 2. How does a MSG instruction work? 3. How do I set up a MSG? 4. How do I set the communications path? 5. How do I troubleshoot a MSG instruction? 6. Where can I get help with the MSG instruction?
Where can I get help with the MSG instruction? Check the Programming Reference Manual for detailed list of all errors. Search the Rockwell Automation Support Center for a tech note. Search for MSG Example and include the target and destination Include the network media Contact Technical Support Start with the group that supports the controller that initiates the MSG. Telephone Chat SAQ
Questions?