> > I think a User Label is a global name and will be recognized in the > > subroutines. There is no need to use arguments. > >=20 >=20 Hi Jim, =20 but it isn't a good style of programming to do this. =20 Regards, Andreas =20 > > If interested, you can try this: > >=20 > > INDEPENDENT_SEQUENCE > > CONSTANTS > > VARIABLES > > USER_LABELS > > In_Flag :BI0001; > > Out_Flag :BO0001; > >=20 > > SUBROUTINE my_flags ( ) > > VARIABLES > > STATEMENTS > > Out_Flag :=3D3D In_Flag; > >=20 > > ENDSUBROUTINE > >=20 > > STATEMENTS > >=20 > > WHILE TRUE DO > > CALL my_flags ( ); > > WAIT 0.1; > > ENDWHILE > >=20 > > ENDSEQUENCE > >=20 > > To run the test, just toggle BI0001 and you will see that=20 > > BO0001 follows > > it. > >=20 > > Jim Pan > > Invensys Lifetime Learning > >=20 >=20 >=20 _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave