I am new to Python and having problems coming up with a Gateway Event Script. I am wanting to write a string value to a memory tag pending the value of an OPC Tag. My idea is that there would be multiple “If” statements to accommodate for the numerous OPC Tag possibilities. Here is what I have so far but I cant get it to work.
if system.tag.value(“100 Series (South)/BG Number (FULL)”) == BG20873:
system.tag.write (“100 Series (South)/Pallet Counter/Pallet Type”, GX12345)
Any help would be appreciated.