JeffLowe Posted November 14, 2012 Share Posted November 14, 2012 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 More sharing options...
Sina.Sattari Posted November 14, 2012 Share Posted November 14, 2012 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 More sharing options...
Recommended Posts