09-29-2022, 05:45 AM
(09-28-2022, 11:15 AM)Albert Wrote:You should be able to generate programs that are 50 lines of code or less with the free version.
Can you attach the screenshots and/or the RoboDK project?
Absolutely.
As for the program, for trial, L-shape is being traced by a FANUC R2000iA :
Code:
L Trial
import sys
import os
sys.path.append(os.path.abspath(r"""D:/RoboDK/Posts/""")) # temporarily add path to POSTS folder
from Fanuc_RJ3 import *
try:
from robodk.robomath import PosePP as p
except:
from robodk import PosePP as p
print('Total instructions: 3')
r = RobotPost(r"""Fanuc_RJ3""",r"""Fanuc R-2000iA/165F""",6, axes_type=['R','R','R','R','R','R'], ip_com=r"""127.0.0.1""", api_port=20500, prog_ptr=1198950288384, robot_ptr=1198953539216)
r.ProgStart(r"""Prog1""")
r.RunMessage(r"""Program generated by RoboDK v5.5.0 for Fanuc R-2000iA/165F on 28/09/2022 14:19:12""",True)
r.RunMessage(r"""Using nominal kinematics.""",True)
r.setFrame(p(0,0,0,0,0,0),-1,r"""Fanuc R-2000iA/165F Base""")
r.MoveJ(p(1807,0,1300,-180,-90,0),[0,0,0,0,0,0],[0,0,0])
r.MoveJ(p(1807,-663.885,1300,-180,-90,0),[-22.6368,7.18155,0.377719,90.9057,22.6398,-90.9813],[0,0,1])
r.MoveJ(p(1807,-663.885,554.289,-180,-90,0),[-22.6368,11.4299,-32.5674,37.7649,38.9372,-31.0727],[0,0,1])
r.ProgFinish(r"""Prog1""")
r.ProgSave(r"""C:/Users/Admin/Desktop""",r"""Prog1""",False,False)
r.ProgSendRobot("127.0.0.1", "md:/", "anonymous", "")
The output I get when I try to run the program directly on the robot via "Ctrl + F6" :