<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.iplog.eu/index.php?action=history&amp;feed=atom&amp;title=Blocks_Hexstrings</id>
		<title>Blocks Hexstrings - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.iplog.eu/index.php?action=history&amp;feed=atom&amp;title=Blocks_Hexstrings"/>
		<link rel="alternate" type="text/html" href="http://wiki.iplog.eu/index.php?title=Blocks_Hexstrings&amp;action=history"/>
		<updated>2026-04-03T19:37:07Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wiki.iplog.eu/index.php?title=Blocks_Hexstrings&amp;diff=861&amp;oldid=prev</id>
		<title>Z033: Created page with &quot;== Back to Libraries == === Hexstrings ===  ==== HEXCHAR_TO_NIBBLE ==== Returns a BYTE number between 0 and 15 by converting the ASCII code given...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.iplog.eu/index.php?title=Blocks_Hexstrings&amp;diff=861&amp;oldid=prev"/>
				<updated>2020-04-30T06:36:29Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &lt;a href=&quot;/wiki/Libraries_for_IEC_61131-3&quot; title=&quot;Libraries for IEC 61131-3&quot;&gt;Back to Libraries&lt;/a&gt; == === Hexstrings ===  ==== HEXCHAR_TO_NIBBLE ==== Returns a BYTE number between 0 and 15 by converting the ASCII code given...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== [[Libraries for IEC 61131-3|Back to Libraries]] ==&lt;br /&gt;
=== Hexstrings ===&lt;br /&gt;
&lt;br /&gt;
==== HEXCHAR_TO_NIBBLE ====&lt;br /&gt;
Returns a BYTE number between 0 and 15 by converting the ASCII code given to the block input. If a code other than the characters '0' ... '9', 'A' ... 'F', 'a' ... 'f' is input, it returns 0.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|byte&lt;br /&gt;
|&lt;br /&gt;
|input value ASCII code&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|byte&lt;br /&gt;
|&lt;br /&gt;
|byte value 0 ... 15&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== HEXSTRING_TO_INT ====&lt;br /&gt;
Returns an int number by converting a 4-character input string containing a 16-bit hexadecimal representation. If a character other than '0' ... '9', 'A' ... 'F', 'a' ... 'f' is entered at the input, it will be converted to 0. For example, entering the string &amp;quot;00Ff&amp;quot; will return 255, and passing &amp;quot;00FG&amp;quot; will return 240.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|string[4]&lt;br /&gt;
|&lt;br /&gt;
|input value 4 hexadecimal characters&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|int&lt;br /&gt;
|&lt;br /&gt;
|int value&lt;br /&gt;
|}&lt;br /&gt;
====HEXSTRING_TO_SINT====&lt;br /&gt;
Returns an signed short integer number by converting a 2-character input string containing a 8-bit hexadecimal representation. If a character other than '0' ... '9', 'A' ... 'F', 'a' ... 'f' is entered at the input, it will be converted to 0. For example, entering the string &amp;quot;Ff&amp;quot; will return -1, and passing &amp;quot;FG&amp;quot; will return -16.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|string[2]&lt;br /&gt;
|&lt;br /&gt;
|input value 2 hexadecimal characters&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|sint&lt;br /&gt;
|&lt;br /&gt;
|sint value&lt;br /&gt;
|}&lt;br /&gt;
====HEXSTRING_TO_USINT====&lt;br /&gt;
Returns an unsigned short integer number by converting a 2-character input string containing a 8-bit hexadecimal representation. If a character other than '0' ... '9', 'A' ... 'F', 'a' ... 'f' is entered at the input, it will be converted to 0. For example, entering the string &amp;quot;Ff&amp;quot; will return 255, and passing &amp;quot;FG&amp;quot; will return 240.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|string[2]&lt;br /&gt;
|&lt;br /&gt;
|input value 2 hexadecimal characters&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|usint&lt;br /&gt;
|&lt;br /&gt;
|usint value&lt;br /&gt;
|}&lt;br /&gt;
====HEXSTRING_TO_UINT====&lt;br /&gt;
Returns an unsigned integer number by converting a 4-character input string containing a 16-bit hexadecimal representation. If a character other than '0' ... '9', 'A' ... 'F', 'a' ... 'f' is entered at the input, it will be converted to 0. For example, entering the string &amp;quot;FfFf&amp;quot; will return 65535, and passing &amp;quot;KKFF&amp;quot; will return 255.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|string[4]&lt;br /&gt;
|&lt;br /&gt;
|input value 4 hexadecimal characters&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|uint&lt;br /&gt;
|&lt;br /&gt;
|uint value&lt;br /&gt;
|}&lt;br /&gt;
==== INT_TO_HEXSTRING ====&lt;br /&gt;
Returns a 4-character string containing a 16-bit hexadecimal representation of integer input. For example, entering 255 will return &amp;quot;00FF&amp;quot;, and passing 256 will return &amp;quot;0100&amp;quot;.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|int&lt;br /&gt;
|&lt;br /&gt;
|input value int&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|string[4]&lt;br /&gt;
|&lt;br /&gt;
|hexadecimal representation of value&lt;br /&gt;
|}&lt;br /&gt;
==== NIBBLE_TO_HEXCHAR ====&lt;br /&gt;
Returns a BYTE value containing the ASCII code of the character corresponding to the lower 4 bits of the input value.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|byte&lt;br /&gt;
|&lt;br /&gt;
|input value byte&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|byte&lt;br /&gt;
|&lt;br /&gt;
|ASCII code of value '0' ... 'F'&lt;br /&gt;
|}&lt;br /&gt;
==== SINT_TO_HEXSTRING ====&lt;br /&gt;
Returns a STRING [2] value containing two characters in ASCII codes corresponding to the hexadecimal notation of the input value.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|sint&lt;br /&gt;
|&lt;br /&gt;
|input value sint&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|string[2]&lt;br /&gt;
|&lt;br /&gt;
|hexadecimal representation of value&lt;br /&gt;
|}&lt;br /&gt;
==== UINT_TO_HEXSTRING ====&lt;br /&gt;
Returns a STRING [4] value containing four characters in ASCII codes corresponding to the hexadecimal notation of the input value.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|uint&lt;br /&gt;
|&lt;br /&gt;
|input value uint&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|string[4]&lt;br /&gt;
|&lt;br /&gt;
|hexadecimal representation of value&lt;br /&gt;
|}&lt;br /&gt;
==== USINT_TO_HEXSTRING ====&lt;br /&gt;
Returns a STRING [2] value containing two characters in ASCII codes corresponding to the hexadecimal notation of the input value.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|in&lt;br /&gt;
|IN&lt;br /&gt;
|usint&lt;br /&gt;
|&lt;br /&gt;
|input value usint&lt;br /&gt;
|-&lt;br /&gt;
|out&lt;br /&gt;
|&lt;br /&gt;
|string[2]&lt;br /&gt;
|&lt;br /&gt;
|hexadecimal representation of value&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Z033</name></author>	</entry>

	</feed>