Long camload(char* name), Long camloadtable(long table_number,char *name), Camload • camloadtable – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual

Page 69

Advertising
background image

Publication 2098-PM001E-EN-P — July 2002

Referencing the Motion Library

2-29

long CamLoad(char* name);

Loads cam table number one.

• The name argument specifies the name of the file. This is the base

filename of the cam file, with the file path and extension added
automatically.

A cam table cannot be loaded if it is active or queued.

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

long CamLoadTable(long table_number,char *name);

Loads a cam table.

• The table_number argument specifies the table number. Valid

tables are one, two, and three.

• The name argument specifies the name of the file. This is the base

filename of the cam file, with the file path and extension added
automatically.

A cam table cannot be loaded if it is active or queued.

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

Advertising