I have a recipe screen that the operator can pick a part number for and enter in a work order. Once they do that they hit the load button and I take the info from a dataset and write it to the PLC. I wanted to ask you guys what the most efficient way to write the data to the tags is as we will be doing this process repeatedly. I have attached the working code I have now. I have looked into some of the different tag.write methods but was a little confused which one is best to use.
data = event.source.parent.HangerData DryingRoom = data.getValueAt(0, "DryingRoom") RobotNumber = data.getValueAt(0, "RobotNumber") MaxDryTime = data.getValueAt(0, "MaxDryTime") MinDryTime = data.getValueAt(0, "MinDryTime") ManualPick = data.getValueAt(0, "ManualPick") system.tag.write("SMS_HangerDataBuffer/CoatToProcess/DryTimeMax", MaxDryTime) system.tag.write("SMS_HangerDataBuffer/CoatToProcess/DryTimeMin", MinDryTime) system.tag.write("SMS_HangerDataBuffer/CoatToProcess/ManualStationRequired", ManualPick) system.tag.write("SMS_HangerDataBuffer/CoatToProcess/RobotProgramNumber", RobotNumber) system.tag.write("SMS_HangerDataBuffer/CoatToProcess/ShellCoatsDryRoom", DryingRoom) system.nav.closeParentWindow(event)