<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://forge.codesys.com/drv/relay-pi-plate/wiki/Home/</link><description>Recent changes to Home</description><language>en</language><lastBuildDate>Fri, 06 Dec 2019 14:00:19 -0000</lastBuildDate><atom:link href="https://forge.codesys.com/drv/relay-pi-plate/wiki/Home/feed" rel="self" type="application/rss+xml"></atom:link><item><title>Home modified by BG_Automation</title><link>https://forge.codesys.com/drv/relay-pi-plate/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,8 +1,65 @@
-This project is to convert the PI-Plates Relay Plate Python Code to CodeSys.
+Background

-Steps for Project
+I purchased this Relay PI-Plate and it works very well using python. I though i could expand its uses with codesys and make my own driver. I emailed the support and asked for a C library or if they would explain more about how the driver works. They said no, they would not help. The python libaray was the only thing they would supply, but I was welcome to develop my own library based on their python library. I read how to develop a SPI bus device driver on the forge and though I would give it a shot. Below is what I discovered so far.

-1.)  Discover how the relay plate works using python.  Code can be found here:  
+My main goal would be to add a device under the SPI bus master and map each relay to a boolean value. Also the relay. I would like to get also poll all the board information and map that to a variable.

+Product Data
+https://pi-plates.com/relayr1/

-[[members limit=20]]
+Python Code
+https://forge.codesys.com/drv/relay-pi-plate/wiki/Pi-Plate%20Code%20to%20Convert%20To%20SPI/
+
+User Guide
+https://pi-plates.com/relayplate-users-guide/
+
+Command Reference
+https://pi-plates.com/downloads/RELAYplateQuickReferenceGuide.pdf
+
+Data
+
+Relay Plate Address
+Relay Number
+Relay State
+
+Relay Functions
+Turn Relay On
+Turn Relay Off
+Toggle Relay
+Relay All (Byte)
+Return Relay State
+
+LED Functions
+Set LED
+Clear LED
+Toggle LED
+
+System Functions
+Get Firmware Version
+Reset
+
+Address Range of boards 0 to 7
+Relay Range 1 to 7
+
+GPIO Used, I will write out what they are for when I find out.
+
+The following pins are dedicated to Pi-Plates and cannot be shared:
+Pin 22 / GPIO 25
+Pin 26 / GPIO 7
+Pin 16 / GPIO 23
+Pin 15 / GPIO 22
+The following pins are used for SPI communication and can be used by other SPI-enabled devices selected by CE0. They cannot be used for GPIO:
+
+    Pin 19 / GPIO 10
+    Pin 21 / GPIO 9
+
+    Pin 23 / GPIO 11
+    The following pin may be used by Pi-Plates if their features are enabled:
+
+    Pin 12 / GPIO 18
+
+    The following pins are reserved for future expansion:
+
+    Pin 16 / GPIO 23
+    Pin 18 / GPIO 24
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">BG_Automation</dc:creator><pubDate>Fri, 06 Dec 2019 14:00:19 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.comc938d1bdc5bd57ce78738dfe102c4cd09e1bbc47</guid></item><item><title>Home modified by BG_Automation</title><link>https://forge.codesys.com/drv/relay-pi-plate/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,7 +1,8 @@
-Welcome to your wiki!
+This project is to convert the PI-Plates Relay Plate Python Code to CodeSys.

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+Steps for Project

-The wiki uses [Markdown](/drv/relay-pi-plate/wiki/markdown_syntax/) syntax.
+1.)  Discover how the relay plate works using python.  Code can be found here:  
+

 [[members limit=20]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">BG_Automation</dc:creator><pubDate>Fri, 06 Dec 2019 13:54:26 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com404e6f16efbe88018c153e1fc9537a43f3af01b0</guid></item><item><title>Home modified by briangehrke</title><link>https://forge.codesys.com/drv/relay-pi-plate/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/drv/relay-pi-plate/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;h6&gt;Project Members:&lt;/h6&gt;
	&lt;ul class="md-users-list"&gt;
		&lt;li&gt;&lt;a href="/u/briangehrke/"&gt;briangehrke&lt;/a&gt; (admin)&lt;/li&gt;
		
	&lt;/ul&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">briangehrke</dc:creator><pubDate>Sat, 30 Nov 2019 03:00:14 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com72d6464b1ab08521427cf724582017caa030c0fe</guid></item></channel></rss>