MSG Instruction via Structured Text

jfd7851

Member
Join Date
Mar 2016
Location
New Orleans
Posts
19
Hello everyone,
I am using a Control Logix L73 controller, with a motor that runs on Ethernet IP protocol.

I currently have an AOI for a motor that is in structured text. The manufacturer of the motor allows you to download a data type off of their own software where the initial IP Address and settings are configured. The data type is limiting, as you have to choose what parameters to include on the data type and their are limited spaces.

To get more useful information out of this motor, I have been investigating using the MSG instructions (Get Attribute Single, CIP Generic) to pull the other data that wasn't included on the data type. I have been successful at doing this when the message is triggered and defined in a ladder logic sequence. My goal is to define the MSG instruction within a structured text environment so that after some development time it could be added into an AOI.

I understand that I can call a MSG instruction in structured text as MSG(Message Control Tag). I do not understand where within the MESSAGE datatype that the destination tag is defined (other than the configuration tab on the Ladder Logic instruction).

So far I have read the 'General Instructions Reference' multiple times, I've tried some 'hacky' methods to see if I could either :
a.) create the message instruction in a ladder logic script so that everything is defined and then delete the Ladder logic and call it from a structured text script.
b.) tried setting MSG(message control) = another tag in the environment and that did not work either.
 
I do not understand where within the MESSAGE datatype that the destination tag is defined
If you have in ST:
Code:
MSG(tagname);
Just right-click on the tagname. In the context menu, click on Configure "tagname": you'll get the same configuration popup used on ladder.

Update:

TN 67344 ControlLogix Message Example in Structured Text (Access Level TechConnect):
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/67344/page/1

TN 45154 How do you configure a MSG in Structured Text? (Access Level TechConnect):
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/45154/page/1
 
Last edited:
I think OP is looking for the sub-tag string location where the destination tag is stored because OP want to use it in an AOI.

I can't find it either.
 
Thanks nhatsen and harryting for the prompt reply. I have been looking for both of the issues brought up. Now that I can specify the destination tag out of the structured text thanks to nhatsen, it doesn't seem to want to run the message instruction. I set up a IO task to test that has a structured text script that just has MSG(message control). Whenever I put the controller into Run, the enable bit doesn't set. I'll post if I get a solution or find where the destination tag is stored.
 
Update:
I was able to get the message to 'relay' up through our current AOI that is in structured text and pull the information. Thanks for the help. Moving on to trying to get the whole instance of the object rather than each individual attribute.. Anyways, thanks again.
 

Similar Topics

Hello all, I am currently trying to establish a message instruction to pass data from a 1756-L73 to a 1756-L71. My communication path from the...
Replies
8
Views
208
Hello Friends I am trying to connect to a Zebra printer. I can print the label with hyperterminal both by RS232 and TCP/IP. Now, I am trying to...
Replies
7
Views
230
Can Anyone tell that How Msg Instruction comes under Unscheduled communication and How System Overhead time slice(SOTS) function connected to it...
Replies
1
Views
941
Studio5000, V31 I'm Messaging a MassFlow Meter, specifically to pull the Engineering Units (units of measure) for 6 instances. Basically, do I...
Replies
2
Views
1,168
I received a PM from Forum member @zhoudq and am creating this public thread for his question:
Replies
1
Views
1,095
Back
Top Bottom