Issue:
After importing the AB plc EtherNet IP standard interface routine into the PLC, a compilation error occurs: Immediate value out of range.
Cause:
Error message: The IO module data exceeds the index value. Connections in the vision EDS module were not defined as INT type as per the usage documentation.
Troubleshooting steps:
-
Delete the added vision module from the Ethernet network.
-
Refer to the documentation and re-add the vision module. Modify the module definition Connections to INT type according to the steps (as shown in the image below):
-
Re-compile the program routine. The error log should no longer appear.