Long camsetcyclelimit(long limit), Cam services, Long camclosetable(void) – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual

Page 63: Long camsetcyclelimit(long limit); -23, Cam services -23, Camsetcyclelimit, Camclosetable • camconstantvelocity

Advertising
background image

Publication 2098-PM001E-EN-P — July 2002

Referencing the Motion Library

2-23

long CamSetCycleLimit(long limit);

Sets the cam cycle limit.

The cycle limit is the number of cycles that the cam will go through
before automatically disabling. If the cycle limit is zero, the cam will
run continuously.

• Positive values for limit will disable the cam after the given number

of cycles in the positive direction. No checks are made in the
negative direction.

• Negative values for limit will disable the cam after the given

number of cycles in the negative direction. No checks are made in
the positive direction.

Cam cycle limit is in cycles.

Returns 0 if successful, or -1 on an error.

Cam Services

long CamCloseTable(void);

Closes the cam table.

Returns 0 if successful, or -1 if there was an error.

long CamConstantVelocity(long master_position, long
follower_position);

Adds a constant velocity segment to the table.

• The master_position argument defines the master position at the

end of the segment.

• The follower_position argument defines the follower position at the

end of the segment.

Returns 0 if successful, or -1 if there was an error.

This function requires one free segment.

Advertising