Jump to content
OMRON Forums

About switching axes when running programs


Unicornai

Recommended Posts

I need to disable the B-axis when running the program, and then when I need the B-axis rotation angle, I want to enable it and move it to the B-axis position, but I added these words in the M code but it doesn't work. Can you help me

image.png.5e1c0bc690f92cecca16e6347da5229f.png

image.png.0e5d7ab3b302e674ef744eca6027010e.png

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Are there any other motor assigned to &1?
If there isn't a motor defined in the Coord after the "&1#4->0", then it won't be allowed to define a lookahead.

It would help if you give more details about what you mean with "it doesn't work".

Edited by leandro.martins
Link to comment
Share on other sites

10 hours ago, leandro.martins said:

是否有任何其他电机分配给 &1?
如果 Coord 中的“&1#4->0”之后没有定义电机,则不允许定义前瞻。

如果您提供有关“它不起作用”的含义的更多详细信息,那将会有所帮助。

X,Z axis means motor[1],motor[2],B axis means motor[4],X,Z belong &1

Link to comment
Share on other sites

11 hours ago, leandro.martins said:

Are there any other motor assigned to &1?
If there isn't a motor defined in the Coord after the "&1#4->0", then it won't be allowed to define a lookahead.

It would help if you give more details about what you mean with "it doesn't work".

I run program in &1,and then i push B-axis out by M41.1,But in pmacide-watch,i see the #4 stutes is &1#4->b 

Link to comment
Share on other sites

12 hours ago, Unicornai said:

I run program in &1,and then i push B-axis out by M41.1,But in pmacide-watch,i see the #4 stutes is &1#4->b 

2024-07-30_20-33-26.png.cd34c4353b74da5d83c5c3471667197c.png

Please refer to the above code

Link to comment
Share on other sites

17 hours ago, MoMo said:

2024-07-30_20-33-26.png.cd34c4353b74da5d83c5c3471667197c.png

Please refer to the above code

thanks, i used this code successed,but the coord error with Runtime error at twice?

this is my prog

G90
G53
X1Z1F10
M40.1
B20F200
G04P2.0
M41.1
G04 P3.0
X0Z0F10
M40.1
B0F200
G04P2.0
M41.1
G04 P3.0
X1Z1F10
M40.1
B20F200
G04P2.0
M41.1
G04 P3.0
X0Z0F10
M40.1
B0F200
G04P2.0
M41.1
G04 P3.0
X1Z1F10
M40.1
B5F200
G04P2.0
M41.1
G04 P3.0
X0Z0F10
M40.1
B0F200
G04P2.0
M41.1
G04 P3.0
X1Z1F10
M40.1
B5F200
G04P2.0
M41.1
G04 P3.0
X0Z0F10
M40.1
B0F200
G04P2.0
M41.1
G04 P3.0

Coord[1].SegMoveTime=1
Coord[1].LHDistance=400
&1 define lookahead2000

in line 39 or other m40.1 the error appear,waht should i do?

Link to comment
Share on other sites

Runtime error is usually caused by insufficient CPU computing power. You can try to reduce the speed, optimize the kinematic algorithm, increase SegMoveTime or replace the CK5M

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.


×
×
  • Create New...