<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Translating a Python program into CODESYS</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/841c73f683/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/841c73f683/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/841c73f683/</id><updated>2020-02-27T15:34:15.530000Z</updated><subtitle>Recent posts to Translating a Python program into CODESYS</subtitle><entry><title>Translating a Python program into CODESYS</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/841c73f683/?limit=25#69a6" rel="alternate"/><published>2020-02-27T15:34:15.530000Z</published><updated>2020-02-27T15:34:15.530000Z</updated><author><name>Fab</name><uri>https://forge.codesys.com/u/fab/</uri></author><id>https://forge.codesys.com3158738589cdd2ae8b82818d687f899bd5792a78</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I wrote a library and a device description for the MCP3421 with a type-K temperature sensor connected to the pi. &lt;br/&gt;
It's poor written but it's a start and it works for me&lt;br/&gt;
i hope anyone else can maybe make use of this too.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=1102" rel="nofollow"&gt;I2C_MCP3421.library &lt;span&gt;&lt;span&gt;[327.35 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=1101" rel="nofollow"&gt;I2C_MCP3421.devdesc.xml &lt;span&gt;&lt;span&gt;[2.98 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Translating a Python program into CODESYS</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/841c73f683/?limit=25#4f77" rel="alternate"/><published>2020-02-27T15:34:14.848000Z</published><updated>2020-02-27T15:34:14.848000Z</updated><author><name>t.lundahl</name><uri>https://forge.codesys.com/u/t-lundahl/</uri></author><id>https://forge.codesys.com969b560bd9ac87d405d0a59fa5b64be3f2419ba7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you sometimes need to make a watchlist of some variable to see some variables. I don't know all conditions but complex variables like ARRAY need it.&lt;/p&gt;
&lt;p&gt;/Torbjörn&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Translating a Python program into CODESYS</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/841c73f683/?limit=25#9c72" rel="alternate"/><published>2020-02-27T15:34:12.883000Z</published><updated>2020-02-27T15:34:12.883000Z</updated><author><name>Fab</name><uri>https://forge.codesys.com/u/fab/</uri></author><id>https://forge.codesys.com10614b5ffe526a2fd63cf4d05fad60585268dbdd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey guys,&lt;br/&gt;
so.. I started up with this but im always getting "???" where at len.&lt;br/&gt;
Does somebody know what i am doing wrong?&lt;br/&gt;
The Python program works perfectly&lt;/p&gt;
&lt;p&gt;I'm just having some problems with the communication. I only need help with that. So that i can access the MCP3421&lt;br/&gt;
It seems like the "Timer.Q" doesnt trigger and i don't know why&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP3421 library.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1076"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Translating a Python program into CODESYS</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/841c73f683/?limit=25#0aae" rel="alternate"/><published>2020-02-27T15:34:12.092000Z</published><updated>2020-02-27T15:34:12.092000Z</updated><author><name>Fab</name><uri>https://forge.codesys.com/u/fab/</uri></author><id>https://forge.codesys.comc3a15235bcd0778bec19be2f54dce8f8426a43ab</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;just a quick hint or something would be sweet&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Translating a Python program into CODESYS</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/841c73f683/?limit=25#0f5a" rel="alternate"/><published>2020-02-27T15:34:11.398000Z</published><updated>2020-02-27T15:34:11.398000Z</updated><author><name>Fab</name><uri>https://forge.codesys.com/u/fab/</uri></author><id>https://forge.codesys.com5f18c1e83884e0e158dce4e9aa4c8a265354d25c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Does somebody have an idea of how to translate the Python program deposited in the appendix into CODESYS? &lt;br/&gt;
It is a program that makes it possible to read temperature and humidity with a HiH6130 Sensor connected to the MCP3421 18bit ADC&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP3421 with Temperature Humidity Sensor HiH6130.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1075"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>