P1AM Industrial Arduino Watchdog Timer

A watchdog is a piece of code that will timeout when an error occurs in our program. It will usually cause the CPU (program/sketch) to stop or reset. We will now look at the instructions for the watchdog timer in productivity blocks. This includes the Configure Watchdog, Start Watchdog, Stop Watchdog, and Pet Watchdog. Our … Read more

P1AM Arduino P1 Digital Inputs and Outputs 2

In part 1 we added additional discrete digital inputs and outputs modules (cards) to our P1AM-START1 (Industrial Arduino) ProductivityOpen starter kit with Ethernet. A program was then discussed that will print the modules in our system and then set and reset discrete digital inputs and outputs. P1-16TR – Productivity1000 relay output module, 16-point, 6-24 VDC/6-120 … Read more

P1AM Arduino P1 Digital Inputs and Outputs 1

The productivity open Arduino P1AM I/O interface chip-set supports the full suite of Productivity 1000 (P1) Inputs / Outputs expansion modules. These modules are industry approved and proven in the industrial environment. Modern industrial signal levels for digital and analog inputs and outputs are used. P1000 modules available to you include the following: • Discrete … Read more

Productivity Open P1AM Industrial Arduino Math

Math instructions in your Arduino sketches (programs) consist of arithmetic operations, compound operators, absolute, power, square root, sin, cos, tan, random, map and constrain. These instructions will be generally used with other instructions in your sketch. We will be looking at each of these instructions that are available using productivity blocks. A sample program will … Read more

Productivity P1AM Arduino Variables Data Types

We will look at Arduino variables data types that can be used with our P1AM unit. Data types in the C++ language are used to determine the variable or function applied for the given type. The type will determine the size of the storage (bits), and the method to interpret the information. Microprocessors can only … Read more

P1AM Industrial Arduino Program Structure

We will now look at the P1AM industrial Arduino program structure. The P1AM-100 industrial controller is programmed with the Arduino IDE (Integrated Development Environment). The arduino IDE will allow us to write sketches (programs). These sketches have basic common elements like setup and loop. We will be looking at these elements in our first program … Read more