Jump to content
OMRON Forums

Begin1:0; stops plc


JeffLowe
 Share

Recommended Posts

Trying to point CS1 to the beginning of the rotary buffer from within a plc with the command begin1:0;

The plc stops executing with a "Not active, Stopped on an illegal script operation code" status in the Task Manager.

If I replace this with:

cmd"&1B0";

sendallcmds;

 

It operates correctly. Are there still issues with this command?

How about run1?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Jeff,

 

I just checked this and I think we may have a mistake in the software reference manual. The problem is the parameters after the commands.

 

In order to point to a buffer, use the "begin" command, however you have to use the Ldata.Coord register to define which coordinate systems pointer is being pointed to the program. Your code should look like:

 

open plc n
...
Ldata.Coord=1;
begin 0;
...
close

 

If you want to point to a program and start execution, use the start command in which you can specify both the coordinate system and buffer number:

 

open plc n
...
start 1:0;
...
close

 

I hope this solves the problem. Please let us know.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...