Haas Alarm: 527 = NOT EXPECTED OR THEN REQUIRED – Only one assignment is allowed per block, or a THEN statement is missing. Check macro formatting.