CMP#.WIDTHVAL
Description
CMP#.WIDTHVAL sets the value count duration of the output pulse generated by the setpoint. It is used when CMP#.WIDTHTYPE for the setpoint is set to 0. Its scaling depends on CMP#.SOURCE.
It takes two command line arguments: the first specifies the setpoint, and the second specifies the value count duration.
Examples
This diagram illustrates CMP#.WIDTHVAL.
Code
These commands set the value count widths of channel 1 setpoint 8 to 5 deg and channel 2 setpoint 6 to 4000000 (slightly less than one thousandth of a revolution).
--> CMP1.SOURCE 11
--> AXIS1.UNIT.PROTARY 2
--> CMP1.WIDTHTYPE 8 0
--> CMP2.WIDTHVAL 8 5
--> CMP2.SOURCE 2
--> CMP2.WIDTHTYPE 6 0
--> CMP2.WIDTHVAL 6 4000000
Context
See Compare Engines View.
Versions
| Action | Version | Notes |
|---|---|---|
| Implemented | 02-06-00-000 |
General Information
|
Type |
Read/Write |
|
Units |
Depends upon CMP#.SOURCE |
|
Range |
Full position range |
|
Default Value |
0 |
|
Data Type |
Float |
|
See Also |
|
|
Stored in Non-Volatile Memory |
Yes |
Variants Supported
All variants are supported.
Industrial Ethernet Information
|
ID |
Instance |
Attribute |
Name |
Data Type |
Access |
User Mappable |
|---|---|---|---|---|---|---|
|
31500 |
1 |
31500 (0x7b0c) |
CMP1.WIDTHVAL |
Signed32[8] |
Read/Write |
Yes |
|
31501 |
1 |
31501 (0x7b0d) |
CMP2.WIDTHVAL |
Signed32[8] |
Read/Write |
Yes |
|
Parameter |
PNU |
Data Type |
Access |
Units |
|---|---|---|---|---|
|
CMP1.WIDTHVAL |
31500 |
Signed32[8] |
Read/Write |
Position |
|
CMP2.WIDTHVAL |
31501 |
Signed32[8] |
Read/Write |
Position |





