AC800M - Control Libraries
I want to use the "AnalogInCC & AnalogoutCC" blocks in my program.
When i want to add the block in my program, the library is not even listed. I did however include the "ControlStandardLib" in my project library and also connect the library to my application too.
Can someone please give me some assistance or advise.
* Im using an AC800M PLC with Compact Control Builder v.5.1
Thanking you in advance.
Long Answer ...
To be sure of terminology... By "Program" do you mean a POU of type Program, eg a typical FBD or Structured Text program ?
"AnalogInCC" and "AnalogOutCC" are Control Modules and cannot be used directly in Program POUs. Control Modules are used only in "Applications" or in "Control Diagrams"
There are equivant functions that you can use in Program POU's. For analog IO you should probably use "SignalInReal" and "SignalOutReal" functions from the SignalLib.
If you want to use Control Modules then it is important that you take some time to discover exactly how Control Modules differ from programming other typical PLC's. Take a look at the "AC800M Configuration" manual Section 1 for a discussion of how Control Modules are executed and "AC800M Binary and Analog Handling" for how they are connected in applications and in Control Diagrams.
Short Answer ...
If you still want to add Control Modules into a Program POU, then simply right click the program POU and insert the Control Module(s) that you wish to use. In your Program code insert the "ExecuteControlModules()" call to start execution of all the control modules in your program POU. Pay carefull attention to execution order. You can also insert Control Modules into user defined function blocks this way.