UNITY PRO function

hammer1

Member
Join Date
Nov 2008
Posts
12
Hi guys

I have a program made as code in unity pro. It has around 20 lines of code.

I need to create a function for that code.For example:

[x,y]:=myfunction(start)

x - data vector returned by myfunction
y - data vector returned by myfunction
start - parameter to start executing myfunction (BOOL) 1 to start 0 to stop

I need to be able call myfunction in other programs I make.

IS THIS POSSIBLE AND IF SO HOW?
 
When you get the function working correctly you can save (or export?) to the library. Then in other projects you can select that function from your library
 

Similar Topics

Is there a way to snap function blocks to a grid in unity? This is for pure aesthetics reasons I know. But it can be frustrating to navigate...
Replies
3
Views
1,572
I'm a Siemens guys switching to Schneider/modicon stuff. There are two pieces of equipment they used to run independently but they've...
Replies
8
Views
4,640
Hi I am using the DATA_EXCH block to read data over Serial 485 Modbus. I need to poll inputs 1X00000 registers. The RECP of the DATA_EXCH block...
Replies
0
Views
1,105
Does anybody know how to remove the password of a protected function block and/or section code?
Replies
0
Views
3,166
Hello, I am using Unity pro V15. I have Quantum CPU 671 and Ethernet NOE 77101 configured. I have configured IO scanning on NOE. I have attached...
Replies
5
Views
174
Back
Top Bottom