CMPx.WIDTH

General Information

Type

NV Parameter

Description

Sets the width for a Compare setpointSetpoint is the target value that an automatic control system, for example PID controller, will aim to reach.

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

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
PDMM Revision DB or higher
AKD-T-IC"Integrated Circuits" Miniaturized electronic circuits (consisting mainly of semiconductor devices, as well as passive components) that have been manufactured in the surface of a thin substrate of semiconductor material Revision DA or higher
FieldbusA Fieldbus is an industrial network system for real-time distributed control (e.g. CAN or Profibus). It is a way of connecting instruments in a plant design Index/Subindex Object Start Version

EtherCATEtherCAT is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT was to apply Ethernet to automation applications which require short data update times (also called cycle times) with low communication jitter (for synchronization purposes) and low hardware costs 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

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

Related Topics

Compare Engines

CMPx.WIDTHTYPE

 


Stay Connected with Kollmorgen

Copyright © 2015 Kollmorgen™