Compact Logix 1769-ASCII Card Concatenation

Drewdin

Member
Join Date
Mar 2016
Location
BOSTON
Posts
5
I am using a 1769-ASCII card to talk to a Mass Flow Controller, the problem is that I need to send it a string of HEX characters. Initially I was sending a string of '0221ADEF' and I found that the device was not responding. Then i sent a string of '$02$21$AD$EF' and I got the response i was looking for.


There is one packet of data that I need to calculate so I cant manually add the dollar sign to the string, this is where i am having issues.



I am trying to concatenate $ to a string of AD to get $AD dynamically and I cant find anything that works. To get the hex, i am summing decimal values and them converting it to hex. I tried to set the SINT[5] individually but i keep getting SINT[5]=#, SINT[6]=2, SINT[7]=4. What i need is SINT[5]=$.


The issue is that the $ is reserved char. Does anyone have any ideas or suggestions to get me over this hurdle? Thanks
 
Did you try two $$? You need to do that to manually enter a $ in a string.

Hi John,

I tried concatenating $$ but it just removes it from the string. I even tried using 4 and a MID to take one out. But it always removes the $ no matter what I have tried.

Thanks
 

Similar Topics

Been seeing a high failure rate on these PLC's on 2 of our process. The control power is feed through a APC UPS to a 24VDC power supply to power...
Replies
14
Views
4,038
Hello. I am trying to figure out how to setup a PID in Control Logix 1769 Controller in a way that it would control a drive speed by sending...
Replies
3
Views
1,627
Hello guys, I need to add in a few discrete and analog cards for an existing 1769 Compact Logix system at a local Treatment Plant for an...
Replies
9
Views
3,699
Hello Everyone, First of all, I would like to thank you for everyone who helped me in the previous post and this platform is really helpful for...
Replies
2
Views
3,192
I am using ab 1769-l30er for redundancy logic, the secondary controller is not being recognized, the icon is replaced by a yellow question mark...
Replies
3
Views
1,944
Back
Top Bottom