Tag Archives: arduino industrial

Productivity Open P1AM Industrial Arduino P1000 Expansion Analog Combination Module


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 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
• Analog
• Temperature
• Relay
• High-speed Input
• PWM

We will be wiring and programming our P1-4ADL2DAL-1 combination analog input and output module that came with the P1AM-START1 ProductivityOpen starter kit with Ethernet. Let’s get started. Continue Reading!

Productivity Open P1AM Industrial 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 the delayed time, not allowing other parts of the program to function. We will be looking at this and the method to do the exact same delay functions without pausing your program.

A sample program will be discussed to demonstrate the time functions in our program. Let’s get started. Continue Reading!

Productivity Open P1AM Industrial Arduino Math Instructions


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 be discussed that will involve some of these math instructions. Let’s get started. Continue Reading!

Productivity Open 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 the P1AM-100 CPU arduino unit.

Analog points will be wired to a potentiometer and LED (light-emitting diode) for demonstration of the voltage range that we can input and output. Digital points will be wired for discrete input and output using a pushbutton switch and LED. PWM (pulse width modulation) will also be used to control the brightness of a LED connected to a digital output. Let’s get started. Continue Reading!

Productivity Open P1AM Industrial 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 of these instructions that are available using productivity blocks. A sample sketch will be shown that will use some of these operators. The sketch will get a number between 1 and 100 from the built-in Arduino IDE (integrated development environment) serial monitor. It will print the number on the monitor if it is between 1 and 100, else it will print try again. Let’s get started! Continue Reading!

Productivity Open P1AM Industrial Arduino Program Control

Arduino programs (sketches) can be written in thousands of different ways. The best way will determine the purpose of your program and what you are trying to accomplish. To simplify the logic we will be looking at program control that can be achieved using productivity blocks.
Program control will look at subroutines (sometimes referred to as methods or functions), conditional statements and looping statements. These three items can be combined to reduce your code length, make your program easier to read, and in turn easier to troubleshoot.

We will be looking at each of these instructions that are available using productivity blocks. A sample program will then be discussed that will contain some program control as a demonstration. Let’s get started. Continue Reading!

Productivity Open P1AM Industrial Arduino Serial Monitor COM

The Arduino integrated development environment (IDE) has a built-in pop-up serial monitor. The serial monitor can be used to receive and send serial data to our Arduino program. This can be a great feature to help us in debugging or controlling Arduino programs. (Sketches)
We will be modifying the blinking light program that we did previously and add a one to an integer every time the P1AM-100 arduino CPU switch is on. This will be then printed on the serial monitor.

Removing the blinking light, we will run our program again an see the difference in speed with the delay instructions removed. Productivity blocks will be used to program our industrial arduino controller.
We will then look at escape character codes that we can use with our industrial arduino. Since the built-in serial monitor will not interpret the escape codes, we will be using Putty as our serial monitor program. Let’s get started. Continue Reading!

Productivity Open P1AM Industrial Arduino Variables Data Types

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 understand binary (on / off) numbering systems. The interpretation of these binary numbers will allow us to have several different data types. We will be reviewing the different data types that we can use in our sketches (programs) for our P1AM-100 arduino industrial controller. Only the variables data types available in ProductivityBlocks will be discussed, but references will be made for all data types that can be used. We will then look at a program that will list some integer and string variables. This will then be displayed on the serial monitor of the Arduino IDE. Let’s get started. Continue Reading!

Productivity Open P1AM Industrial Arduino First Program




The P1AM-100 industrial controller is programmed with the Arduino IDE (Integrated Development Environment). We installed the Arduino IDE, P1AM-100 library and ProductivityBlocks. Using this software we will be setting it up to program our P1AM Arduino industrial controller.

The Boards Manager will be used to set up our P1AM-100 Arduino board. We will then ensure that our device driver has been installed so we can communicate to the Productivity Open Controller. Using ProductivityBlocks, we will call up one of the sample programs, verify and upload the program to the P1AM-100. This program will blink the CPU LED light on and off. Let’s get started. Continue Reading!

Productivity Open Arduino Compatible Industrial Controller Installing the Software




The P1AM-100 industrial controller is programmed with the Arduino IDE (Integrated Development Environment). The C++ programming environment is emerging in industrial automation. This software is open-sourced and available free of charge. It will run on Windows, Mac or Linux.

ProductivityBlocks is a graphical programming interface and add-on to the Arduino IDE. It helps you build your sketch program by dragging and dropping interlocking blocks. The associated C++ is automatically generated for you. This will help you to avoid syntax errors.

We will be installing the Arduino IDE, P1AM-100 library and Productivity Blocks. This will be done on a Windows 7 machine. Let’s get started. Continue Reading!