Jump to content

Sending HEX numbers from JAZZ


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...