/This is an expansion of example 5
/The output will display the seconds in binary format on outputs 1 to 6 and minutes on outputs 9 to 14
/Here we use the Virtual register so that we can access individual bits of the variable.
/Note that we save the original value of the Virtual register while we are using it and then return it back at the end of the processing.
Variables
u8 OldVirtual
End
Start
Outputs=Seconds
OldVirtual=Virtuals
Virtuals=Minutes
Output9=0
if Virtual1=1
Output9=1
endif
Output10=0
if Virtual2=1
Output10=1
endif
Output11=0
if Virtual3=1
Output11=1
endif
Output12=0
if Virtual4=1
Output12=1
endif
Output13=0
if Virtual5=1
Output13=1
endif
Output14=0
if Virtual6=1
Output14=1
endif
Virtuals=OldVirtual
End