combine ascii string

jimcav

Member
Join Date
Dec 2004
Location
new jersey
Posts
229
Hello

I am using a compact logic 1769-l32e and have a cognex data man 60 connected via EIP. I am using there AOP. I get the result data from the scanner as I.ResultData[0] through I.ResultData[9] I need to combine each one into a word.

Thanks
Jim Cav
 
I need to combine each one into a word.

It's unclear what you want.
If you want to move the received characters into a string then do the following: (This was a Cognex 300 but the structures of the AOI are similar I believe)

MOV(Cognex_300:I.Status.ResultLength,Target_String.LEN)
COP(Cognex_300:I.ResultData[0],Target_String.DATA[0],Target_String.LEN)
 

Similar Topics

Hi; I have installed Weintek HMIs at different machines. I have configured data logging and HMI logs the data in a file having extension...
Replies
0
Views
1,287
Hi; I have installed Weintek HMIs at different machines. I have configured data logging and HMI logs the data in a file having extension...
Replies
0
Views
1,187
I am getting data from a modbus device and I need to combine 2 16 bit N registers in to 1 32bit L register. I have tried a CPW N242:2 -> L245:0...
Replies
5
Views
2,128
Hello Everyone, I am working on CCW 9.0 software with PLC Micro820. I am communicating with Energy meter over Modbus RTU. I...
Replies
3
Views
3,988
How do es a person combine two words of data into one. N7:0 and N7:1, High word and Low word, 1234 and 5678 and get 12345678.
Replies
7
Views
2,243
Back
Top Bottom