CRV_FIRST_X Function

CRV_FIRST_X (id)

Returns the x value for the first point in the curve with the specified id.

Parameters

id(DINT)

The curve ID.

Return Value

Returns the first X value of the curve as a REAL.

Remarks

This is useful for moving to the first point of a curve before sending the Curve Start (86) or Curve Start Advanced (88) command.

If the specified curve id does not exist, the task will fault. An error will be logged in the Event Log and the user program running on the task will stop. Use the CRV_EXISTS function to programmatically check if the curve id exists.

 

See Also

CRV_LAST_X Function | CRV_INTERP Functions | CRV_EXISTS Function | Standard Functions


Send comments on this topic.

Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion