Sample Continuous Function Chart CFC Program: Time Based Counter
Here's a simple sample Continuous Flow Chart CFC program. It starts when the PLC application starts and increments a counter variable every second.Â
Select the sample project that matches your version of Parker Automation Manager:
PAM1.4:Â Counter_CFC_PAM1.4
PAM1.2:Â Counter_CFC_PAM1.2
Â
Note the PLCcounter variable should be added to the Global Variable List in your program. You can set this as a DINT. With it in the GVL, this will be available to other programs in the application:
Â
Â
Â
Â
Note: A PAC320 hardware controller isn't necessary to run this. See below for details:
Â
For PAM1.4:
Under the "Online" tab at the top of the PAM window, make sure "Simulation" is checked. Whenever you go to login now, PAM will run a simulated device to run your project.
Make sure to uncheck this box when you want to connect and login to a physical PAC.
Â
For PAM1.3 or earlier:
You can use an application with a CODESYS Control Win V3 device (You must add this). Under Online > Simulation. Then you can after Build (F11), click Online > Login.
This will create a virtual PLC and allow you to run PLC simulation (Play or F5). Here's a screen capture:
Â
Â
Â
Â
1/15JH
31OCT18 JD