CMP#.ADVANCET
Description
CMP#.ADVANCET specifies a time adjustment in msec to be applied to the compare channel calculation. It allows an application to compensate for output devices, such as relays, that require a significant time to complete a mechanical operation. CMP#.ADVANCET may be changed while the compare channel is running and setpoints are armed.
Examples
Usage
Consider an application where we wish to close a relay when the channel 1 feedback source reaches 180 deg, and where the relay takes 10 ms to close. We set CMP1.STARTVAL for setpointSetpoint is the target value that an automatic control system, for example PID controller, will aim to reach 1 to 180 deg and CMP1.ADVANCET to 10 ms. Suppose the feedback is spinning at 1 rev / sec. The compare channel compensates for the mechanical delay by driving its output when the source position is (180 deg – 360 deg / sec x 0.010 sec) = 176.4 deg.
Code
The following commands set the channel 1 advance to 10 msec, as described above.
--> CMP1.STARTVAL 1 180 --> CMP1.ADVANCET 10
Context
For more information please refer to Compare Engines View.
Versions
Action | Version | Notes |
---|---|---|
Implemented | 02-06-00-000 |
General Information
Type |
Read/Write |
Units |
ms |
Range |
0->30 ms |
Default Value |
0 |
Data Type |
Float |
See Also |
|
Stored in Non Volatile Memory |
Yes |
Variants Supported
All variants are supported.