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) |
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.
Index/Subindex | Object Start Version | |
---|---|---|
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 |
Parameter | Fieldbus | Address | Attributes | Signed? |
---|---|---|---|---|
CMP0.WIDTH |
PROFINET |
2920 | DWord | No |
Sercos® III | 8 Octets | |||
CMP1.WIDTH |
PROFINET |
2927 | DWord | |
Sercos® III | 8 Octets |
Parameter | Instance | Data Size | Data Type |
---|---|---|---|
CMP0.WIDTH | 921 | 8 Byte | Float |
CMP1.WIDTH | 928 |
Parameter | Register Address | Is 64 bit? | Attributes | Signed? | Object Start Version |
---|---|---|---|---|---|
CMP0.WIDTH | 1840 | Yes | 64 bit | No | M_01-03-00-000 |
CMP1.WIDTH | 1854 |