Node-RED External Resources Developer - Published: Official sites:nodered.orgOfficial Forum on DiscourseOfficial Google Group discussion board (being phased out for Discourse forum)External sites that cover Node-RED topics:http://noderedguide.com/ - a...moreOfficial sites:nodered.orgOfficial Forum on DiscourseOfficial Google Group discussion board (being phased out for Discourse forum)External sites that cover Node-RED topics:http://noderedguide.com/ - a Node-RED programming guide.https://medium.com/node-red - articles, tutorials, and guides.Video:See our own list of useful Node-RED videos.... <less Node-RED for groov I/O Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov I/O nodes can read and write...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov I/O nodes can read and write values from groov I/O digital and analog modules.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for groov I/O Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-groov-io/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-groov-io/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED for groov View Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov View nodes can read and write...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov View nodes can read and write values from groov View Data Store tags.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for groov View Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED for PAC Control Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and write values from a PAC Control strategy running in a groov EPICor SNAP PAC industrial controller.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for PAC Control Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED Hello, world! Example Developer - Published: OverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the...moreOverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the basic mechanism by which Node-RED operates.Nodes either generate a new message or process an incoming message.Messages have properties, which are values attached to the message. Properties are basically a variable and can be numbers, strings, booleans, arrays, or objects.A very common message prope...... <less Node-RED Hello, world! Example, part 2 Developer - Published: OverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst...moreOverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst off, let’s add the current time to the message. To do that, we’ll use the Function block, which allows you to enter JavaScript code to manipulate the msg object.Select a Function node and drag it out onto the flow.Carefully place it over the existing wire between the existing Inject and Debug node...... <less Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Node-RED for groov I/O Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov I/O nodes can read and write...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov I/O nodes can read and write values from groov I/O digital and analog modules.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for groov I/O Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-groov-io/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-groov-io/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED for groov View Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov View nodes can read and write...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov View nodes can read and write values from groov View Data Store tags.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for groov View Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED for PAC Control Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and write values from a PAC Control strategy running in a groov EPICor SNAP PAC industrial controller.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for PAC Control Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED Hello, world! Example Developer - Published: OverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the...moreOverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the basic mechanism by which Node-RED operates.Nodes either generate a new message or process an incoming message.Messages have properties, which are values attached to the message. Properties are basically a variable and can be numbers, strings, booleans, arrays, or objects.A very common message prope...... <less Node-RED Hello, world! Example, part 2 Developer - Published: OverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst...moreOverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst off, let’s add the current time to the message. To do that, we’ll use the Function block, which allows you to enter JavaScript code to manipulate the msg object.Select a Function node and drag it out onto the flow.Carefully place it over the existing wire between the existing Inject and Debug node...... <less Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Node-RED for groov I/O Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-groov-io/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-groov-io/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED for groov View Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov View nodes can read and write...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov View nodes can read and write values from groov View Data Store tags.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for groov View Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED for PAC Control Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and write values from a PAC Control strategy running in a groov EPICor SNAP PAC industrial controller.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for PAC Control Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED Hello, world! Example Developer - Published: OverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the...moreOverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the basic mechanism by which Node-RED operates.Nodes either generate a new message or process an incoming message.Messages have properties, which are values attached to the message. Properties are basically a variable and can be numbers, strings, booleans, arrays, or objects.A very common message prope...... <less Node-RED Hello, world! Example, part 2 Developer - Published: OverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst...moreOverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst off, let’s add the current time to the message. To do that, we’ll use the Function block, which allows you to enter JavaScript code to manipulate the msg object.Select a Function node and drag it out onto the flow.Carefully place it over the existing wire between the existing Inject and Debug node...... <less Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Node-RED for groov View Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov View nodes can read and write...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for groov View nodes can read and write values from groov View Data Store tags.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for groov View Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED for PAC Control Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and write values from a PAC Control strategy running in a groov EPICor SNAP PAC industrial controller.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for PAC Control Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED Hello, world! Example Developer - Published: OverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the...moreOverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the basic mechanism by which Node-RED operates.Nodes either generate a new message or process an incoming message.Messages have properties, which are values attached to the message. Properties are basically a variable and can be numbers, strings, booleans, arrays, or objects.A very common message prope...... <less Node-RED Hello, world! Example, part 2 Developer - Published: OverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst...moreOverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst off, let’s add the current time to the message. To do that, we’ll use the Function block, which allows you to enter JavaScript code to manipulate the msg object.Select a Function node and drag it out onto the flow.Carefully place it over the existing wire between the existing Inject and Debug node...... <less Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Node-RED for groov View Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-groov/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED for PAC Control Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and write values from a PAC Control strategy running in a groov EPICor SNAP PAC industrial controller.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for PAC Control Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED Hello, world! Example Developer - Published: OverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the...moreOverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the basic mechanism by which Node-RED operates.Nodes either generate a new message or process an incoming message.Messages have properties, which are values attached to the message. Properties are basically a variable and can be numbers, strings, booleans, arrays, or objects.A very common message prope...... <less Node-RED Hello, world! Example, part 2 Developer - Published: OverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst...moreOverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst off, let’s add the current time to the message. To do that, we’ll use the Function block, which allows you to enter JavaScript code to manipulate the msg object.Select a Function node and drag it out onto the flow.Carefully place it over the existing wire between the existing Inject and Debug node...... <less Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Node-RED for PAC Control Developer - Published: Node-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and...moreNode-RED is a visual tool for wiring the Internet of Things, by wiring together hardware devices, APIs and online services in new and interesting ways.The Node-RED for PAC Control nodes can read and write values from a PAC Control strategy running in a groov EPICor SNAP PAC industrial controller.For more information, please visit the Getting Started and Resources sections.... <less Node-RED for PAC Control Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED Hello, world! Example Developer - Published: OverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the...moreOverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the basic mechanism by which Node-RED operates.Nodes either generate a new message or process an incoming message.Messages have properties, which are values attached to the message. Properties are basically a variable and can be numbers, strings, booleans, arrays, or objects.A very common message prope...... <less Node-RED Hello, world! Example, part 2 Developer - Published: OverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst...moreOverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst off, let’s add the current time to the message. To do that, we’ll use the Function block, which allows you to enter JavaScript code to manipulate the msg object.Select a Function node and drag it out onto the flow.Carefully place it over the existing wire between the existing Inject and Debug node...... <less Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Node-RED for PAC Control Updates Developer - Published: The project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings...moreThe project's [change log](https://github.com/Opto22/node-red-contrib-pac/blob/master/CHANGELOG.md) containsinformation on the released versions.To update an installed node in Node-RED, open Settings, select Palette and find the node. An update button will be displayed if a newer version is available.... <less Node-RED Hello, world! Example Developer - Published: OverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the...moreOverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the basic mechanism by which Node-RED operates.Nodes either generate a new message or process an incoming message.Messages have properties, which are values attached to the message. Properties are basically a variable and can be numbers, strings, booleans, arrays, or objects.A very common message prope...... <less Node-RED Hello, world! Example, part 2 Developer - Published: OverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst...moreOverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst off, let’s add the current time to the message. To do that, we’ll use the Function block, which allows you to enter JavaScript code to manipulate the msg object.Select a Function node and drag it out onto the flow.Carefully place it over the existing wire between the existing Inject and Debug node...... <less Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Node-RED Hello, world! Example Developer - Published: OverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the...moreOverviewWhile this tutorial covers a very basic example, there are a few key concepts that should be discussed first:Messages are objects containing data, and they flow from node to node. They are the basic mechanism by which Node-RED operates.Nodes either generate a new message or process an incoming message.Messages have properties, which are values attached to the message. Properties are basically a variable and can be numbers, strings, booleans, arrays, or objects.A very common message prope...... <less Node-RED Hello, world! Example, part 2 Developer - Published: OverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst...moreOverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst off, let’s add the current time to the message. To do that, we’ll use the Function block, which allows you to enter JavaScript code to manipulate the msg object.Select a Function node and drag it out onto the flow.Carefully place it over the existing wire between the existing Inject and Debug node...... <less Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Node-RED Hello, world! Example, part 2 Developer - Published: OverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst...moreOverviewThe Hello, world! example is great, but we can make it more useful and interesting. We’ll add the current time to the message, and execute it every two seconds.Step 1 - Add a Function nodeFirst off, let’s add the current time to the message. To do that, we’ll use the Function block, which allows you to enter JavaScript code to manipulate the msg object.Select a Function node and drag it out onto the flow.Carefully place it over the existing wire between the existing Inject and Debug node...... <less Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Node-RED Videos Developer - Published: Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:...Here are some interesting and useful videos about Node-RED.An IBM tech talk from 2017, featuring the creators of Node-RED. Covers the history and future of Node-RED:... <less Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Opto 22 Developer Developer - Published: Welcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access...moreWelcome to the official Opto 22 Developer site.APIs and LibrariesDeveloping with groov EPIC Breakdown of tools and programming options available for the groovEPIC, including Secure Shell (SSH) access.Node-RED General information about Node-RED.Node-RED for groov View Node-RED nodes for communicating with groov View Data Store tags.Node-RED for groov I/O Node-RED nodes for using groov I/O modules and channels.Node-RED for PAC Control Node-RED nodes for communicating with groovEPIC and SNAPPAC ind...... <less Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Opto 22 Products for Raspberry Pi Solutions Developer - Published: Which I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module...moreWhich I/O Should I Use?If you don’t already have I/O for your Raspberry Pi project, you should base your decision on the sensors and actuators you plan to use.Opto 22 G4 I/O has 1 point per module. Input modules are used to sense field signals. Each output module is individually fused and can switch up to 3 A.Opto 22 SNAP I/O takes up less space with 4 points per module and costs less per point. Most output modules can switch up to 0.75 A per point or a total of 3 A per module. SNAP-OMR6 modules...... <less Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Opto 22's Configure-Read-Write Script Developer - Published: To simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script...moreTo simplify accessing I/O when you write your own code, Opto 22 engineers wrote a Python script that your code can reference.If you’re using a browser, click here for the script.To download the script to the current directory using a terminal, enter wget http://developer.opto22.com/downloads/Opto22.PI.py Tip: To print the working directory, enter pwdTo view the script, enter more Opto22.PI.py The script references an I/O module’s rack position to read and write to its point, and to configure its...... <less PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
PAC Control Nodes - Introduction Developer - Published: OverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and...moreOverviewIf you’re new to Node-RED but have not yet worked through the Hello, world! example, please do so now.In this section, we’ll add a PAC Control Read node, configure the controller’s address, and run the flow.Step 1 - Add a PAC Control Read NodeDrag out an Inject node, a PAC Control Read node, and a Debug node.Wire them together, as shown below. Click the image to start and stop the animation.Step 2 - Configure the PAC Control NodeDouble-click the PAC Control Read node to open the Edit pac...... <less PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
PAC Control Nodes - Reading Tags Developer - Published: OverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more...moreOverviewThe PAC Control nodes can read or write variables, tables, and I/O points in a controller.In the first example, we saw how to read the Device Details for a controller. Now let’s do some more interesting things, like read and write variables and I/O points.Read All Int32 VariablesUsing the same basic flow of an Inject node connected to a PAC Control Read node connected to a Debug node, we can explore some more of the Read nodes capabilities.Make sure your controller has a strategy loaded....... <less PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
PAC Control Nodes - Writing Tags Developer - Published: OverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write...moreOverviewIn the previous example, we saw how to read one or all Int32 variables.Now let’s use a Write node, and then connect a Read to a Write node.Write to an Int32 VariablePlace a PAC Control Write node onto your flow.Connect an Inject node to the input port. You do NOT need to connect a Debug node to the output port.Double-click on the PAC Control Write node to open the “Edit pac read node”.For the Device field, select a configured controller.For the Data Type field, select Int32 Variable.For ...... <less PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
PAC Control REST API Code Samples for SNAP PAC Developer - Published: For API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an...moreFor API syntax and tips, see the API Reference, which is generated from the Swagger specification.A C# sample that reads a point and returns the response JSON as a stringInsert Tag Values into an Access® databaseAn interactive Microsoft® Access database that builds commands to read data from an Opto 22 SNAP PAC controller. Written and video instructions provided.Insert Tag Values into an Excel® spreadsheetSample Excel spreadsheets you can use to read from and write to an Opto 22 SNAP PAC control...... <less Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Pin-to-Module Mapping Developer - Published: ## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO...more## GPIO Pin to Digital I/O Module MappingDownload Mapping OverlayFor communication between a Raspberry Pi and Opto 22 digital I/O modules, the Digital I/O Carrier Board for Raspberry Pi maps 16 GPIO pins to 16 I/O modules. To read or write to an I/O module, reference the GPIO pin number in your code.{% include important.html content="Opto 22 I/O modules use negative true logic (a zero bit means On and a 1 bit means Off). When you read and write to I/O points, 0 is On and 1 is Off." %} ### __Mapp...... <less Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Raspberry Pi with a Side of I/O Developer - Published: Safely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and...moreSafely and reliably sense and switch 5-60 VDC, 120 VAC, and 240 VAC loads with a Raspberry Pi® Raspberry Pi is a trademark of the Raspberry Pi Foundation.Raspberry Pi, I/O modules, mounting rack, and power supply all sold separately.With Opto 22’s Digital I/O Carrier Board for Raspberry Pi, you can use industrially hardened digital input/output (I/O) modules with your Raspberry Pi.Use your Pi to switch industrial-level electrical loads far beyond the Pi’s built in 3.3 VDC GPIO pins.Monitor and c...... <less Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Read a Point Developer - Published: Download Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls...moreDownload Code SampleThis simple C# code sample uses only .NET libraries (—no external dependencies) to:* Authenticate to a controller* Read a point* Return the response JSON as a stringThe sample calls the GetAnalogInputs() endpoint at an Opto 22 demo controller. It was written with Visual Studio® 2013, using .NET 4.5.{% include tip.html content="You can use [SwaggerHub](https://app.swaggerhub.com/apis/Opto22) to automatically generate a client-side C# proxy from the SNAP PAC REST API metadata."...... <less Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Read an Integer Array with the OptoMMP Function Blocks Developer - Published: ## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected...more## OverviewIn this third example, we'll read an array of integer values from the Scratch Pad area of the OptoMMP memory map.The goals of this example are: * The client will connect and stay connected if there are any errors. * Five elements of the Integer 32 Scratch Pad will be read into an integer array. * The read requests will trigger five seconds after the previous one is finished.This example assumes you have basic familiarity with creating and running an application in the CODESYS Developm...... <less Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Read and Write from a Terminal Developer - Published: The examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0...moreThe examples in this section show LXTerminal on a Pi running Raspbian. For a mapping diagram and overlay for your Pi, see [Pin-to-Module Mapping](..\pin-to-module).## Read all GPIO pinsA value of 0 means the I/O point is On; 1 means it’s Off._Syntax_~~~ linuxgpio readall~~~In this image, highlighted GPIO pins are mapped to I/O points. ![gpio readall](/images/pi/gpio-readall.png){% include callout.html content="Don't let the column names in this chart confuse you. In a Readall chart from LXTermin...... <less Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Read and Write to Opto 22 G4 Digital I/O Developer - Published: This simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi...moreThis simple example uses RPi-GPIO nodes to read and write to Opto 22 digital I/O modules. {% include note.html content="You can test this flow *without* using Opto 22's [Digital I/O for Raspberry Pi® Starter Kit (AC/DC)](https://www.opto22.com/products/opto-p1-starterkit-1) or[Digital I/O Carrier Board for Raspberry Pi](https://www.opto22.com/products/opto-p1-40p)—but where's the fun in that?" %} ![Read-Write Flow](/images/node-red-pac/read-write-flow.jpg){% include callout.html content="If you ...... <less Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
Return WAN IP Address Developer - Published: This Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer...moreThis Node-RED code sample returns the WAN IP address used by the router that your controller is connected to.## Prerequisites* A SNAP PAC controller with Node-RED (described [here](http://developer.opto22.com/nodered/pac/getting-started/). PAC Project 9.5 (or higher) * Download and install either [PAC Project Pro™](https://www.opto22.com/support/resources-tools/downloads/pac_project_professional) or [PAC Project Basic™](https://www.opto22.com/support/resources-tools/downloads/pac_project_basic)....... <less RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items
RPi.GPIO Library Developer - Published: If you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter...moreIf you code in Python, the RPi.GPIO Python library (included with Raspbian) lets you configure, read, and write to GPIO pins.{% include note.html content="To install the RPi.GPIO Python library, enter this command at a terminal:sudo apt-get install RPi.GPIOIf the library's already installed, you'll get a “...is already the newest version” message.Otherwise, the package will download and install. " %} We've created a Python script that shows how to read and write with the RPi.GPIO library. * If y...... <less « PreviousPage 4 of 5Next » Show 25 Items Show All Items Show 10 Items Show 25 Items Show 50 Items Show 100 Items