zadah Posted January 10, 2012 Report Share Posted January 10, 2012 Is it possible to send plain HEX bytes via JAZZ. The SMS function supports only ASCII, but I would like to send plain String if HEX numbers. For example I have a controller which accepts following dataframe: 0aa:01:00:3c:64:50:3c:0:0:0:1f:55 (Colon separates different commands) Is this possible? I Quote Link to comment Share on other sites More sharing options...
Emil Posted January 10, 2012 Report Share Posted January 10, 2012 Yes, it's possible. You need ot define the string you want to send as a special variable and thhen to add this variable as SMS and send out. In U90Ladder > Help menu > Sample ... > SMS there is a demo "SMS - print special characters". I hope this well explained example will be useful for you. Quote Link to comment Share on other sites More sharing options...
zadah Posted January 10, 2012 Author Report Share Posted January 10, 2012 Yes, it's possible. You need ot define the string you want to send as a special variable and thhen to add this variable as SMS and send out. In U90Ladder > Help menu > Sample ... > SMS there is a demo "SMS - print special characters". I hope this well explained example will be useful for you. Thanks Emil! Does it support extended ASCII characters as well ? For example if i want to send aa, does it work if i write 170 as a start up value ? Do I need to put Linearization function on? Quote Link to comment Share on other sites More sharing options...
Emil Posted January 10, 2012 Report Share Posted January 10, 2012 For each "character" you can set any value in range of byte (0-255, 0x0 - 0xFF). Please note - if you want to send out values above 127, you need to set communication to 8 data bits 9not default for Jazz 7). Quote Link to comment Share on other sites More sharing options...
zadah Posted January 13, 2012 Author Report Share Posted January 13, 2012 For each "character" you can set any value in range of byte (0-255, 0x0 - 0xFF). Please note - if you want to send out values above 127, you need to set communication to 8 data bits 9not default for Jazz 7). Ok. How about receiving a string of Hex characters? I understood that the SMS should have stantard format to receive it correctly by JAZZ. I didint found any examples of receiving string of multiple variables in it. Quote Link to comment Share on other sites More sharing options...
zadah Posted January 14, 2012 Author Report Share Posted January 14, 2012 Hello I havent been able to send NUL characters in the message 0x00. Is this even possible with Jazz? Quote Link to comment Share on other sites More sharing options...
Emil Posted January 15, 2012 Report Share Posted January 15, 2012 No, sending NULL is not possible. This is the sign of end of string. Quote Link to comment Share on other sites More sharing options...
zadah Posted January 16, 2012 Author Report Share Posted January 16, 2012 No, sending NULL is not possible. This is the sign of end of string. Ok, so I need to move Vision series and "send protocol" function block? Quote Link to comment Share on other sites More sharing options...
Emil Posted January 16, 2012 Report Share Posted January 16, 2012 Can you send the string you want to send or receive? I'll prefer to send e-mail to support@unitronics.com. We will check the string in Vision before you will take the final decision. Quote Link to comment Share on other sites More sharing options...
zadah Posted January 17, 2012 Author Report Share Posted January 17, 2012 Here is the string as hex numbers:00:AA:01:00:60:0F:00:00:00:00:00:D1:55communication: 600 bps 8,n,1 Quote Link to comment Share on other sites More sharing options...
Ofir Posted January 17, 2012 Report Share Posted January 17, 2012 Hi, There are 2 ways to send string as HEX. You can use either the control characters or using the variable stream. When using the stream variable you will need to link a vector which holds the values required. Attached is also example application for sending this string in both ways. send HEX.vlp Quote Link to comment Share on other sites More sharing options...
zadah Posted January 18, 2012 Author Report Share Posted January 18, 2012 Hi, There are 2 ways to send string as HEX. You can use either the control characters or using the variable stream. When using the stream variable you will need to link a vector which holds the values required. Attached is also example application for sending this string in both ways. Thanks for example! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.