<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to need help on block function mcp23s17</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9c2d35a5ac/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9c2d35a5ac/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/9c2d35a5ac/</id><updated>2020-02-27T16:46:23.748000Z</updated><subtitle>Recent posts to need help on block function mcp23s17</subtitle><entry><title>need help on block function mcp23s17</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9c2d35a5ac/?limit=25#a200" rel="alternate"/><published>2020-02-27T16:46:23.748000Z</published><updated>2020-02-27T16:46:23.748000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com4d33169f0f0bd4d2b3bd68a8588ff5e0dcbddbac</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; phenixrb&lt;/p&gt;
&lt;p&gt;Hello everyone,&lt;br/&gt;
I start with using codesys for raspberry,&lt;br/&gt;
I want to use several mcp23s17 to extend the IO number of the pi.&lt;br/&gt;
I found the: FUNCTION_BLOCK MCP23S17_FB EXTENDS spi.&lt;br/&gt;
but I do not understand how to use this block.&lt;/p&gt;
&lt;p&gt;could someone do like a tutorial step by step to explain how:&lt;/p&gt;
&lt;p&gt;1-define the address of each integrated circuit.&lt;br/&gt;
2-Define the inputs and outputs for each circuit, and ideally be able to rename them.&lt;br/&gt;
3-recover the states of the inputs and outputs and be able to use them as global variable.&lt;/p&gt;
&lt;p&gt;thank you for your help, I have not found any documentation on this block function.&lt;br/&gt;
neither on codesys or on the internet.&lt;br/&gt;
even in the program examples provided by codesys, you do not have access to the program lines to understand the operation.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>