CMPx.SETPOINT

Description

Use this keyword to set the position value for a Compare setpoint. This position value will be compared against a Compare source (CMPx.SOURCE). If they match, an output pulse is generated. A setpoint also requires a width (CMPx.WIDTH) and width type (CMPx.WIDTHTYPE).

A setpoint must be armed (CMPx.ARM) before it is active. If a setpoints value, width, or width type are changed after it has been armed, that setpoint will be automatically disarmed.

Example

The following example sets the value of setpoint 1 to one billion for CMP1.

-->CMP1.SETPOINT 1 1000000000

General Information

Type

NV Parameter

Units

Units depend on value of CMPx.SOURCE. See table below.

Range

Argument 1: 0 to 7

Argument 2: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,808

Default Value

9,223,372,036,854,775,808

Data Type

Argument 1: Integer

Argument 2: Integer

Start Version

M_01-13-00-000

Units

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

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

34BAh/1

CMP1.SETPOINT 0

34BAh/2

CMP1.SETPOINT 1

34BAh/3

CMP1.SETPOINT 2

34BAh/4

CMP1.SETPOINT 3

34BAh/5

CMP1.SETPOINT 4

34BAh/6

CMP1.SETPOINT 5

34BAh/7

CMP1.SETPOINT 6

34BAh/8

CMP1.SETPOINT 7
Paramter

Fieldbus

Address

Attributes Signed?
CMP0.SETPOINT

Profinet

2917

DWord Yes
sercos® III 8 Octets
CMP1.SETPOINT

Profinet

2924 DWord
sercos® III 8 Octets
Fieldbus Parameter Instance Data Size Data Type
EtherNet/IP CMP0.SETPOINT 918 8 Byte Signed Position
CMP1.SETPOINT 925

Related Topics

Komparatoren (Vergleicher)