General
The aim is to configurate and test an application according to the following descriptions.
- reading the binary input from ACN IO to the process station GP01
- controlling the binary output in ACN IO
- reading an analog measurement from ACN to the GP01
- checking the application in FbCad
- downloading the application to the process station
- testing the application in the laboratory
Return
Return a pdf print of your own application. The assignment is ready when you have done testing in a group and returned your own application.
Task
The final result of the application is shown in the figure below.
Figure 1 The final result
Open the FbCad and configurate the function module using following information
- Package (process station) is GP01, execution time is 1000 ms, order can be the initial 20.
- The loop name (tag) can be the initial TAG_CODE at this point.
The name of the every object has to be unique and the names start always with "pr:" The name itself can be anything but there are some good programming practices.
Let's change now the loop name using Gedit funcion. Open from the menu Edit/Edit/Gedit. Now there should be found a text Give string to change in Command window. Type TAG_CODE (if it doesn't exist between < >) and click Enter. Now the function asks Give new string, type xxxx-ACN, where xxxx is your student number. Gedit works as a find and replace, find out that it replaces every string in your picture (also inside a longer string) that fits to your find. Be careful and do not use too short find attributes.
Choose File and Save AS... Choose Workspace, and select your own group number if it's not an initial. Apply Save. Now your loop is saved to the engineering server EAS. If you have any problem whit saving to the Workspace, the application can be allways saved to your local drive.
Temperature measurement Pt100
Add a connection to the ACN IO's AI8 card (add I/O/ACN80 and AI8). Use pr:xxxx-TT100.I as an Input module name. Change the parameter as shown in the figure 2. Add an analog module am for signal processing. Choose the right version (see the figure 1) from Fblocks1/am. Name the am module with name pr:xxxx-TT00. Add the alarm limits (HH and H) from the Common/Constant menu.
Figure 2 Parameters for AI card
Add DI8 from the menu IO/ACN M08. Use the paremeters of FBC slot = 2, IBC number 0, Card place 0 and Channel number 0. Another DI8 input is the same but change the Channel number to 1. Check the module names from the figure 1.
Button on screen
In figure 1, there is an object that is named Button on screen. This object makes the connection to the display where is a ready made button for light the beacon. Find the object from the menu Common/Direc Access Port left. GIve the name xxxx-HS-1 for the loop and '0' for Initial value.
Digital output
Add an output card from ’I/O’ -> ACN M08 -> DO ->’do8’ and locate it as it is shown in figure 1. FBC slot = 2, IBC number = 0, Card place = 2, Channel number = 0.
Create the connections between the object by using Draw/Scalar autocolor wire.
- when the picrure is ready, save to Workspace
- Check the loop diagram by using File/Check
- If there are errors, study the Check log from the menu.
- The loop is ready when the check does not finf any errors.
Now the loop can be tested in the laboratory by the lecturer's instructions.
Testing
Copy your loop to the Repository.
Open the loop and change the tags using gedit from student number xxxxx -> H2
Check and Save.
Download
When you have tested the loop upload the loop from PCS. Select the loop, open Upload/Download from menu, Delete Functions from Environment.
Move the loop back to the own Workspace.