1/24/2023 7:35 AM | |
Joined: 3/14/2008 Last visit: 8/22/2024 Posts: 2089 Rating:
|
Hi, Welcome to the PCS7 club! With PCS7, programming becomes much easier in my opinion. Forget about DB's, UDT's and so on. You won't have to do anything with them unless you want to create your own logic. PCS7 main programming language is CFC. CFC is a graphics programming tool where you can add blocks FC/FB from the library. PCS7 uses by default the Advanced Process Library with a lot of blocks ready for use like for example motor on/off, motor speed, valve, valve analog, digital monitoring and analog monitoring blocks. Some other libraries like CFC library is available as well which feature converter blocks like BOOL to BYTE, DWORD to BOOL etc. When a block for example MotL (FB) is inserted in CFC, the system will create an instance DB of it. If you insert 10 MotL, 10 instance DB's are created. An FC is the same, only without the instance DB. If you want to create your own logic, you can use one of the programming languages like FBD, LAD. SCL is rather mostly used in PCS7 projects for creating custom blocks. When the SCL is compiled, a FB or FC is created depending on the template. You can add the block from the library in the CFC program after succesfull compilation. CFC is lacking functionality to interconnect UDT's and structures. In PCS7 you have additional options like creating CMT (Control Module Types). For this you need a master library inside the multiproject. A master library consists of all blocks used by one or more projects. A Control Module Type is a collection of blocks to create standard functionality. For example if you want to create a CMT for a pump, you will need several blocks. You have a driver block to read the input feedback run, a MotL block, a driver block to send the control output of the motor to the hardware (digital out), you may add an interlock block to stop the motor in case of a signal becomes active like a manhole. All those blocks together you will put them in a CMT and when finished, you can copy the CMT to the project. A Control Module is created (instance). You can do this 10,100,1000 times. You can take a look at the manual section for more information, or do you need more info on a specific subject?
|
Last edited by: Oreca at: 01/24/2023 07:44:01If I could help you, you can use the RATE button. Thank you. |
|
This contribution was helpful to
1 thankful Users |
Follow us on