1747-SDN to 1769-SDN

LoganB

Lifetime Supporting Member
Join Date
Apr 2017
Location
Michigan
Posts
607
Converting a SLC 5/05 program to CLX (L33-ER v24.01), and the last issue/question I have (I hope) is how to translate the DeviceNet mapping. On the old program, I was reading into INTs, but in the new program, I have to read to unbroken blocks of DINTs (forced by the card) due to the limit of 4 read/writes per object in DeviceNet.

For example, the data mapping of the first node read on the old card was split into two reads, the first starting at word 0 with a length 40, the second starting at word 5 with a length 32:
xxxxxxxxxxxxxxxx M1:1.0
xxxxxxxxxxxxxxxx M1:1.1
00000000xxxxxxxx M1:1.2
xxxxxxxxxxxxxxxx M1:1.3
xxxxxxxxxxxxxxxx M1:1.4

My plan is to map the DeviceNet information in a way that I can easily drop it into my new program in the same orientation so that my converted tags will get the same information without having to readdress a bunch of stuff.

The problem I'm running into is that it seems I am forced to use DINTs in the 1769-SDN, so my data structure ends up being twice as long. M1:1.0 becomes Local:1:I.Data[0] and my map looks like:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Local:1:I.Data[0]
000000000000000000000000xxxxxxxx Local:1:I.Data[1]
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Local:1:I.Data[2]

In order to manually arrange those into 16 bit blocks in DeviceNet, I would need 5 individual reads, which is impossible as far as I know. I also can't start a copy from the middle of the DINT to break the data up manually and move groups of 16 bits at a time into the correct INT locations in my PLC program.

Does anyone have a technique they could share that doesn't involve readdressing all my Integers in my program? Or am I just going to have to bite the bullet?

Thanks for any help you guys can offer, and as always please ask if you need any additional information!
 
Yes you should; you might be able to arrange data the way you'd like to, however, it is pretty cumbersome and time consuming.

Once you have the RSNetworx for DeviceNet net file setup in conformance to the existing topology, the Scanlist populated and downloaded to the Scanner and the RSNetworx file associated with the Logix project you should use the DeviceNet Tag Generator tool (Menu Bar/Tools).

Follow the procedure within the posted link; it is for a single device network (a PF40), however, it could be replicated for the application at hand.

http://literature.rockwellautomation.com/idc/groups/literature/documents/qs/iasimp-qs028_-en-p.pdf
 
I'm still left with the problem that my robot is sending 10 bytes of numeric information and I'm being forced to scan them in as 5 DINTs, storing groups of two INTs back to back in a single DINT. Is there any sort of instruction that will allow me to either snip off the first 16 bits of data or copy the second 16 bits of data out of a DINT? Even if it placed the last 16 bits into a new DINT, I could then do a MOV statement into my INT and it would just drop the last 16 empty bits of data.

I must be missing something simple because this seems like a huge problem trying to bring in DeviceNet information if your target device communicates in 16 bit words and you have to stack everything in 32 bit arrays.
 
Last edited:
I'm still left with the problem that my robot is sending 10 bytes of numeric information and I'm being forced to scan them in as 5 DINTs, storing groups of two INTs back to back in a single DINT. Is there any sort of instruction that will allow me to either snip off the first 16 bits of data or copy the second 16 bits of data out of a DINT? Even if it placed the last 16 bits into a new DINT, I could then do a MOV statement into my INT and it would just drop the last 16 empty bits of data.

I must be missing something simple because this seems like a huge problem trying to bring in DeviceNet information if your target device communicates in 16 bit words and you have to stack everything in 32 bit arrays.

Use BTD (Bit Field Distribute).
 

Similar Topics

I have an existing 1747-SDN that is communicating to a third party card (That device controls 12 drives). We want to get rid of the 3rd party...
Replies
0
Views
1,102
Hello, I wanted to pick the community's brain and see if anyone has converted an existing 1747 SDN RSNetworx configuration project to a new 1769...
Replies
0
Views
2,725
We are in the process of upgrading a controls system. The existing system is a SLC500 with some IO cards and a 1747-SDN module communicating to a...
Replies
5
Views
529
One of our running machine's DeviceNet Module (1747-SDN) had malfunctioned. So, we replaced it with a new one from spares. We maintained the...
Replies
4
Views
3,025
I have a 1398-DDM-009X-DN that was talking to a 1747-SDN in a rack with a SLC 5/05. Recently, after a download of new parameters to the servo...
Replies
8
Views
3,097
Back
Top Bottom