ControlLogix Addressing; New to PLC Programming Environment

JoeTu

Member
Join Date
Aug 2008
Location
Michigan
Posts
4
This may sound like a trivial question, but please bear with me (I obvioiusly have not been programming long)!

I want to use a MOV instruction move a value of 1 into a destination bit. However, i want to address the destination bit according to the following scheme:

logic1.PNG


What is the proper way, if there is a way to address the destination bit based on the tags WordRes and BitRes?
 
You can't use a move instruction for a address a bit. You either have to use an OTE or OTL/OTU instructions if you want to manipulate the bit.
there are other ways but this is what i know will work. Depending on whether or not you need the bit to remain "hi" in a false state will help you choose between the two ways of setting your bit.
 
"BitRes" is an array of bools?. MOV instructions are for words, not bits. Bits need to be OTE's, OTL's, OTU's, ONS ect.

I think instead of a MOV, you can change it to an OTE and use the same tag. If you want it to hold the value while the rung is not true, then make it an OTL.
 
dmroeder

It looks like he is doing indirect addressing for an array of tags called MsgEvent where WordRes is the word array destination and BitRes is the bit of that Word he wants to turn on. It looks as though your indirect addressing may need some massaging as well.
 
Guys,

I am attempting to use indirect addressing, if that is the correct name for it, i was not sure. But below you will find the tag data types. I tried using the addressing for the
MsgEvent[WordRes].[BitRes] with no success; I receive the following error: Invalid array subscript specifier.

logic2.PNG


thanks
 
Last edited:
Ah, my suggestion won't quite work out as planned. Having arrays in indirect addresses = no dice. Bernie pointed this out in his post.

Also, I'd use DINT's if you don't have to use INT's. DINT's are supposed to process more efficiently from what I hear.
 
Bernie and DM,

Thanks for the insite; I got the code to work using an OTE and changing the data type to just an integer!

Many thanks,

Joseph
 

Similar Topics

Hello :) I've already come up with a solution to the problem described below, so this is mainly a curiosity had the situation been different...
Replies
6
Views
3,737
Quick question. When using the CLX PLC/SLC Message Mapping to map files 0 (Output) and 1 (Input) to CLX Integer registers is it smart enough to...
Replies
2
Views
2,100
We have a PLC-5 with 16 I/O Modules in a single chassis. 1-Slot addressing is used with a 8) 16pt-Input and 8) 16pt-Output modules. The I/O...
Replies
4
Views
5,007
We are updating A few older Aveva Wonderware InTouch applications from a SLC PLC to a new ControlLogix PLC. What is the best way to deal with the...
Replies
2
Views
1,095
I am migrating an Allen-Bradley SLC based system to ControlLogix and need some help with DeviceNet addressing. The SLC system has a 1747-SDN and I...
Replies
3
Views
1,471
Back
Top Bottom