動画検索
関連広告
検索結果
The function block will be added to our library
Go to the toolbox and add a function block.
Give it a suitable name and choose the FB option.
Open a program to call the function block
Go to the library.fun file and choose the FB that needs to be called.
Declare the undeclared variables
Make sure the types of the variables are correct
The declared variables can be found in the variable file
How to... create and call a function in Automation Studio
Add a function from the toolbox to the library
Choose the option Function and give it a suitable name
Now lets cal the function in a program
In this example the variable calculation is used
Next, transfer the project to test the function
Monitor the program and add the variables to the watch table