CMP#.VAL

Description

CMP#.VAL is the sampled value of the compare channel source. It reports the value after the channel’s modulo function is applied if CMP#.MODEN = 1. Otherwise it reports the unmodified value of the source. 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

The following commands read the values for channel 1 and channel 2. In this example the units for CMP1.VAL are deg, and the units of CMP2.VAL are feedback counts.

--> CMP1.SOURCE 12
--> AXIS1.UNIT.PROTARY 2
--> CMP1.VAL
-749.205
--> CMP2.SOURCE 3
--> CMP2.VAL
493626.000

Context

For more information please refer to Compare.

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.