Frequency Generator Configuration

Introduction

2 frequency generator channels can be configured on the controller.

Hardware

Each frequency generator channel has the same I/O mapping as the PWM channel with 1 fast output and 2 auxiliary standard inputs.

Open the Configuration Window

Step

Action

1

In the Devices tree, double-click MyController > Embedded Functions > PTO_WM.

2

Select the PTO x tab.

Configuration Window Description

The following table describes each parameter for a frequency generator channel:

Parameter

Value

Unit

Description

Mode

Frequency Generator

-

The Mode selected is Frequency Generator.

Auxiliary Inputs

EN

Disabled *

Enabled

-

Enables the IN_EN physical input to be used for enabling the functionality.

EN Filter

0.02*

0.4

1.2

4

ms

Defines the value of the IN_EN filter value.

SYNC

Disabled *

Enabled

-

Enables the IN_SYNC input to be used for synchronization.

SYNC Filter

0.02*

0.4

1.2

4

ms

Defines the value of the IN_SYNC filter value.

SYNC Edge

Rising Edge *

Falling Edge

-

Defines the IN_SYNC edge on which synchronization occurs.

Legend

* Parameter default value

Configure a Frequency Generator Channel

Step

Action

1

Enable the frequency generator channel: In the list box Mode  > Frequency Generator.

Result: EcoStruxure Machine Expert creates a variable named FreqGen00 or FreqGen01 depending on the selected channel.

NOTE: You can rename the variable by entering a new name in the Variable field. Remember the name to use the instance in a POU.

2

In the listbox of EN parameter, enable/disable the IN_EN physical input.

3

Configure the filter value of the IN_EN input (if enabled in step 2).

4

In the listbox of SYNC parameter, enable/disable the IN_SYNC physical input.

5

Configure the filter value of the IN_SYNC input (if enabled in step 4).

6

Configure the edge (rising or falling) for IN_SYNC signal detection (if enabled in step 4).