Add an Expert function

Introduction

Each DM72F• expert module can support expert functions. Expert functions are defined as either simple or complex. Only one type can be configured per module:

osimple functions:

oHigh Speed Counter Simple

oEvent_Latch I/O

ocomplex functions:

oHigh Speed Counter Main

oEncoder 

oFrequency Generator (FreqGen)

oPulse Width Modulation (PWM)

When an I/O is not used by an expert function, it can be used as a regular I/O.

NOTE:

oWhen a regular input is used as Run/Stop, it can not be used by an expert function.

oWhen a regular output is used as Alarm, it can not be used by an expert function.

For more details, refer to Embedded expert I/O Configuration.

Adding an Expert Function

To add an Expert function (Event_Latch, HSC, PWM or Frequency Generator) to your controller, select the Expert function you want in the Hardware Catalog, drag it to the Devices tree, and drop it on one of the highlighted nodes.

For more information on adding a device to your project, refer to:

• Using the Drag-and-drop Method

• Using the Contextual Menu or Plus Button

To add an Encoder function, select the Standard Encoder in the Hardware Catalog, drag it to the Devices tree, and drop it on one of the highlighted nodes.

 

The following expert functions can be added:

Function

Description

Refer to...

Event_Latch

With the Event_Latch function, the Embedded Expert inputs can be configured as event or latch.

Event_Latch configuration

HSC

The HSC functions can execute fast counts of pulses from sensors, encoders, switches, etc. that are connected to dedicated fast inputs.

LMC058 HSC Library

PWM

Frequency Generator

The PWM function generates a square wave signal on dedicated output channels with a variable duty cycle.

The Frequency Generator function generates a square wave signal on dedicated output channels with a fixed duty cycle (50%).

LMC058 PWM library

Encoder

The goal of this function is to connect an encoder to acquire a position.

This function can be implemented on an Embedded Expert I/O interface and an Hardware Encoder interface. The Encoder can be Incremental or absolute SSI on an Hardware Encoder interface. The Embedded Expert I/O interface supports only an Incremental Encoder.

You can configure a linear or rotary axis for incremental encoder.

LMC058 HSC Library

Expert Function Assignment

Expert functions assignment according to the interface (columns exclude each other):

I/F Interface

Expert Functions

Simple functions:

oFast I/O: Event or latched

oHSC Simple

HSC_Main

SM_Encoder

Encoder

PWM

Frequency Generator

DM72F0

Up to 4

1

1

1

1

1

DM72F1

Up to 4

1

1

1

1

1

Encoder

Not allowed

Not allowed

1

1

Not allowed

Not allowed

For more details, refer to Expert I/O Mapping.

Expert Function I/O within Regular I/O

Expert Function I/O within Regular I/O:

oInputs can be read through memory variable standard even if configured in expert function.

oAn Input can not be configured in an expert function if it has already been configured as a Run/Stop.

oAn Output can not be configured in an expert function if it has already been configured as an Alarm.

o%Q will not have any impact on reflex output.

oShort-Circuit management still applies on all outputs. Status of outputs are available.

oAll I/O that are not used by expert functions are available as fast or regular I/O.

When inputs are used in expert functions (Latch, HSC,…), integrator filter is replaced by anti-bounce filter (refer to the Modicon LMC058 Motion Controller Hardware Guide). Filter value will be configured in expert function screen.