Hi, everbody,
The defined variable‘s value in the main program cannot pass down to subroutine program....
In main program, there are different cases to have different time values as below:
Sub main
.....
Case 1.... t=1000.... call A
Case 2.....t=2000.....call A
......
End Sub
....
Sub A
ActivateSignal(Output4)
Sleep(t)
DeActivateSignal(Output4)
Sleep(50)
End Sub
However, during the program runs, corresponding t value cannot be read in subroutine, can anybody help to explain what mistakes were made?