Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
📖HomeBack The "Maximum Number of Opcodes Executed" error message simply indicates that a logic program is taking too long to execute and as a simple protection mechanism if the number of operations exceed the configured value the logic is terminated and this error generated. This is usually is only an issue for structured text programs however all logic programs have this setting and could possibly hit this limit.
The default value is nowhere near what a normal logic program should ever get near to, however the introduction of loops (FOR and WHILE and the usage of %S) means that this limit can be easily reached.
The following program will always generate this error...
PROGRAM CountTestWHILE (1) DO;END_WHILE;END_PROGRAM
...because the program will never end. It will reach the maximum number of operations and terminate.
The number of opcodes (instructions) of the last execution can be seen by doing a Logic Execution Query and seeing the "Number of Instructions" column.
Example Causes of this Error
Large FOR loops within Large FOR loops (such as AGA8 calculations performed in logic)
WHILE loops where it is possible to not reach the loop's false condition.
Looping through an SQL resultset and forgetting to use .Next() (or any of the other navigation methods) for all possible paths.
Dynamic programs, e.g. a program where the inputs are variable, and potentially all get handled, such as rows of a datagrid that grows over time.