Also, I'll say it for the record, though it's likely to fall on deaf ears:
Don't use LLMs to create Ignition code blindly.
If you don't already know what you're doing, an LLM will happily give you a mountain of terrible code.
I'm not going to bother listing them all, but besides the parameter name hallucination there's a large number of problems with the single code snippet you've posted.