User Documentation

Release:1.1.1
Date:May 05, 2017

Introduction

_images/logos.png

Maxim’s Santa Cruz (MAXREFDES23#) reference design is the world’s smallest IO-Link® light sensor compliant with IEC 61131-9. The entire design fits onto a 6.5mm x 25mm printed circuit board (PCB).

Board Specification

_images/MAXREFDES23.png
Item Specification
Oscillator Frequency 18.432 MHz
Microcontroller Renesas RL78/G1A (R5F10E8EALA)
DC Power 24 V via M12 Connector
LEDs
  • Power indicator: Green x1
  • IO-Link indicator: Amber x1
  • Digital output indicator: Red x1
IO-link Connector Male M12 4-pole A-coded
IO-Link PHY Maxim MAX14821EWA+
Sensor Maxim MAX44008EDT+

Project Goal

_images/SANTA_CRUZ_IO_LINK_ALS_INDUSTRIAL_rgb.png

The purpose of this project is by giving the user a strong basis to start develop production-ready IO-Link® application based on Maxim Integrated IO-Link device transceiver (MAX14821), a Renesas ultra-low-power, 16-bit microcontroller (RL78) and iqStack® IO-Link Device Stack.

Sensor Logic

In iqmaxrefdes23 have been implemented simple switch-point hysteresis logic and additionally can be configured as normally open (NO) or normally closed (NC).

_images/sp.png

By default light switch-point settings (255 is the maximal value):

What SP (Level) Hysteresis Mode
Light intensity 128 (0x80) 16 (0x10) Normally Open (NO)
Darkness control 16 (0x10) 4 (0x04) Normally Closed (NC)

Note

When a device is in IO-Link OPERATE mode, light intensity switch-point flag indicated on digital output channel (red LED).

Installation Details

There are two ways to experiment with MAXREFDES23#:

  • Upload Firmware HEX-file, connect a device to IO-Link Master and play around.
  • Clone the source code from Bitbucket repository, go throw and try to debug.

Firmware

Firmware HEX-file, IODDs data and this document in PDF format can be downloaded from the Bitbucket repository absolutely free without registration.

To upload HEX-file into MAXREFDES23 have to get Renesas E1 emulator and also Renesas Flash Programmer.

Source Code

The project source code can be cloned from the Bitbucket repository freely without registration.

Download a trial version of IAR RL78 Embedded Workbench IDE in order to compile it and also take a look for Renesas Application Leading Tool (Applilet).

Also the Renesas E1 emulator and Renesas Flash Programmer needed to start debug session with a device.

Troubleshooting

If during power-on self-test (POST) hardware fails were occurred, then the main sensor application will not started and instead a first appeared hardware fail number was blinked on digital output red-indicator channel continuously.

Blinks Count Fail Description
1 Renesas RL78 Illegal memory access (a firmware error, contact with developers)
2 Renesas RL78 RAM parity check (a firmware error, contact with developers)
3 Renesas RL78 Illegal instruction (a firmware error, contact with developers)
4 Maxim MAX14821EWA+ selfcheck (the device is possibly corrupt, try to restart)
5 Maxim MAX44008EDT+ selfcheck (the device is possibly corrupt, try to restart)

Changelog

v1.1.1 (2014-04-23)

  • Improvements:
    • Improve MAX14821 the power-on selftest stability and reduce a complexity
  • Bug fixes:
    • Fix switch point logic (NO&NC) terminology
    • Suppress ‘Darkness warning’ disappear event before appear one

v1.1 (2014-04-13)

  • Breaking changes:
    • Refine IODDs variable for MAX44008EDT+ Chip Temperature and add Firmware Version
    • Stop reading RGB light intensity from MAX44008EDT+ and remove it from IO-Link process data
  • New features:
    • Fall into HALT mode and restarting operation upon wake-up MAX14821 interrupt signal
    • Improve dialing with errors for MAX14821 and MAX44008EDT+ (power-on self-test (POST))
  • Improvements:
    • Increase sensors ADC accuracy from 8-bit to 14-bit (time increased to 100 ms)

v1.0 (2014-03-25)

  • New features:
    • Hardware setups:
      • Renesas RL78/G1A (R5F10E8EALA) microcontroller (with Applilet3 support, see ‘src\applilet3_src’)
      • MAX14821 IO-Link Device Transceiver (SPI/UART, see ‘src\hw_drivers\c_max1482x.*’)
      • MAX44008EDT+ RGB Color, Infrared, and Temperature Sensors (IIC, see ‘src\hw_drivers\c_max4400x.*’)
    • Porting IO-Link iqStack(R) Device and set up the IO-Link communication (see ‘src\applilet3_src\r_main.c’)
    • Write a simple IO-Link Light Sensor Application (with appropriate IODDs, see ‘src\sensor_appl.c’)

License

All source files with the correspondent header notes are the subject to the IQ² Development GmbH terms and conditions defined in file Allgemeine Vertragsbedingungen.pdf.

For any other details please contact with us.