CMP#.SOURCEVAL
Description
CMP#.SOURCEVAL is the sampled value of the compare channel source. It reports the value before the channel’s modulo function is applied if CMP#.MODEN = 1. Its scaling depends on CMP#.SOURCE.
| CMP#.MODEN | |||
|---|---|---|---|
| 0 | 1 | ||
| CMP#.SOURCE | 1-10 |
FB#.P without modification |
FB#.P with modulo |
| 11-12 |
AXIS#.PL.FB without modification |
AXIS#.PL.FB with modulo |
|
Examples
Usage
Code
These commands read the values for channel 1 and channel 2. In this example the units for CMP1.SOURCEVAL are deg, and the units of CMP2.SOURCEVAL are feedback counts.
--> CMP1.SOURCE 12
--> AXIS1.UNIT.PROTARY 2
--> CMP1.SOURCEVAL
-749.205
--> CMP2.SOURCE 3
--> CMP2.SOURCEVAL
493626.000
Context
See Compare Engines View.
Versions
| Action | Version | Notes |
|---|---|---|
| Implemented | 02-06-00-000 |
General Information
|
Type |
Read Only |
|
Units |
Depends upon CMP#.SOURCE |
|
Range |
Full Position Range |
|
Default Value |
N/A |
|
Data Type |
Float |
|
See Also |
|
|
Stored in Non-Volatile Memory |
No |
Variants Supported
All variants are supported.
Industrial Ethernet Information
|
Command |
Index |
SubIndex |
Data Type |
Units |
Float Scale |
Access |
PDO Mappable |
|---|---|---|---|---|---|---|---|
|
CMP1.SOURCEVAL |
4500h |
04h |
Signed32 |
- |
1000:1 |
Read only |
No |
|
CMP2.SOURCEVAL |
4501h |
04h |
Signed32 |
- |
1000:1 |
Read only |
No |
|
ID |
Instance |
Attribute |
Name |
Data Type |
Access |
User Mappable |
|---|---|---|---|---|---|---|
|
31600 |
1 |
31600 (0x7b70) |
CMP1.SOURCEVAL |
Signed32 |
Read Only |
Yes |
|
31601 |
1 |
31601 (0x7b71) |
CMP2.SOURCEVAL |
Signed32 |
Read Only |
Yes |
|
Parameter |
PNU |
Data Type |
Access |
Units |
|---|---|---|---|---|
|
CMP1.SOURCEVAL |
31600 |
Signed32 |
Read Only |
Position |
|
CMP2.SOURCEVAL |
31601 |
Signed32 |
Read Only |
Position |





