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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Input/Output <strong>Instructions</strong> (MSG, GSV, SSV, IOT) 187Example:The following example changes the ConnectionPath attribute, so thatthe message goes to a different controller. When msg_path is on, setsthe path of the msg_1 message to the value of msg_1_path. This sendthe message to a different controller.WhereIsmsg_1message whose attribute you want to changemsg_1_type tag that stores the value of the MessageType attributetag_a tag that stores a 0.msg_1_pathRelay Ladderarray tag that stores the new connection path for the message0msg_pathGSVGet System ValueClass name MESSAGEInstance name msg_1Attribute Name MessageTypeDestmsg_1_type2SSVSet System ValueClass name MESSAGEInstance name msg_1Attribute Name MessageTypeSourcetag_a0SSVSet System ValueClass name MESSAGEInstance namemsg_1Attribute Name ConnectionPathSource msg_1_path[0]6SSVSet System ValueClass name MESSAGEInstance name msg_1Attribute Name MessageTypeSourcemsg_1_type2msg_1.EN1 /MSGType - CIP Data Table WriteMessage Control msg_1 ...ENDNERStructured TextIF msg_path THENGSV(MESSAGE,msg_1,MessageType,msg_1_type);SSV(MESSAGE,msg_1,MessageType,tag_a);SSV(MESSAGE,msg_1,ConnectionPath,msg_1_path[0]);SSV(MESSAGE,msg_1,MessageType,msg_1_type);END_IF;IF NOT msg_1.EN THENMSG(msg_1);END_IF;Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!