Cc_init – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 158
Advertising
![background image](/manuals/579606/158/background.png)
API Library of Routines
Appendix B
CC_INIT
B-27
Initializes internal data structures and installs trap handler.
Important: The CC_INIT function must be called before you can use any
API function.
C Syntax
unsigned CC_INIT()
Parameters
None.
Returns
None.
Description
Use the CC_INIT function to initialize internal control-coprocessor
memory structures and install the trap handler used for the user’s
API functions.
C Example
main ()
{
CC_INIT ();
}
.
/* other API functions */
.
.
.
BASIC Example
procedure COPRO
rem * CC_INIT - This call must be made before any other API functions are called
RUN AB_BAS (0)
.
.
.
CC_INIT
Advertising