I don’t remember if I wrote that part of the translator and what my reasoning was for it to work like that. But sure it could probably be better. If and when we revisit Yaskawa I’ll have another look at the source with this in mind. For a hotfix you could try to modify “Yaskawa_JBI.py” source file on line 595 like this:
EDIT: Fixed the picture and its source code so that it’s valid python now