CMPx.WIDTH

Description

Use this keyword to set the width for a Compare setpoint. The width defines for how much time or for how many position counts a pulse will be generated once a setpoint is active.

If a pulse width's type is in microseconds, the resolution is as follows:

Width Resolution
0 to 65,535 μs μs
65,536 μs to 65.535 s ms

CMPx.WIDTH must be set before CMPx.SETPOINT.

Example

The following example sets the width type of setpoint 7 to microseconds, and the width of setpoint 7 to 1000 microseconds.

-->CMP0.WIDTHTYPE 7 1

-->CMP0.WIDTH 7 1000

General Information

Type

NV Parameter

Units

Position counts or microseconds depending on CMPx.WIDTHTYPE. If CMPx.WIDTHTYPE = 0 (position counts), then units depend on CMPx.SOURCE (see table below).

Range

Argument 1: 0 to 7

Argument 2: 0 to 18,446,744,073,709,551,615 (position counts)
or
0 to 65,535,000 (microseconds)

Default Value

0

Data Type

Argument 1:Integer

Argument 2: Integer

Start Version

M_01-13-00-000

Units

If CMPx.WIDTHTYPE = 0 (position counts),determine units with the following table.

CMPx.SOURCE Units
0 (FB1) Depends on FB1.PUNIT or custom units.
1 (FB2) Depends on FB2.PUNIT  or custom units.
2 (FB3) Depends on FB2.PUNIT  or custom units.
3 (PL.FB) Depends on UNIT.PLINEAR or UNIT.PROTARY
Rotary: counts, rad, deg, (custom units), 16-bit counts
Linear: counts, mm, µm, (custom units), 16-bit counts

Hardware Supported

Compare functionality is supported on hardware revisions D, DB, DA, and higher depending on the drive type. Check the label on the side of the drive to ensure the AKD meets one of the following requirements.

AKD Type Hardware Revision Supported
AKD Revision D or higher
AKD PDMM Revision DB or higher
AKD-T-IC Revision DA or higher

Variants Supported

Variant Supported
AKD Base No
AKD with Position Indexer No
AKD EtherCAT Yes
AKD CANopen Yes
AKD BASIC Yes
AKD SynqNet See SynqNet Supported Parameters
AKD EtherNet/IP Yes
AKD Profinet Yes
AKD sercos® III Yes
AKD-N No
AKD-C No

*In SynqNet, a parameter may be available in the firmware but have no effect on the system. See SynqNet Supported Parameters.

Fieldbus Information

If your drive type is listed as supported but no index, address, or instance number is listed, then this parameter is accessible through WorkBench, but not over your fieldbus type. For information on SynqNet parameters see SynqNet Supported Parameters.

Fieldbus Index/Subindex Object Start Version

EtherCAT COE and CANopen

34ABh/1 CMP0.WIDTH 0 M_01-13-00-000
34AAh/2 CMP0.WIDTH 1
34AAh/3 CMP0.WIDTH 2
34AAh/4 CMP0.WIDTH 3
34AAh/5 CMP0.WIDTH 4
34AAh/6 CMP0.WIDTH 5
34AAh/7 CMP0.WIDTH 6
34AAh/8 CMP0.WIDTH 7

34BBh/1

CMP1.WIDTH 0

34BAh/2

CMP1.WIDTH 1

34BAh/3

CMP1.WIDTH 2

34BAh/4

CMP1.WIDTH 3

34BAh/5

CMP1.WIDTH 4

34BAh/6

CMP1.WIDTH 5

34BAh/7

CMP1.WIDTH 6

34BAh/8

CMP1.WIDTH 7
Paramter

Fieldbus

Address

Attributes Signed?
CMP0.WIDTH

Profinet

2920

DWord No
sercos® III 8 Octets
CMP1.WIDTH

Profinet

2927 DWord
sercos® III 8 Octets
Fieldbus Parameter Instance Data Size Data Type
EtherNet/IP CMP0.WIDTH 921 8 Byte Float
CMP1.WIDTH 928

Related Topics

Komparatoren (Vergleicher)

CMPx.WIDTHTYPE