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
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