CMP#.STARTVAL
Description
CMP#.STARTVAL specifies the starting value for the setpoint Setpoint is the target value that an automatic control system, for example PID controller, will aim to reach. This value is compared to the interpolated value of the source specified by CMP#.SOURCE. When there is a match, the setpoint drives the channel output. Scaling for CMP#.STARTVAL depends on CMP#.SOURCE.
It takes two command line arguments: the first specifies the setpoint, and the second specifies the setpoint starting value.
Examples
Usage
Consider an application where we wish to set the channel output high when AXIS1.PL.FB crosses 1800 deg in the positive direction and -1800 deg in the negative direction. We set CMP1.SOURCE to select the channel source, CMP1.DIR to select the setpoint directions, and AXIS1.UNIT.PROTARY to set the axis units. We then set CMP1.STARTVAL 1 to 1800 and CMP1.STARTVAL 2 to -1800.
Code
The following commands set the start values for channel 1 to -1800 deg to 1800 deg, as described above.
--> CMP1.SOURCE 11
--> AXIS1.UNIT.PROTARY 2
--> CMP1.DIR 1 1
--> CMP1.STARTVAL 1 1800
--> CMP1.DIR 2 2
--> CMP1.STARTVAL 2 -1800
Context
For more information please refer to Compare.
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.