<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://lamaplc.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>lamaPLC - lamalib</title>
        <description></description>
        <link>http://lamaplc.com/</link>
        <lastBuildDate>Sat, 18 Apr 2026 18:20:43 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>http://lamaplc.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>lamaPLC</title>
            <link>http://lamaplc.com/</link>
        </image>
        <item>
            <title>bitstobyte</title>
            <link>http://lamaplc.com/doku.php?id=lamalib:bitstobyte&amp;rev=1731966888&amp;do=diff</link>
            <description>lamaLibrary: bitsToByte

The function 8 bits JOIN to a byte.

Function call:


&quot;bitsToByte&quot;(bit00:=_bool_in_,
             bit01:=_bool_in_,
             bit02:=_bool_in_,
             bit03:=_bool_in_,
             bit04:=_bool_in_,
             bit05:=_bool_in_,
             bit06:=_bool_in_,
             bit07:=_bool_in_,
             OUT=&gt;_byte_out_);

00</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Nov 2024 21:54:48 +0000</pubDate>
        </item>
        <item>
            <title>dt_to_string</title>
            <link>http://lamaplc.com/doku.php?id=lamalib:dt_to_string&amp;rev=1748263970&amp;do=diff</link>
            <description>lamaLibrary: DT to string

System time convert to string date / time / date_and_time format. 



FUNCTION_BLOCK &quot;dtToStringDateAndTime&quot;
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
   VAR 
      timeDT : Date_And_Time;
      timeDTL {InstructionName := 'DTL'; LibVersion := '1.0'} : DTL;
      stampDate : String;
      stampTime : String;
      stampDT : String;
      tempStr : String;
      retVal : Int;
   END_VAR


BEGIN
    // lamaPLC source: https://lamaplc.com/doku.php?id=lamalib:dt_to_s…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 26 May 2025 12:52:50 +0000</pubDate>
        </item>
        <item>
            <title>energymetertomodbusregs</title>
            <link>http://lamaplc.com/doku.php?id=lamalib:energymetertomodbusregs&amp;rev=1731966949&amp;do=diff</link>
            <description>lamaLib: energyMeterToModbusRegs

The function converts a UDInt type variable into 2 Word. Specifically, the function transmits the status of an energy meter to 2 Modbus registers (the Modbus registers are word type).

Function call:


&quot;energyMeterToModbusRegs&quot;(energyMeter:=_udint_in_,
                          register1=&gt;_word_out_,
                          register2=&gt;_word_out_);

00</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Nov 2024 21:55:49 +0000</pubDate>
        </item>
        <item>
            <title>powerof10</title>
            <link>http://lamaplc.com/doku.php?id=lamalib:powerof10&amp;rev=1731966307&amp;do=diff</link>
            <description>lamaLibrary: Power of 10

A power of 10 (10 X) is any of the integer powers of the number ten; in other words, ten multiplied by itself a certain number of times. By definition, the number one is a power (the zeroth power) of ten.



FUNCTION &quot;powerOfTen&quot; : Real
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
   VAR_INPUT 
      power : Real;   // 10^power
   END_VAR

   VAR_TEMP 
      count : Int;
      out : Real;
      i : Int;
   END_VAR


BEGIN
	// void := 10 ^ power
	
	// A power of 10 is…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Nov 2024 21:45:07 +0000</pubDate>
        </item>
        <item>
            <title>temp</title>
            <link>http://lamaplc.com/doku.php?id=lamalib:temp&amp;rev=1731966368&amp;do=diff</link>
            <description>lamaLib: #temp

#description

Function call:



#call_code




Source code:



#source_code




[energyMeterToModbusRegs (SCL) Download]

Main site &gt; LamaLibrary Simatic

lamaLibSimatic topics on lamaPLC

tia scl lamalibsimatic source_code energy_meter modbus register word



This page has been accessed for: Today: 0, Until now: 0</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Nov 2024 21:46:08 +0000</pubDate>
        </item>
    </channel>
</rss>
