Efficient word swap on ML1400/RSLogix 500

Epy

Lifetime Supporting Member
Join Date
Jul 2012
Location
no
Posts
376
Pulling registers from Modbus devices and have to swap words before CPW'ing them into floats.

Right now, for instance, I'll COP N7:17 to N7:48 (temporary), COP N7:18 to N7:17, then COP N7:48 to N7:18, then use CPW w/ length 2 to copy the words into a float.

Is there a better way to do this? 4 commands just to process 1 value! :sick:

TIA
 

Similar Topics

Hello, I have to deal with iFix again and am looking at the most efficient way to create alarms to display in iFix, i.e. not creating an...
Replies
0
Views
163
Hey all, I'm doing a more standardize version of one of my programs and organizing things into UDTs and whatever else I can do to shrink the...
Replies
0
Views
423
Hello All, I’m working on a project that requires filling/discharging from 30 batch tanks that are the exact same. Simplifying things some here...
Replies
7
Views
1,859
Hello, I have a modicon background where there is a "Pulse" function that accepts an input for the deisred pulse time length. I effectively...
Replies
8
Views
2,062
RSLogix5000 I have an application where I would like to be able to ADD the values of multiple arrays, or even "all" the arrays, in a given data...
Replies
11
Views
4,110
Back
Top Bottom