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

P1AM Industrial Arduino P1000 Expansion Analog

We will now look at the P1AM Arduino expansion analog modules. This analog expansion is part of the P1000 cards that the P1AM Arduino can use as it’s inputs and outputs. The productivity open P1AM I/O interface chip-set supports the full suite of Productivity 1000 I/O expansion modules. These modules are industry approved and proven … Read more

Productivity Open P1AM Arduino Time Instructions

Time instructions in our productivity blocks programming (Arduino sketches) consist of runtime (ms), runtime (us), delay ms, and delay microseconds us. We will be looking at each of these instructions that are available for our program using productivity blocks. Delay instructions in our sketches should be used with caution. They will pause our program for … 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

P1AM Industrial Arduino GPIO Inputs and Outputs

The P1AM-GPIO is an industrial rated shield for the P1AM-100 Arduino system. It provides a connection from most of the P1AM-100 GPIO pins to the front 18 position terminal block connector. We will be looking at the wiring and programming of this input and output industrial rated shield that mounts on the left side of … Read more

Productivity Open P1AM Arduino Operators

Operators in your Arduino sketches (programs) consist of comparison blocks, concatenate strings, bitwise operators, string conversion, ‘not’ operator, and compound operators. These operations generally will be used with other instructions in your sketch. It is important to understand what instructions are available and what they are designed to accomplish. We will be looking at each … 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