Hello,
When I choose the option Acquire Area in a PhotoEye Trigger appears an error in the system console. I think that the reason is because the variable conveyorItem is not declared.
If I write:
Conveyor.Item conveyorItem = conveyor.itemData[item];
in line 4 of the code it is successful.