没有合适的资源?快使用搜索试试~ 我知道了~
首页FANUC机器人KAREL编程手册
FANUC机器人KAREL编程手册
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 4 下载量 62 浏览量
更新于2024-07-20
收藏 11.74MB PDF 举报
"FANUC karel 语言编程手册,适用于FANUC R-30iA和R-30iB控制器,详细介绍了KAREL编程语言的使用,由FANUC Robotics America Corporation出版,版号MARRC75KR07091ERevD,适用于7.50及以上版本。手册包含了FANUC机器人的安装、操作、编程等指导,同时警告未受过专业培训的人员不应进行相关操作,以防干扰无线电通信和安全问题。"
本文档详细阐述了FANUC机器人系统,特别是与R-30iA和R-30iB控制器相关的KAREL编程语言。KAREL是一种专门用于FANUC机器人的编程语言,它允许程序员以结构化的方式编写控制机器人动作的代码。KAREL提供了丰富的指令集,使得开发者能够精确地定义机器人的运动路径、任务执行逻辑以及与其他设备的交互。
R-30iA和R-30iB控制器是FANUC公司先进的工业机器人控制系统,它们支持多种功能,包括运动控制、I/O管理、故障诊断和安全特性。这些控制器的设计目的是为了提高生产效率,确保机器人系统的稳定性和可靠性。对于使用R-J3iC控制器的用户,手册中提到的内容同样适用,只需将R-30iA理解为R-J3iC。
本参考手册覆盖了从基本的KAREL语句到复杂的编程技巧的所有方面,帮助用户理解和掌握如何创建有效的机器人程序。例如,手册可能包括如何声明变量、定义函数、编写条件语句、循环结构以及处理I/O信号等内容。此外,还可能涉及错误处理、调试技巧以及最佳实践。
FANUC Robotics强调,为了确保安全和有效使用,所有涉及FANUC机器人系统的工作,包括安装、操作、编程、维修和维护,都应由经过官方培训的人员执行。他们提供了多个培训课程,涵盖了不同类型的机器人系统和应用,以确保用户具备必要的技能和知识。
手册中还提到了关于射频能量的警告,因为机器人系统可能会产生并辐射射频能量,可能干扰无线电通信。用户必须遵循手册中的指导进行安装和使用,以防造成不必要的干扰。在住宅环境中,如果出现干扰问题,用户需自行解决。
"FANUC karel 语言编程手册"是FANUC机器人用户的重要参考资料,它不仅教导如何使用KAREL编程语言,还强调了安全操作的重要性,并提供了丰富的系统操作和维护信息。对于希望优化FANUC机器人性能、提升自动化水平的专业人士来说,这是一份不可或缺的指南。
Contents MARRC75KR07091E Rev D
A.13.4 LOCK_GROUP Built-In Procedure .................................................................................. A–216
A.13.5 %LOCKGROUP Translator Directive
............................................................................... A–217
A.14 - M - KAREL LANGUAGE DESCRIPTION
..................................................................... A–218
A.14.1 MIRROR Built-In Function
............................................................................................. A–218
A.14.2 MODIFY_QUEUE Built-In Procedure
.............................................................................. A–219
A.14.3 MOTION_CTL Built-In Function
.................................................................................... A–221
A.14.4 MOUNT_DEV Built-In Procedure
................................................................................... A–221
A.14.5 MOVE_FILE Built-In Procedure
...................................................................................... A–222
A.14.6 MSG_CONNECT Built-In Procedure
............................................................................... A–223
A.14.7 MSG_DISCO Built-In Procedure
..................................................................................... A–225
A.14.8 MSG_PING
................................................................................................................. A–225
A.15 - N - KAREL LANGUAGE DESCRIPTION
...................................................................... A–226
A.15.1 NOABORT Action
........................................................................................................ A–226
A.15.2 %NOABORT Translator Directive
................................................................................... A–227
A.15.3 %NOBUSYLAMP Translator Directive
............................................................................ A–227
A.15.4 NODE_SIZE Built-In Function
........................................................................................ A–227
A.15.5 %NOLOCKGROUP Translator Directive
.......................................................................... A–229
A.15.6 NOMESSAGE Action
.................................................................................................... A–230
A.15.7 NOPAUSE Action
......................................................................................................... A–230
A.15.8 %NOPAUSE Translator Directive
.................................................................................... A–231
A.15.9 %NOPAUSESHFT Translator Directive
............................................................................ A–231
A.16 - O - KAREL LANGUAGE DESCRIPTION
...................................................................... A–232
A.16.1 OPEN FILE Statement
................................................................................................... A–232
A.16.2 OPEN HAND Statement
................................................................................................. A–233
A.16.3 OPEN_TPE Built-In Procedure
........................................................................................ A–233
A.16.4 ORD Built-In Function
................................................................................................... A–234
A.16.5 ORIENT Built-In Function
.............................................................................................. A–235
A.17 - P - KAREL LANGUAGE DESCRIPTION
...................................................................... A–236
A.17.1 PATH Data Type
........................................................................................................... A–236
A.17.2 PATH_LEN Built-In Function
.......................................................................................... A–238
A.17.3 PAUSE Action
.............................................................................................................. A–238
A.17.4 PAUSE Condition
......................................................................................................... A–239
A.17.5 PAUSE Statement
......................................................................................................... A–240
A.17.6 PAUSE_TASK Built-In Procedure
.................................................................................... A–241
A.17.7 PEND_SEMA Built-In Procedure
.................................................................................... A–242
A.17.8 PIPE_CONFIG Built-In Procedure
................................................................................... A–242
A.17.9 POP_KEY_RD Built-In Procedure
................................................................................... A–243
A.17.10 Port_Id Action
.............................................................................................................. A–244
A.17.11 Port_Id Condition
.......................................................................................................... A–245
A.17.12 POS Built-In Function
.................................................................................................... A–246
A.17.13 POS2JOINT Built-In Function
......................................................................................... A–246
A.17.14 POS_REG_TYPE Built-In Procedure
................................................................................ A–248
A.17.15 POSITION Data Type
.................................................................................................... A–249
A.17.16 POST_ERR Built-In Procedure
........................................................................................ A–250
A.17.17 POST_ERR_L Built-In Procedure
...................................................................................... A–251
A.17.18 POST_SEMA Built-In Procedure
..................................................................................... A–253
A.17.19 PRINT_FILE Built-In Procedure
...................................................................................... A–253
A.17.20 %PRIORITY Translator Directive
.................................................................................... A–254
A.17.21 PROG_BACKUP Built-In Procedure
................................................................................ A–255
A.17.22 PROG_CLEAR Built-In Procedure
................................................................................... A–258
A.17.23 PROG_RESTORE Built-In Procedure
............................................................................... A–260
A.17.24 PROG_LIST Built-In Procedure
....................................................................................... A–262
A.17.25 PROGRAM Statement
................................................................................................... A–263
A.17.26 PULSE Action
.............................................................................................................. A–264
xiv
MARRC75KR07091E Rev D Contents
A.17.27 PULSE Statement ......................................................................................................... A–265
A.17.28 PURGE CONDITION Statement
..................................................................................... A–266
A.17.29 PURGE_DEV Built-In Procedure
..................................................................................... A–267
A.17.30 PUSH_KEY_RD Built-In Procedure
................................................................................. A–268
A.18 - Q - KAREL LANGUAGE DESCRIPTION
...................................................................... A–269
A.18.1 QUEUE_TYPE Data Type
.............................................................................................. A–269
A.19 - R - KAREL LANGUAGE DESCRIPTION
...................................................................... A–269
A.19.1 READ Statement
........................................................................................................... A–269
A.19.2 READ_DICT Built-In Procedure
...................................................................................... A–271
A.19.3 READ_DICT_V Built-In-Procedure
................................................................................. A–272
A.19.4 READ_KB Built-In Procedure
......................................................................................... A–273
A.19.5 REAL Data Type
........................................................................................................... A–277
A.19.6 Relational Condition
...................................................................................................... A–279
A.19.7 RELAX HAND Statement
.............................................................................................. A–280
A.19.8 RELEASE Statement
..................................................................................................... A–281
A.19.9 REMOVE_DICT Built-In Procedure
................................................................................. A–281
A.19.10 RENAME_FILE Built-In Procedure
................................................................................. A–282
A.19.11 RENAME_VAR Built-In Procedure
.................................................................................. A–283
A.19.12 RENAME_VARS Built-In Procedure
................................................................................ A–283
A.19.13 REPEAT ... UNTIL Statement
......................................................................................... A–284
A.19.14 RESET Built-In Procedure
.............................................................................................. A–285
A.19.15 RESUME Action
.......................................................................................................... A–286
A.19.16 RESUME Statement
...................................................................................................... A–286
A.19.17 RETURN Statement
...................................................................................................... A–287
A.19.18 ROUND Built-In Function
.............................................................................................. A–288
A.19.19 ROUTINE Statement
..................................................................................................... A–289
A.19.20 RUN_TASK Built-In Procedure
....................................................................................... A–290
A.20 - S - KAREL LANGUAGE DESCRIPTION
...................................................................... A–291
A.20.1 SAVE Built-In Procedure
................................................................................................ A–291
A.20.2 SAVE_DRAM Built-In Procedure
.................................................................................... A–292
A.20.3 SELECT ... ENDSELECT Statement
................................................................................ A–293
A.20.4 SELECT_TPE Built-In Procedure
.................................................................................... A–294
A.20.5 SEMA_COUNT Built-In Function
................................................................................... A–294
A.20.6 SEMAPHORE Condition
............................................................................................... A–295
A.20.7 SEND_DATAPC Built-In Procedure
................................................................................. A–295
A.20.8 SEND_EVENTPC Built-In Procedure
............................................................................... A–296
A.20.9 SET_ATTR_PRG Built-In Procedure
................................................................................ A–297
A.20.10 SET_CURSOR Built-In Procedure
................................................................................... A–299
A.20.11 SET_EPOS_REG Built-In Procedure
................................................................................ A–300
A.20.12 SET_EPOS_TPE Built-In Procedure
................................................................................. A–301
A.20.13 SET_FILE_ATR Built-In Procedure
................................................................................. A–302
A.20.14 SET_FILE_POS Built-In Procedure
.................................................................................. A–303
A.20.15 SET_INT_REG Built-In Procedure
................................................................................... A–304
A.20.16 SET_JPOS_REG Built-In Procedure
................................................................................. A–304
A.20.17 SET_JPOS_TPE Built-In Procedure
................................................................................. A–305
A.20.18 SET_LANG Built-In Procedure
....................................................................................... A–306
A.20.19 SET_PERCH Built-In Procedure
...................................................................................... A–307
A.20.20 SET_PORT_ASG Built-In Procedure
................................................................................ A–308
A.20.21 SET_PORT_ATR Built-In Function
.................................................................................. A–309
A.20.22 SET_PORT_CMT Built-In Procedure
............................................................................... A–311
A.20.23 SET_PORT_MOD Built-In Procedure
............................................................................... A–312
A.20.24 SET_PORT_SIM Built-In Procedure
................................................................................. A–313
A.20.25 SET_PORT_VAL Built-In Procedure
................................................................................ A–314
A.20.26 SET_POS_REG Built-In Procedure
.................................................................................. A–315
xv
Contents MARRC75KR07091E Rev D
A.20.27 SET_POS_TPE Built-In Procedure ................................................................................... A–316
A.20.28 SET_PREG_CMT Built-In-Procedure
............................................................................... A–317
A.20.29 SET_REAL_REG Built-In Procedure
............................................................................... A–317
A.20.30 SET_REG_CMT Built-In-Procedure
................................................................................. A–317
A.20.31 SET_SREG_CMT Built-in Procedure
................................................................................. A–318
A.20.32 SET_STR_REG Built-in Procedure
.................................................................................... A–319
A.20.33 SET_TIME Built-In Procedure
........................................................................................ A–319
A.20.34 SET_TPE_CMT Built-In Procedure
.................................................................................. A–321
A.20.35 SET_TRNS_TPE Built-In Procedure
................................................................................ A–321
A.20.36 SET_TSK_ATTR Built-In Procedure
................................................................................ A–322
A.20.37 SET_TSK_NAME Built-In Procedure
............................................................................... A–323
A.20.38 SET_VAR Built-In Procedure
.......................................................................................... A–324
A.20.39 %SHADOWVARS Translator Directive
............................................................................ A–327
A.20.40 SHORT Data Type
......................................................................................................... A–327
A.20.41 SIGNAL EVENT Action
................................................................................................ A–328
A.20.42 SIGNAL EVENT Statement
............................................................................................ A–328
A.20.43 SIGNAL SEMAPHORE Action
....................................................................................... A–329
A.20.44 SIN Built-In Function
.................................................................................................... A–329
A.20.45 SQRT Built-In Function
................................................................................................. A–330
A.20.46 %STACKSIZE Translator Directive
.................................................................................. A–330
A.20.47 STD_PTH_NODE Data Type
.......................................................................................... A–331
A.20.48 STOP Action
................................................................................................................ A–331
A.20.49 STOP Statement
............................................................................................................ A–332
A.20.50 STRING Data Type
....................................................................................................... A–333
A.20.51 STR_LEN Built-In Function
........................................................................................... A–334
A.20.52 STRUCTURE Data Type
................................................................................................ A–334
A.20.53 SUB_STR Built-In Function
........................................................................................... A–335
A.21 - T - KAREL LANGUAGE DESCRIPTION
...................................................................... A–336
A.21.1 TAN Built-In Function
................................................................................................... A–336
A.21.2 %TIMESLICE Translator Directive
.................................................................................. A–337
A.21.3 %TPMOTION Translator Directive
.................................................................................. A–337
A.21.4 TRANSLATE Built-In Procedure
..................................................................................... A–337
A.21.5 TRUNC Built-In Function
.............................................................................................. A–339
A.22 - U - KAREL LANGUAGE DESCRIPTION
...................................................................... A–340
A.22.1 UNHOLD Action
.......................................................................................................... A–340
A.22.2 UNHOLD Statement
...................................................................................................... A–340
A.22.3 UNINIT Built-In Function
.............................................................................................. A–341
A.22.4 %UNINITVARS Translator Directive
............................................................................... A–341
A.22.5 UNLOCK_GROUP Built-In Procedure
............................................................................. A–342
A.22.6 UNPAUSE Action
......................................................................................................... A–343
A.22.7 UNPOS Built-In Procedure
............................................................................................. A–344
A.22.8 USING ... ENDUSING Statement
.................................................................................... A–344
A.23 - V - KAREL LANGUAGE DESCRIPTION
...................................................................... A–345
A.23.1 V_CAM_CALIB iRVision Built-In Procedure
.................................................................... A–345
A.23.2 V_GET_OFFSET iRVision Built-In Procedure
................................................................... A–347
A.23.3 V_GET_PASSFL iRVision Built-In Procedure
.................................................................... A–348
A.23.4 V_GET_QUEUE iRVision Built-in Procedure
.................................................................... A–350
A.23.5 V_INIT_QUEUE iRVision Built-in Procedure
.................................................................... A–350
A.23.6 V_RALC_QUEUE iRVision Built-in Procedure
.................................................................. A–351
A.23.7 V_RUN_FIND iRVision Built-In Procedure
....................................................................... A–351
A.23.8 V_SET_REF iRVision Built-In Procedure
.......................................................................... A–353
A.23.9 V_START_VTRK iRVision Built-in Procedure
................................................................... A–354
A.23.10 V_STOP_VTRK iRVision Built-in Procedure
..................................................................... A–354
A.23.11 VAR_INFO Built-In Procedure
........................................................................................ A–355
xvi
MARRC75KR07091E Rev D Contents
A.23.12 VAR_LIST Built-In Procedure ......................................................................................... A–357
A.23.13 VECTOR Data Type
...................................................................................................... A–360
A.23.14 VOL_SPACE Built-In Procedure
...................................................................................... A–361
A.23.15 VREG_FND_POS iRVision Built-in Procedure
................................................................... A–362
A.23.16 VREG_OFFSET iRVision Built-in Procedure
..................................................................... A–363
A.24 - W - KAREL LANGUAGE DESCRIPTION
..................................................................... A–364
A.24.1 WAIT FOR Statement
.................................................................................................... A–364
A.24.2 WHEN Clause
.............................................................................................................. A–364
A.24.3 WHILE...ENDWHILE Statement
..................................................................................... A–365
A.24.4 WITH Clause
............................................................................................................... A–365
A.24.5 WRITE Statement
......................................................................................................... A–366
A.24.6 WRITE_DICT Built-In Procedure
.................................................................................... A–367
A.24.7 WRITE_DICT_V Built-In Procedure
................................................................................ A–368
A.25 - X - KAREL LANGUAGE DESCRIPTION
...................................................................... A–369
A.25.1 XML_ADDTAG Built-In Procedure
................................................................................. A–369
A.25.2 XML_GETDATA Built-In Procedure
................................................................................. A–370
A.25.3 XML_REMTAG Built-In Procedure
.................................................................................. A–371
A.25.4 XML_SCAN Built-In Procedure
....................................................................................... A–371
A.25.5 XML_SETVAR Built-In Procedure
................................................................................... A–373
A.25.6 XYZWPR Data Type
..................................................................................................... A–374
A.25.7 XYZWPREXT Data Type
............................................................................................... A–375
A.26 - Y - KAREL LANGUAGE DESCRIPTION
...................................................................... A–375
A.27 - Z - KAREL LANGUAGE DESCRIPTION
...................................................................... A–375
Appendix B KAREL EXAMPLE PROGRAMS
................................................................................ B–1
B.1 SETTING UP DIGITAL OUTPUT PORTS FOR PROCESS MONITORING
.............................. B–6
B.2 COPYING PATH VARIABLES
......................................................................................... B–18
B.3 SAVING DATA TO THE DEFAULT DEVICE
..................................................................... B–28
B.4 STANDARD ROUTINES
................................................................................................. B–31
B.5 USING REGISTER BUILT-INS
........................................................................................ B–33
B.6 PATH VARIABLES AND CONDITION HANDLERS PROGRAM
......................................... B–38
B.7 LISTING FILES AND PROGRAMS AND MANIPULATING STRINGS
................................. B–44
B.8 GENERATING AND MOVING ALONG A HEXAGON PATH
.............................................. B–49
B.9 USING THE FILE AND DEVICE BUILT-INS
..................................................................... B–54
B.10 USING DYNAMIC DISPLAY BUILT-INS
.......................................................................... B–58
B.11 MANIPULATING VALUES OF DYNAMICALLY DISPLAYED VARIABLES
......................... B–68
B.12 DISPLAYING A LIST FROM A DICTIONARY FILE
.......................................................... B–70
B.12.1 Dictionary Files
.............................................................................................................. B–80
B.13 USING THE DISCTRL_ALPHA BUILT-IN
........................................................................ B–81
B.13.1 Dictionary Files
.............................................................................................................. B–85
B.14 APPLYING OFFSETS TO A COPIED TEACH PENDANT PROGRAM
.................................. B–85
Appendix C KCL COMMAND ALPHABETICAL DESCRIPTION
..................................................... C–1
C.1 ABORT command
............................................................................................................. C–6
C.2 APPEND FILE command
................................................................................................... C–6
C.3 APPEND NODE command
................................................................................................. C–6
C.4 CHDIR command
............................................................................................................. C–7
xvii
Contents MARRC75KR07091E Rev D
C.5 CLEAR ALL command ..................................................................................................... C–7
C.6 CLEAR BREAK CONDITION command
............................................................................. C–8
C.7 CLEAR BREAK PROGRAM command
............................................................................... C–8
C.8 CLEAR DICT command
.................................................................................................... C–9
C.9 CLEAR PROGRAM command
........................................................................................... C–9
C.10 CLEAR VARS command
................................................................................................... C–9
C.11 COMPRESS DICT command
............................................................................................. C–10
C.12 COMPRESS FORM command
........................................................................................... C–10
C.13 CONTINUE command
..................................................................................................... C–11
C.14 COPY FILE command
...................................................................................................... C–11
C.15 CREATE VARIABLE command
........................................................................................ C–12
C.16 DELETE FILE command
.................................................................................................. C–13
C.17 DELETE NODE command
............................................................................................... C–13
C.18 DELETE VARIABLE command
......................................................................................... C–14
C.19 DIRECTORY command
.................................................................................................... C–14
C.20 DISABLE BREAK PROGRAM command
........................................................................... C–15
C.21 DISABLE CONDITION command
..................................................................................... C–15
C.22 DISMOUNT command
..................................................................................................... C–15
C.23 EDIT command
.............................................................................................................. C–16
C.24 ENABLE BREAK PROGRAM
.......................................................................................... C–16
C.25 ENABLE CONDITION command
...................................................................................... C–16
C.26 FORMAT command
......................................................................................................... C–17
C.27 HELP command
.............................................................................................................. C–17
C.28 HOLD command
............................................................................................................. C–18
C.29 INSERT NODE command
................................................................................................ C–18
C.30 LOAD ALL command
...................................................................................................... C–18
C.31 LOAD DICT command
..................................................................................................... C–19
C.32 LOAD FORM command
................................................................................................... C–19
C.33 LOAD MASTER command
............................................................................................... C–20
C.34 LOAD PROGRAM command
........................................................................................... C–20
C.35 LOAD SERVO command
................................................................................................. C–21
C.36 LOAD SYSTEM command
............................................................................................... C–21
C.37 LOAD TP command
........................................................................................................ C–22
C.38 LOAD VARS command
................................................................................................... C–23
C.39 LOGOUT command
........................................................................................................ C–24
C.40 MKDIR command
........................................................................................................... C–24
C.41 MOUNT command
.......................................................................................................... C–24
C.42 MOVE FILE command
.................................................................................................... C–25
C.43 PAUSE command
............................................................................................................ C–25
C.44 PURGE command
........................................................................................................... C–26
C.45 PRINT command
............................................................................................................ C–26
xviii
剩余911页未读,继续阅读
2020-04-23 上传
2021-03-04 上传
2022-10-19 上传
109 浏览量
2021-05-12 上传
2021-05-12 上传
220 浏览量
2019-07-19 上传
215 浏览量
XUHONGDA885055
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 微软C编程精粹 专业的程序设计指导资料
- 新东方刘畅词汇新东方刘畅词汇
- [概要设计] 图书管理系统概要设计说明书
- 需 求 规 格 说 明 书
- 网站用户单点登录系统解决方案
- struts validator框架验证和多模块开发总结.doc
- TC经典程序设计题目
- GIS软件应用实验指导
- unix高级程序设计
- ARM仿真工具IAREW使用教程
- OpenCV学习资料
- 2008上半年软件设计师考试答案
- 基于嵌入式的mp3播放器设计!
- 富客户端语言Curl介绍
- How to validate XML documents against Schematron rules
- 使用JDBC和Hibernate来写入Blob型数据到Oracle中
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功