CMPx.SETPOINT
Description
Use this keyword to set the position value for a Compare setpointSetpoint is the target value that an automatic control system, for example PID controller, will aim to reach. 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"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 |
Variants Supported
*In SynqNetSynqNet is a digital machine control network. Built on the 100BT physical layer, SynqNet provides a synchronous real-time connection between motion controllers, servo drives, stepper drives, I/O modules, and custom devices, a parameter may be available in the firmware but have no effect on the system. See .
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 | |
---|---|---|---|
/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 | ||
/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 |
Related Topics