MicroLogix: Copy I: and O: registers to INT

TimD

Lifetime Supporting Member
Join Date
Aug 2007
Location
New Hampshire
Posts
235
Hi,

this seems trivial, and probably answered several times already, but how do I copy either a single or group of bitwise I and O registers to INT?

I'm trying to group a bunch of sequential INTs so that another processor can read one block over a MSG instruction.

I'm trying MOV and COP but am getting unexpected results.

Any pointers? Thanks!
 
For help I think you should post EXACTLY what code you wrote and what results you expected and the actual results were.

Are you getting compile errors or just weird results?

Detail for each method you tried.

If it's not clear from your posts detail exactly which inputs and output locations you want to transfer and the intended destinations.
 
Hi All,

My code is: MOV I:0.0 N7:0

However, instead of getting a group of binary digits, I get a (159) which is a binary representation of the whole word. I want to see the bits one at a time over a range of 16 INTs for example.

Thanks!
 
Where you are looking at the Data File N7, click on Radix in the lower right corner. Change the radix from Decimal to Binary.
 
You could do it with BTD instruction. That would allow you to pick bits out of the word. It would take 16 of them.

Edit: FBC is WRONG instruction changed to BTD
 
Last edited:

Similar Topics

I have a micrologix 1100 and I need to extract characters from a string data type and store the ascii values for each character in an integer type...
Replies
7
Views
13,221
I am trying to program my own stack so I can handle it my own way rather than using the built in stack instructions (hum, I just had an idea). I...
Replies
3
Views
4,810
I'm using a SLC typed write from the ControlLogix5572 to the MicroLogix 1400, with path: 2, (MicroLogix IP). The ControlLogix equipment has a...
Replies
0
Views
22
"Hello! Good day! Excuse me, I have a question regarding the 1761-NET-ENI. RSLinx has already detected it but it's not connecting to the PLC...
Replies
4
Views
33
Hi, I cannot find the DLCA1764.EXE utilty software for data retrieving. Can someone share the link to download this software. Thanks!
Replies
4
Views
75
Back
Top Bottom