Concatenate two INTs to one DINT

Nitro

Member
Join Date
Dec 2011
Location
IN
Posts
2
I am trying to concatenate two INTs into one DINT

I have try following Knowledgebase Article 552006 but I am not having any luck.
I have found this post too which talks about doing the same thing as the knowledge base article


So I am wanting the tag (OfflineWheel.SEQNumber) to read 757494, but I get 32375541.
Please see the attached image MoveCopy.png

And I have try the bit field distribute method too.
Please see the attached image BTD.png

Any help would be appreciated

MoveCopy.PNG BTD.png
 
Use DTOS on each INT value and Create two Strings to accept values. Then Concatenate into 1 String then use STOD To convert String back to DINT.
 
To concatenate the values of the two INT tags, do what Ken Moore suggested.

The post that you & Tarik1978 referred to will concatenate the bits of the two INT tags, getting the result that Bernie Carlton mentioned.
 

Similar Topics

Hello All, I have a little problem that I need some help with. I have got a 17 digit number coming from a supplier. It's basically a barcode...
Replies
11
Views
3,035
Hi, I have a list selector which I want to display the recipe found inside a plc-5. The recipe is store in an ascii table with each character...
Replies
4
Views
1,404
Hi all, I have trouble compiling the following simple Cicode function in Citect V7.0r1. Compiling gives the error "Operand expected". FUNCTION...
Replies
1
Views
3,910
I have an existing program for a machine which can run 50+ different parts. Each part has 10 parameters allocated and I have to modify the program...
Replies
1
Views
1,768
Hello Everyone! What I would like to do is generate a random password to be used with the Active X Reset password object. I am currently doing...
Replies
0
Views
1,866
Back
Top Bottom