5/28/2009 7:28 AM | |
Posts: 7 Rating:
|
Hi, Is it possible to do CFC programming in 315-2DP cpu. Kindly advice. |
5/28/2009 7:45 AM | |
Joined: 9/27/2006 Last visit: 9/16/2025 Posts: 12408 Rating:
|
Hello color; Yes you can use CFC with a S7-300 CPUI. Here is an extract form the CFC got S7 manual that shows how compilation parameters for CFC must be adapted depending on the CPU you are using: Compiling You have the following compilation setting options: • On the "General" tab, specify the block type properties before starting compilation (FB number, symbolic name, name (header), family, author, version) and specify the target system on which the block will be used. This information (S7-300/S7-400) is relevant for the startup blocks, since the SCL compiler needs to generate a different code for each target system. Note on the FB number: This number must not exceed the range supported by your destination CPU. Example:In the case of 414-2DP CPUs, the maximum number range is set to 512 (address range: number of FBs). The number you assign to the block must, therefore, not be higher than 511.The use of specific code sequences ensures that all chart blocks to be compiled are called according to their entry in the S7_tasklist attribute. Caution An S7 -300 supports only OB100, an entry of any other OB in the task list is not permitted. Otherwise an error message results. Manual: CFC for S7: http://support.automation.siemens.com/WW/view/en/27002752 |
Last edited by: dchartier at: 5/28/2009 7:47 AM |
|
Follow us on