﻿<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://www.plcopen.org/xml/tc6_0200">
  <fileHeader companyName="" productName="CODESYS" productVersion="CODESYS V3.5 SP22 Patch 4" creationDateTime="2026-11-20T08:41:44.9172788" />
  <contentHeader name="Blues.project" modificationDateTime="2026-11-19T11:06:20.0381919">
    <coordinateInfo>
      <fbd>
        <scaling x="1" y="1" />
      </fbd>
      <ld>
        <scaling x="1" y="1" />
      </ld>
      <sfc>
        <scaling x="1" y="1" />
      </sfc>
    </coordinateInfo>
    <addData>
      <data name="http://www.3s-software.com/plcopenxml/projectinformation" handleUnknown="implementation">
        <ProjectInformation />
      </data>
    </addData>
  </contentHeader>
  <types>
    <dataTypes />
    <pous>
      <pou name="NotecardI2C_Transfer" pouType="function">
        <interface>
          <returnType>
            <INT />
          </returnType>
          <inputVars>
            <variable name="bRead">
              <type>
                <BOOL />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> FALSE = write, TRUE = read</xhtml>
              </documentation>
            </variable>
            <variable name="bAddr">
              <type>
                <BYTE />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> 7-bit I2C address</xhtml>
              </documentation>
            </variable>
            <variable name="pData">
              <type>
                <pointer>
                  <baseType>
                    <BYTE />
                  </baseType>
                </pointer>
              </type>
            </variable>
            <variable name="uiLen">
              <type>
                <UINT />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> 1..255</xhtml>
              </documentation>
            </variable>
          </inputVars>
          <localVars>
            <variable name="pCR2">
              <type>
                <pointer>
                  <baseType>
                    <DWORD />
                  </baseType>
                </pointer>
              </type>
            </variable>
            <variable name="pISR">
              <type>
                <pointer>
                  <baseType>
                    <DWORD />
                  </baseType>
                </pointer>
              </type>
            </variable>
            <variable name="pICR">
              <type>
                <pointer>
                  <baseType>
                    <DWORD />
                  </baseType>
                </pointer>
              </type>
            </variable>
            <variable name="pRXDR">
              <type>
                <pointer>
                  <baseType>
                    <DWORD />
                  </baseType>
                </pointer>
              </type>
            </variable>
            <variable name="pTXDR">
              <type>
                <pointer>
                  <baseType>
                    <DWORD />
                  </baseType>
                </pointer>
              </type>
            </variable>
            <variable name="pB">
              <type>
                <pointer>
                  <baseType>
                    <BYTE />
                  </baseType>
                </pointer>
              </type>
            </variable>
            <variable name="dwCr2">
              <type>
                <DWORD />
              </type>
            </variable>
            <variable name="dwIsr">
              <type>
                <DWORD />
              </type>
            </variable>
            <variable name="dwWant">
              <type>
                <DWORD />
              </type>
            </variable>
            <variable name="i">
              <type>
                <UINT />
              </type>
            </variable>
            <variable name="tStart">
              <type>
                <TIME />
              </type>
            </variable>
            <variable name="tLimit">
              <type>
                <TIME />
              </type>
            </variable>
          </localVars>
        </interface>
        <body>
          <ST>
            <xhtml xmlns="http://www.w3.org/1999/xhtml">// One I2C transfer on the OPTA's AUX connector (STM32H747 I2C3).
// Returns 0 = OK, -1 = timeout, -2 = no ACK, -3 = bus busy, -4 = bad length.
// The whole transfer gets 5 ms plus 0.25 ms per byte (100 kHz needs about 0.09 ms per byte).
pCR2  := 16#40005C04;
pISR  := 16#40005C18;
pICR  := 16#40005C1C;
pRXDR := 16#40005C24;
pTXDR := 16#40005C28;
pB    := pData;

IF uiLen = 0 OR uiLen &gt; 255 THEN
    NotecardI2C_Transfer := -4;
    RETURN;
END_IF

tStart := TIME();
tLimit := T#5MS + UINT_TO_TIME(uiLen / 4);
WHILE (pISR^ AND DWORD#16#8000) &lt;&gt; 0 DO
    IF TIME() - tStart &gt; tLimit THEN
        NotecardI2C_Transfer := -3;
        RETURN;
    END_IF
END_WHILE

pICR^ := DWORD#16#738;
dwCr2 := SHL(BYTE_TO_DWORD(bAddr), 1) OR SHL(UINT_TO_DWORD(uiLen), 16) OR DWORD#16#02002000;
IF bRead THEN
    dwCr2 := dwCr2 OR DWORD#16#400;
    dwWant := DWORD#16#04;
ELSE
    dwWant := DWORD#16#02;
END_IF
pCR2^ := dwCr2;

FOR i := 1 TO uiLen DO
    REPEAT
        dwIsr := pISR^;
        IF (dwIsr AND DWORD#16#10) &lt;&gt; 0 THEN
            WHILE ((pISR^ AND DWORD#16#20) = 0) AND ((TIME() - tStart) &lt;= tLimit) DO
                ;
            END_WHILE
            pICR^ := DWORD#16#30;
            NotecardI2C_Transfer := -2;
            RETURN;
        END_IF
        IF TIME() - tStart &gt; tLimit THEN
            NotecardI2C_Transfer := -1;
            RETURN;
        END_IF
    UNTIL (dwIsr AND dwWant) &lt;&gt; 0
    END_REPEAT
    IF bRead THEN
        pB^ := DWORD_TO_BYTE(pRXDR^);
    ELSE
        pTXDR^ := BYTE_TO_DWORD(pB^);
    END_IF
    pB := pB + 1;
END_FOR

WHILE (pISR^ AND DWORD#16#20) = 0 DO
    IF TIME() - tStart &gt; tLimit THEN
        NotecardI2C_Transfer := -1;
        RETURN;
    END_IF
END_WHILE
dwIsr := pISR^;
pICR^ := DWORD#16#30;
// STOP also follows a NACK, so a rejected final byte only shows up here
IF (dwIsr AND DWORD#16#10) &lt;&gt; 0 THEN
    NotecardI2C_Transfer := -2;
ELSE
    NotecardI2C_Transfer := 0;
END_IF
</xhtml>
          </ST>
        </body>
        <addData>
          <data name="http://www.3s-software.com/plcopenxml/objectid" handleUnknown="discard">
            <ObjectId>a041941e-3b7b-402b-a7bf-717249b14a53</ObjectId>
          </data>
        </addData>
      </pou>
      <pou name="Notecard_JsonNumber" pouType="function">
        <interface>
          <returnType>
            <REAL />
          </returnType>
          <inputVars>
            <variable name="sJson">
              <type>
                <string length="255" />
              </type>
            </variable>
            <variable name="sKey">
              <type>
                <string length="40" />
              </type>
            </variable>
          </inputVars>
          <localVars>
            <variable name="sTag">
              <type>
                <string length="44" />
              </type>
            </variable>
            <variable name="sRest">
              <type>
                <string length="255" />
              </type>
            </variable>
            <variable name="iPos">
              <type>
                <INT />
              </type>
            </variable>
            <variable name="iComma">
              <type>
                <INT />
              </type>
            </variable>
            <variable name="iBrace">
              <type>
                <INT />
              </type>
            </variable>
            <variable name="iEnd">
              <type>
                <INT />
              </type>
            </variable>
          </localVars>
        </interface>
        <body>
          <ST>
            <xhtml xmlns="http://www.w3.org/1999/xhtml">// Returns the number stored under sKey in a compact JSON reply, or 0 if the key is missing.
sTag := CONCAT(CONCAT('"', sKey), '":');
iPos := FIND(sJson, sTag);
IF iPos = 0 THEN
    Notecard_JsonNumber := 0;
    RETURN;
END_IF
sRest := DELETE(sJson, iPos + LEN(sTag) - 1, 1);
iComma := FIND(sRest, ',');
iBrace := FIND(sRest, '}');
iEnd := iBrace;
IF iComma &gt; 0 AND (iComma &lt; iBrace OR iBrace = 0) THEN
    iEnd := iComma;
END_IF
IF iEnd &gt; 0 THEN
    sRest := LEFT(sRest, iEnd - 1);
END_IF
Notecard_JsonNumber := STRING_TO_REAL(sRest);
</xhtml>
          </ST>
        </body>
        <addData>
          <data name="http://www.3s-software.com/plcopenxml/objectid" handleUnknown="discard">
            <ObjectId>74c7cd3e-0c02-47d6-85aa-aafd9d658051</ObjectId>
          </data>
        </addData>
      </pou>
      <pou name="FB_Notecard" pouType="functionBlock">
        <interface>
          <inputVars>
            <variable name="xExecute">
              <type>
                <BOOL />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> rising edge sends sRequest</xhtml>
              </documentation>
            </variable>
            <variable name="sRequest">
              <type>
                <string length="249" />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> one Notecard request, e.g. '{"req":"card.temp"}'</xhtml>
              </documentation>
            </variable>
          </inputVars>
          <outputVars>
            <variable name="xBusy">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="xDone">
              <type>
                <BOOL />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> sResponse holds the Notecard's complete reply</xhtml>
              </documentation>
            </variable>
            <variable name="xError">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="iErrorId">
              <type>
                <INT />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> -1 I2C timeout, -2 Notecard didn't acknowledge, -3 bus busy, -10 no complete reply within 15 s, -11 reply longer than 1023 bytes, -12 couldn't resync with the Notecard</xhtml>
              </documentation>
            </variable>
            <variable name="sResponse">
              <type>
                <string length="1023" />
              </type>
            </variable>
          </outputVars>
          <localVars>
            <variable name="iState">
              <type>
                <INT />
              </type>
            </variable>
            <variable name="xLastExec">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="xI2cReady">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="xSynced">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="iRetries">
              <type>
                <INT />
              </type>
            </variable>
            <variable name="iResult">
              <type>
                <INT />
              </type>
            </variable>
            <variable name="sTx">
              <type>
                <string length="255" />
              </type>
            </variable>
            <variable name="abTx">
              <type>
                <array>
                  <dimension lower="0" upper="31" />
                  <baseType>
                    <BYTE />
                  </baseType>
                </array>
              </type>
            </variable>
            <variable name="abRx">
              <type>
                <array>
                  <dimension lower="0" upper="31" />
                  <baseType>
                    <BYTE />
                  </baseType>
                </array>
              </type>
            </variable>
            <variable name="uiTxLen">
              <type>
                <UINT />
              </type>
            </variable>
            <variable name="uiSent">
              <type>
                <UINT />
              </type>
            </variable>
            <variable name="uiChunk">
              <type>
                <UINT />
              </type>
            </variable>
            <variable name="uiRespLen">
              <type>
                <UINT />
              </type>
            </variable>
            <variable name="usiAvail">
              <type>
                <USINT />
              </type>
            </variable>
            <variable name="usiGood">
              <type>
                <USINT />
              </type>
            </variable>
            <variable name="xGotLF">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="xOverflow">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="xRxAny">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="xRxOther">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="i">
              <type>
                <UINT />
              </type>
            </variable>
            <variable name="pB">
              <type>
                <pointer>
                  <baseType>
                    <BYTE />
                  </baseType>
                </pointer>
              </type>
            </variable>
            <variable name="pReg">
              <type>
                <pointer>
                  <baseType>
                    <DWORD />
                  </baseType>
                </pointer>
              </type>
            </variable>
            <variable name="tAsked">
              <type>
                <TIME />
              </type>
            </variable>
            <variable name="tCallStart">
              <type>
                <TIME />
              </type>
            </variable>
            <variable name="tCallMax">
              <type>
                <TIME />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> longest time a single call has held the task</xhtml>
              </documentation>
            </variable>
            <variable name="tonWait">
              <type>
                <derived name="TON" />
              </type>
            </variable>
            <variable name="tonDrain">
              <type>
                <derived name="TON" />
              </type>
            </variable>
            <variable name="tonTimeout">
              <type>
                <derived name="TON" />
              </type>
            </variable>
          </localVars>
        </interface>
        <body>
          <ST>
            <xhtml xmlns="http://www.w3.org/1999/xhtml">tCallStart := TIME();

IF xExecute AND NOT xLastExec AND NOT xBusy THEN
    xBusy := TRUE;
    xDone := FALSE;
    xError := FALSE;
    iErrorId := 0;
    sResponse := '';
    uiRespLen := 0;
    xGotLF := FALSE;
    xOverflow := FALSE;
    usiAvail := 0;
    uiSent := 0;
    sTx := CONCAT(sRequest, '$L');
    uiTxLen := INT_TO_UINT(LEN(sTx));
    iState := 10;
ELSIF NOT xExecute AND NOT xBusy THEN
    xDone := FALSE;
    xError := FALSE;
END_IF
xLastExec := xExecute;
iResult := 0;

// Each call does at most one I2C transfer of up to 32 bytes; every wait happens between calls.
CASE iState OF
10: // Route I2C3 to the AUX connector: PH7 = SCL, PH8 = SDA (alternate function 4), up to 100 kHz
    IF NOT xI2cReady THEN
        pReg := 16#580244E0;  pReg^ := pReg^ OR DWORD#16#80;
        pReg := 16#580244E8;  pReg^ := pReg^ OR DWORD#16#00800000;
        pReg := 16#58024490;  pReg^ := pReg^ OR DWORD#16#00800000;
                              pReg^ := pReg^ AND NOT DWORD#16#00800000;
        pReg := 16#58021C20;  pReg^ := (pReg^ AND NOT DWORD#16#F0000000) OR DWORD#16#40000000;
        pReg := 16#58021C24;  pReg^ := (pReg^ AND NOT DWORD#16#0000000F) OR DWORD#16#00000004;
        pReg := 16#58021C04;  pReg^ := pReg^ OR DWORD#16#180;
        pReg := 16#58021C0C;  pReg^ := (pReg^ AND NOT DWORD#16#3C000) OR DWORD#16#14000;
        pReg := 16#58021C00;  pReg^ := (pReg^ AND NOT DWORD#16#3C000) OR DWORD#16#28000;
        pReg := 16#40005C00;  pReg^ := 0;
        pReg := 16#40005C10;  pReg^ := DWORD#16#F0421F27;
        pReg := 16#40005C00;  pReg^ := 1;
        xI2cReady := TRUE;
    END_IF
    IF xSynced THEN
        iState := 30;
    ELSE
        iRetries := 0;
        iState := 20;
    END_IF

20: // Resync on first use and after any error, as note-c does: a bare newline ends any
    // partial request, and the Notecard is back in step once it answers with only newlines
    abTx[0] := 1;
    abTx[1] := 16#0A;
    iResult := NotecardI2C_Transfer(FALSE, 16#17, ADR(abTx), 2);
    IF iResult = 0 THEN
        xRxAny := FALSE;
        xRxOther := FALSE;
        usiAvail := 0;
        iState := 21;
    END_IF

21:
    tonWait(IN := TRUE, PT := T#250MS);
    IF tonWait.Q THEN
        tonWait(IN := FALSE);
        tonDrain(IN := FALSE);
        iState := 25;
    END_IF

25, 45: // Ask how many bytes are waiting, and for up to 30 of them
    uiChunk := MIN(USINT_TO_UINT(usiAvail), 30);
    abTx[0] := 0;
    abTx[1] := UINT_TO_BYTE(uiChunk);
    iResult := NotecardI2C_Transfer(FALSE, 16#17, ADR(abTx), 2);
    IF iResult = 0 THEN
        tAsked := TIME();
        iState := iState + 1;
    END_IF

26, 46: // Read them on a later call, at least 3 ms after asking
    IF TIME() - tAsked &gt;= T#3MS THEN
        iResult := NotecardI2C_Transfer(TRUE, 16#17, ADR(abRx), uiChunk + 2);
        IF iResult = 0 THEN
            usiAvail := BYTE_TO_USINT(abRx[0]);
            usiGood := MIN(BYTE_TO_USINT(abRx[1]), UINT_TO_USINT(uiChunk));
            IF iState = 26 THEN
                FOR i := 2 TO USINT_TO_UINT(usiGood) + 1 DO
                    xRxAny := TRUE;
                    IF abRx[i] &lt;&gt; 16#0A AND abRx[i] &lt;&gt; 16#0D THEN
                        xRxOther := TRUE;
                        tonDrain(IN := FALSE);
                    END_IF
                END_FOR
                IF usiAvail &gt; 0 THEN
                    iState := 25;
                ELSE
                    iState := 27;
                END_IF
            ELSE
                pB := ADR(sResponse) + uiRespLen;
                FOR i := 2 TO USINT_TO_UINT(usiGood) + 1 DO
                    IF abRx[i] = 16#0A THEN
                        xGotLF := TRUE;
                    ELSIF abRx[i] &lt;&gt; 16#0D THEN
                        IF uiRespLen &lt; 1023 THEN
                            pB^ := abRx[i];
                            pB := pB + 1;
                            uiRespLen := uiRespLen + 1;
                        ELSE
                            xOverflow := TRUE;
                        END_IF
                    END_IF
                END_FOR
                pB^ := 0;
                IF usiAvail &gt; 0 THEN
                    iState := 45;
                ELSIF NOT xGotLF THEN
                    iState := 40;
                ELSIF xOverflow THEN
                    iResult := -11;
                ELSE
                    xDone := TRUE;
                    xBusy := FALSE;
                    iState := 0;
                END_IF
            END_IF
        END_IF
    END_IF

27: // Drain until 500 ms pass with no unexpected bytes, polling every 20 ms
    tonDrain(IN := TRUE, PT := T#500MS);
    tonWait(IN := TRUE, PT := T#20MS);
    IF tonDrain.Q THEN
        tonDrain(IN := FALSE);
        tonWait(IN := FALSE);
        IF xRxAny AND NOT xRxOther THEN
            xSynced := TRUE;
            iState := 30;
        ELSE
            iRetries := iRetries + 1;
            IF iRetries &gt;= 10 THEN
                iResult := -12;
            ELSE
                iState := 20;
            END_IF
        END_IF
    ELSIF tonWait.Q THEN
        tonWait(IN := FALSE);
        iState := 25;
    END_IF

30: // Send the request plus a newline, at most 30 bytes per I2C write
    uiChunk := MIN(uiTxLen - uiSent, 30);
    abTx[0] := UINT_TO_BYTE(uiChunk);
    pB := ADR(sTx) + uiSent;
    FOR i := 1 TO uiChunk DO
        abTx[i] := pB^;
        pB := pB + 1;
    END_FOR
    iResult := NotecardI2C_Transfer(FALSE, 16#17, ADR(abTx), uiChunk + 1);
    IF iResult = 0 THEN
        uiSent := uiSent + uiChunk;
        IF uiSent &lt; uiTxLen THEN
            iState := 35;
        ELSE
            usiAvail := 0;
            iState := 40;
        END_IF
    END_IF

35, 40: // Pause 20 ms between request chunks, and between polls for the reply
    tonWait(IN := TRUE, PT := T#20MS);
    IF tonWait.Q THEN
        tonWait(IN := FALSE);
        IF iState = 35 THEN
            iState := 30;
        ELSE
            iState := 45;
        END_IF
    END_IF
END_CASE

tonTimeout(IN := xBusy, PT := T#15S);
IF tonTimeout.Q AND iResult = 0 THEN
    iResult := -10;
END_IF

IF iResult &lt;&gt; 0 THEN
    xError := TRUE;
    iErrorId := iResult;
    xBusy := FALSE;
    xI2cReady := FALSE;
    xSynced := FALSE;
    iState := 0;
END_IF

tCallMax := MAX(tCallMax, TIME() - tCallStart);
</xhtml>
          </ST>
        </body>
        <addData>
          <data name="http://www.3s-software.com/plcopenxml/objectid" handleUnknown="discard">
            <ObjectId>ec6866cd-e672-4de0-8953-16d11e8a0cad</ObjectId>
          </data>
        </addData>
      </pou>
      <pou name="FB_SendReading" pouType="functionBlock">
        <interface>
          <inputVars>
            <variable name="xExecute">
              <type>
                <BOOL />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> rising edge takes one reading and queues it as a Note</xhtml>
              </documentation>
            </variable>
          </inputVars>
          <outputVars>
            <variable name="xBusy">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="xDone">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="xError">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="rTemp">
              <type>
                <REAL />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> degrees C, from the Notecard's onboard sensor</xhtml>
              </documentation>
            </variable>
            <variable name="rVoltage">
              <type>
                <REAL />
              </type>
              <documentation>
                <xhtml xmlns="http://www.w3.org/1999/xhtml"> volts</xhtml>
              </documentation>
            </variable>
          </outputVars>
          <localVars>
            <variable name="fbNotecard">
              <type>
                <derived name="FB_Notecard" />
              </type>
            </variable>
            <variable name="iStep">
              <type>
                <INT />
              </type>
            </variable>
            <variable name="xLastExec">
              <type>
                <BOOL />
              </type>
            </variable>
            <variable name="sNoteAdd">
              <type>
                <string length="249" />
              </type>
            </variable>
          </localVars>
        </interface>
        <body>
          <ST>
            <xhtml xmlns="http://www.w3.org/1999/xhtml">// Same Notes as the Arduino quickstart: card.temp and card.voltage, then note.add with sync:true.
IF xExecute AND NOT xLastExec AND NOT xBusy THEN
    xBusy := TRUE;
    xDone := FALSE;
    xError := FALSE;
    iStep := 10;
ELSIF NOT xExecute AND NOT xBusy THEN
    xDone := FALSE;
    xError := FALSE;
END_IF
xLastExec := xExecute;

CASE iStep OF
10:
    fbNotecard(xExecute := TRUE, sRequest := '{"req":"card.temp"}');
    IF fbNotecard.xDone THEN
        rTemp := Notecard_JsonNumber(fbNotecard.sResponse, 'value');
        iStep := 20;
    END_IF

20:
    fbNotecard(xExecute := TRUE, sRequest := '{"req":"card.voltage"}');
    IF fbNotecard.xDone THEN
        rVoltage := Notecard_JsonNumber(fbNotecard.sResponse, 'value');
        iStep := 30;
    END_IF

30:
    sNoteAdd := CONCAT('{"req":"note.add","sync":true,"body":{"temp":', REAL_TO_STRING(rTemp));
    sNoteAdd := CONCAT(sNoteAdd, ',"voltage":');
    sNoteAdd := CONCAT(sNoteAdd, REAL_TO_STRING(rVoltage));
    sNoteAdd := CONCAT(sNoteAdd, '}}');
    fbNotecard(xExecute := TRUE, sRequest := sNoteAdd);
    IF fbNotecard.xDone THEN
        iStep := 100;
    END_IF
END_CASE

IF fbNotecard.xError OR (fbNotecard.xDone AND FIND(fbNotecard.sResponse, '"err"') &gt; 0) THEN
    iStep := 99;
END_IF
IF fbNotecard.xDone OR fbNotecard.xError THEN
    fbNotecard(xExecute := FALSE);
END_IF

IF iStep = 100 THEN
    xDone := TRUE;
    xBusy := FALSE;
    iStep := 0;
ELSIF iStep = 99 THEN
    xError := TRUE;
    xBusy := FALSE;
    iStep := 0;
END_IF
</xhtml>
          </ST>
        </body>
        <addData>
          <data name="http://www.3s-software.com/plcopenxml/objectid" handleUnknown="discard">
            <ObjectId>22f3d15d-c05f-4044-a1c6-68eac6e27605</ObjectId>
          </data>
        </addData>
      </pou>
    </pous>
  </types>
  <instances>
    <configurations />
  </instances>
  <addData>
    <data name="http://www.3s-software.com/plcopenxml/projectstructure" handleUnknown="discard">
      <ProjectStructure>
        <Object Name="NotecardI2C_Transfer" ObjectId="a041941e-3b7b-402b-a7bf-717249b14a53" />
        <Object Name="Notecard_JsonNumber" ObjectId="74c7cd3e-0c02-47d6-85aa-aafd9d658051" />
        <Object Name="FB_Notecard" ObjectId="ec6866cd-e672-4de0-8953-16d11e8a0cad" />
        <Object Name="FB_SendReading" ObjectId="22f3d15d-c05f-4044-a1c6-68eac6e27605" />
      </ProjectStructure>
    </data>
  </addData>
</project>
