Top Banner
Quick Start Guide STM32 ODE Function Pack for Building a PLC controlled via Wi-Fi (FP-IND-PLCWIFI1) Version 1.1 (Oct 16, 2017)
25

Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Jul 27, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Quick Start GuideSTM32 ODE Function Pack for Building a PLC controlled via Wi-Fi

(FP-IND-PLCWIFI1)

Version 1.1 (Oct 16, 2017)

Page 2: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Quick Start Guide Contents 2

FP-IND-PLCWIFI1: STM32 ODE function pack for building a PLC controlled through Wi-Fi

Hardware and Software overview

Setup & Demo Examples

Documents & Related Resources

STM32 Open Development Environment: Overview

Page 3: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Wi-Fi expansion boardHardware overview (1/3) 3

Hardware Description

The X-NUCLEO-IDW01M1 is a Wi-Fi evaluation board

based on the SPWF01SA module, which expands the

STM32 Nucleo boards. The CE, IC and FCC certified

SPWF01SA module has an embedded STM32 MCU, a

low-power Wi-Fi b/g/n SoC with integrated power amplifier

and power management and an SMD antenna. The

SPWF01SA module communicates with the STM32 Nucleo

developer board host microcontroller though an USART

link available on the Arduino UNO R3 connector.

Main Features:

• X-NUCLEO-IDW01M1 hosts FCC, IC and CE certified

SPWF01SA module (FCC ID: VRA-SG9011203, IC:

7420A-SG9011203 and ETSI compliant)

• SPWF01SA module major characteristics:

• Compatible with STM32 Nucleo boards

• Equipped both with ST morpho connector and Arduino

UNO R3 connectors

• Scalable solution; it can cascade multiple boards for

larger systems

• Free development firmware library and examples,

compatible with STM32Cube

• RoHS compliant

Key Products on board

SPWF01SAST SPWF01Sx module, 802.11 b/g/n compliant

Latest info available at www.st.com

X-NUCLEO-IDW01M1

Printed Antenna

Arduino UNO R3 connector

ST morpho connector

STM32 Wi-Fi Frontend

Page 4: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Industrial Digital Output expansion boardHardware overview (2/3) 4

Hardware Description

The X-NUCLEO-OUT01A1 is an expansion board based

on the industrial digital output ISO8200BQ. This module

expands of STM32 Nucleo boards, and thanks to the

integrated insulation permits driving of any kind of load ,

handling the GPIOs through the Arduino connector.

Main Features:

• X-NUCLEO-OUT01A1 expansion board

• ISO8200BQ industrial digital output

• Compatible with STM32 Nucleo boards

• Equipped Arduino UNO R3 connectors

• Scalable solution; it can cascade multiple boards for

larger systems

• Free development firmware library and examples,

compatible with STM32Cube

• RoHS compliant

Key Products on board

ISO8200BQST Industrial Digital Output Compliant with IEC61131 standard

requirements

SMC30J30CA

Transil protection diode

STPS1H100A

Schottky diode for reverse polarity protectionLatest info available at www.st.com

X-NUCLEO-OUT01A1

Protection Diodes

SMC30J30CA – STPS1H100A

Arduino UNO R3 connector

ST morpho connector

ISO8200BQ

Page 5: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

5

X-NUCLEO-PLC01A1 hardware description

• The X-NUCLEO-PLC01A1 is an industrial input/output

evaluation board designed around the CLT01-38SQ7 and

VNI8200XP devices, allowing the expansion of the

STM32 Nucleo boards.

• The CLT01-38SQ7 and the VNI8200XP communicate

with the STM32 Nucleo board through a SPI link available

on the Arduino UNO R3 connector.

Key products on board

CLT01-38SQ7

High-speed protected digital termination array

VNI8200XP

Octal high-side smart-power solid-state relay with

serial/parallel selectable interface on device

Arduino UNO R3 connector

VNI8200XPCLT01-38SQ7

Latest info available at www.st.com

X-NUCLEO-PLC01A1

PLC expansion boardHardware overview (3/3)

Page 6: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

FP-IND-PLCWIFI1

Software overview 6

FP-IND-PLCWIFI1 software description

FP-IND-PLCWIFI is an STM32 ODE Function Pack. Thanks to

this package you can build a mini PLC and interact with it using

ST PLC-APP installed on portable devices or desktop.

This package allows to build a PLC and thanks to the provided

APIs and the App available for different operating system, to

manage the system, implementing several ladder logic circuits

with different hardware setup.

The software runs on the STM32 microcontroller and includes

drivers for the SPWF01SA Wi-Fi module, the VNI8200XP and

ISO8200BQ ICs digital output ICs, the CTL01-38SQ7 digital

input IC.

Key features:

• Software package to build industrial PLC with Wi-Fi

connectivity based on industrial digital input/output ICs and

Wi-Fi module

• Middleware libraries for Wi-Fi management and Ladder

Logic programming

• User friendly App for mobile devices compatible with

Android and iOS. Available also a desktop version

compatible with Windows

• Examples available for X-NUCLEO-PLC01A1 and or X-

NUCLEO-OUT01A1 and X-NUCLEO-IDW01M1 when

connected to a NUCLEO-F401RE

Overall Software Architecture

Latest info available at www.st.com

FP-IND-PLCWIFI1

Page 7: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Quick Start Guide Contents 7

FP-IND-PLCWIFI1: STM32 ODE function pack for building a PLC controlled through Wi-Fi

Hardware and Software overview

Setup & Demo Examples

Documents & Related Resources

STM32 Open Development Environment: Overview

Page 8: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Setup & demo examples

Hardware prerequisites8

• 1 x Industrial Digital Output expansion board (X-NUCLEO-OUT01A1)

• 1 x Industrial Input/Output expansion board (X-NUCLEO-PLC01A1)

• 1 x WiFi module expansion board (X-NUCLEO-IDW01M1)

• 1 x STM32 Nucleo development board

(NUCLEO-F401RE)

• 1 x USB type A to Mini-B cable

• 1x Windows 7 or higher - Laptop/PC

• 1x external power supply up to 32V

Mini USB Cable

NUCLEO-F401RE X-NUCLEO-OUT01A1X-NUCLEO-PLC01A1X-NUCLEO-IDW01M1

Power supply

Page 9: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Setup & demo examples

Software prerequisites 9

• STSW-LINK009: ST-LINK/V2-1 USB driver

• STSW-LINK007: ST-LINK/V2-1 firmware upgrade

• FP-IND-PLCWIFI1

• Copy the .zip file content into a folder on your PC

• The package contains the source code example (Keil, IAR, SW4STM32) basedon NUCLEO-F401RE

Page 10: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

10

Use NUCLEO-F401RE with X-CUBE-OUT1, X-CUBE-PLC1, X-CUBE-WIFI1 packages

Compile/Flash and Run

the project

Start coding in just a few minutes with FP-IND-PLCWIFI1

Go to www.st.com/stm32ode-fp 1

2 Select

FP-IND-PLCWIFI1

Download and unpack

FP-IND-PLCWIFI1

3

4Download and install STM32

Nucleo ST-LINK/V2-1 USB

driver

5

6

Open ST GUI Interface

And Configure the PLC

Documentation .chm format

Drivers layer for Wi-Fi

connectivity and input/output ICs

Ladder Library and Wi-Fi library

Application layer

Page 11: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

FP-IND-PLCWIFI1 System Overview

11

Wi-Fi

PLC device with loads

Mobile device for programming

and control ICs status

Page 12: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

FP-IND-PLCWIFI1 ST-PLC-App overview 1/6 12

• ST PLC solution is equipped also with a App developed for OS Android and iOs,

available on the Play Store and iTunes, and included in our website through the link ST

PLC App

• This app allows to program the PLC through Wi-Fi, choosing different types of

hardware implementation (based on number of output and inputs that is required to

handle)

• The PLC configuration is created by the app and sent to the PLC, then through a

dedicated command, you can get feedback related to the output stage and ICs used

on the X-NUCLEO-PLC01A1 (CLT01-38SQ7 and VNI8200XP)

Page 13: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

FP-IND-PLCWIFI1

ST-PLC-App overview 2/613

Click here to continue

Assign a project name

Select hardware

configuration

Page 14: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

FP-IND-PLCWIFI1

ST-PLC-App overview 3/6 14

Change project name

Save project

Delete project

Program configuration

Configuration summary

Menu button for ICs status and WiFi settings

Page 15: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

FP-IND-PLCWIFI1

ST-PLC-App overview 4/6 15

Drag & Drop the symbol to insert it, or, if it is already inserted,

double tap on the symbol to set parameters, or delete it

Page 16: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

FP-IND-PLCWIFI1

ST-PLC-App overview 5/6 16

ICs Status command

Wi-Fi Connection settings

Page 17: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Example of a ladder rung

17

FP-IND-PLCWIFI1

ST-PLC-App overview 6/6

Page 18: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Documents & related design resources 1/218

FP-IND-PLCWIFI1:

• DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi – Data brief

• UM2281: Getting started with the FP-IND-PLCWIFI1 function pack for PLC management via a Wi-fi – User Manual

• Software setup file

X-NUCLEO-IDW01M1:

• Gerber files, BOM, and schematics

• DB2726: Wi-Fi expansion board based on SWPF01SA module for STM32 Nucleo – Databrief

• UM1975: Getting started with X-NUCLEO-IDW01M1 Wi-Fi expansion board based on SPWF01SA module for STM32 Nucleo –

User Manual

All documents are available in the DESIGN tab of the related products webpage

Consult www.st.com for the complete list

Page 19: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Documents & related design resources 2/219

X-NUCLEO-OUT01A1:

• Gerber files, BOM, and schematics

• DB3267: Industrial Digital Output Expansion Board based on ISO8200BQ for STM32 Nucleo – Databrief

• UM2209: Getting Started with X-Nucleo-OUT01A1 Industrial Digital Output Expansion Board for STM32Nucleo– User manual

X-NUCLEO-PLC01A1:

• Gerber files, BOM, and schematics

• DB2622: Industrial input/output expansion board based on VNI8200XP and CLT01-38SQ7 for STM32 Nucleo – Databrief

• UM1918: Getting started with the industrial input/output expansion board based on VNI8200XP and CLT01-38SQ7 for STM32

Nucleo – User manual

All documents are available in the DESIGN tab of the related products webpage

Consult www.st.com for the complete list

Page 20: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Quick Start Guide Contents 20

FP-IND-PLCWIFI1: STM32 ODE function pack for building a PLC controlled through Wi-Fi

Hardware and Software overview

Setup & Demo Examples

Documents & Related Resources

STM32 Open Development Environment: Overview

Page 21: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

STM32 Open Development Environment

Fast, affordable Prototyping and Development 21

• The STM32 Open Development Environment (ODE) consists of a set of stackable boards

and a modular open SW environment designed around the STM32 microcontroller family.

www.st.com/stm32ode

Function Packs

(FP)

STM32Cube

development software

STM32 Nucleo

expansion boards

(X-NUCLEO)

STM32 Nucleo

development boards

STM32Cube

expansion software

(X-CUBE)

Page 22: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Power supply

through USB or

external source

Integrated debugging

and programming

ST-LINK probe

STM32 microcontroller

Complete product range

from ultra-low power to high-performance

ST morpho extension header

STM32 Nucleo

Development Boards (NUCLEO)

• A comprehensive range of affordable development boards for all the STM32

microcontroller series, with unlimited unified expansion capabilities and integrated

debugger/programmer functionality.

22

www.st.com/stm32nucleo

Arduino™ UNO R3 extension headers

Page 23: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

Move/ActuatePower InteractConnect

Sense

STM32 Nucleo

Expansion Boards (X-NUCLEO)

• Boards with additional functionality that can be plugged directly on top of the STM32

Nucleo development board directly or stacked on another expansion board.

23

DIL24 support for

new devices

Motion MEMS sensors

Environmental sensors

www.st.com/x-nucleo

Example of STM32 expansion board (X-NUCLEO-IKS01A1)

Page 24: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

STM32 Open Development Environment

Software components

• STM32Cube software (CUBE) - A set

of free tools and embedded software bricks

to enable fast and easy development on

the STM32, including a Hardware

Abstraction Layer and middleware bricks.

• STM32Cube expansion software

(X-CUBE) - Expansion software provided

free for use with the STM32 Nucleo

expansion board and fully compatible with

the STM32Cube software framework. It

provides abstracted access to expansion

board functionality through high-level APIs

and sample applications.

24

www.st.com/x-cube

• Compatibility with multiple Development Environments - The STM32 Open Development

Environment is compatible with a number of IDEs including IAR EWARM, Keil MDK, and GCC-based

environments. Users can choose from three IDEs from leading vendors, which are free of charge and

deployed in close cooperation with ST. These include Eclipse-based IDEs such as Ac6 System

Workbench for STM32 and the MDK-ARM environment.

Tools& IDEs

Application examples(e.g. basedonSTOpenSoftwareX)

Hardware

SampleapplicationsApplications

IAREWARM,Keil MDK-ARM,GCC-basedIDEs(e.g. Ac6System Workbenchfor STM32)

STM32CubeHardware Abstraction Layer (HAL)

STM32Cubemiddleware

Upper level middleware(e.g. STOpenSoftwareX)

Middleware

HardwareAbstraction

STM32Cubeexpansion middleware

STM32 Nucleo expansion boards (X-NUCLEO)

STM32 Nucleo developer boards

OPEN LICENSE MODELS: STM32Cube software and sample applications are covered by a

mix of fully open source BSD license and ST licenses with very permissive terms.

www.st.com/stm32cube

Page 25: Quick Start Guide X-NUCLEO-IDW01M1 draft · 16/10/2017  · FP-IND-PLCWIFI1: •DB3363: STM32 ODE function pack for building a PLC controlled via Wi-Fi –Data brief •UM2281: Getting

STM32 Open Development Environment

Building block approach 25

The building blocks Your need Our answer

Move /

Actuate

Connect

Power

Sense

Process

Inertial modules, magnetometer

Proximity, microphone

Pressure, temperature, humidity

Bluetooth LE, Sub-GHz radio

NFC, Wi-Fi, GNSS

Energy management & battery

General-purpose microcontrollers

Stepper motor driver

DC & BLDC motor driver

Audio amplifier

COLLECT

TRANSMIT

ACCESS

CREATE

POWER

PROCESS

Software

Secure microcontrollers

Touch controller

Operation Amplifier

Accelerometer, gyroscope

Translate

Industrial input / output

www.st.com/stm32ode