
Chapter 5
!0!'*+%)#,*#,(-
5-12
This section covers CC utility functions of the control coprocessor such as:
initialization
error handling
ASCII display interface functions
synchronizing a control-coprocessor calling task to a PLC-5
programmable-controller ladder-logic program scan
Initialize ControlĆCoprocessor Function
Use the CC_INIT function to initialize the control coprocessor.
Important: The CC_INIT function must be called before you can use
any other API library function. Call the CC_INIT function first and once
only in your program.
ControlĆCoprocessor Error Functions
Use control-coprocessor error functions for error messages related to error
numbers. See Table 5.K.
Table 5.K
Error Functions
Function What It Does
,*0% !- +*%).!, .* ) !,,*, (!--#! "*, *,,!-+*) %)# !,,*, )/(!,
"*, '' "/).%*)- .3+%''3 /-! %) ,*/.%)!
*+%!- .$! !,,*, (!--#! .* *,,!-+*) %)# !,,*, )/(!, .* .$! /-!, '*'
/""!, "*, '' "/).%*)- .3+%''3 /-! %) +,*! /,!
ControlĆCoprocessor ASCII Display Functions
Use the ASCII display functions to show control-coprocessor status
information on the optional serial expander module display. See Table 5.L.
Table 5.L
ASCII Display Functions
Function What It Does
%-+'3- 4$,.!, -.,%)# *) .$! %-+'3
!./,)- .$! 0'/! *" .$! /,,!). %-+'3 .* /-!, /""!,-
%-+'3- 4$,.!, $!2 !%(' 0'/! *) .$! %-+'3
%-+'3- 4$,.!, $!2 !%(' 0'/! *) .$! %-+'3
%-+'3- 4$,.!, !%(' 0'/! *) .$! %-+'3
*/ (/-. &)*1 1$!.$!, .$! "/'. %-+'3! %- $!2 !%(' *, !%(' 1$!) 3*/ /-! .$! 4
$,.!, %-+'3 *, !2(+'! %" .$! %-+'3 %- %. */' ! !%.$!, $!2 !%(' *,
!%(' ,!+,!-!)..%*)
How to Use CC Utility
Functions
Komentáře k této Příručce