Hi to all, i'm new to denso programming on wincaps III.
This is my problem: in my main i have
If MyFunction(10) > 0 Then
' do something
And MyFunction is:
Function MyFunction(number As Integer) As Integer
Dim new_number as Integer
new_number = 5
MyFunction = number*new_number
Ok and all works well.
But if i want to pass to MyFunction an argument that is used on a Wait IO[signal] = ON instruction?
How i can do that ?
Because i want to check this signal in a Function like
Function MyFunction(signal As IO) As Integer
Dim response As Integer
response = 0
Wait IO[signal] = ON, 3000, response
MyFunction = response
Thanks a lot for your support.