Hi
If SmartTags("shift_change")= True Then SmartTags("MC1_S3")=SmartTags("MC1_S2")
If SmartTags("shift_change")= True Then SmartTags("shift_change")=0
Here Shift_change is M100.2 Bit,which gets sets in PLC through a positive edge.When ever this happens value in tag MC1_S2 transferes to tag MC1_S3
///////////////////////////////////
------|M100.0|-----------(p,m100.1)--------(set,m100.2)
///////////////////////////////////
Iam calling this script through change value event of tag M100.2
Manmeet