Jump to content
OMRON Forums

S code subprog not executed


wbzhong
 Share

Recommended Posts

The S code subprog is called when 0 <= code value <= 1000. Otherwise it only sets Ldata.D[53], but the subprog is not called. Is it a feature or bug?

 

Firmware: 2.4.0.180

Coord[1].Sprog = 1004

Subprog implementation:

open subprog 1004

P0 = Ldata.D[53]

return

close

 

In the buffered program, commands S-1 or S1001 only updates the Coord[x].Ldata.D[53] value, but P0 is left unchanged. Commands S0 to S1000 work correctly.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Thanks Steve. Initially, we would like to use S code to change the spindle command speed to any value, such as S5000. But it turns out that S code works like G/M code, the code value range is limited rather than an arbitrary value. We will find another way to implement this function.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...