没有合适的资源?快使用搜索试试~ 我知道了~
首页FANUC KAREL编程手册 V7.5:R-30iA/B 控制器指南
FANUC KAREL编程手册 V7.5:R-30iA/B 控制器指南
需积分: 50 21 下载量 30 浏览量
更新于2024-07-15
收藏 9.38MB PDF 举报
"FANUC KAREL manual V7.5 编程手册是FANUC Robotics America Corporation针对R-30iA和R-30iB控制器的KAREL编程语言编写的参考指南,适用于版本7.50及以上。手册版权属于FANUC Robotics America Corporation,提供给客户仅供个人使用,未经书面许可,不得用于其他用途。手册内容可能随产品更新而变化,FANUC Robotics保留随时停止模型供应或更改规格设计而不承担任何义务的权利。"
**FANUC KAREL编程语言**
FANUC KAREL是一种专为FANUC机器人控制系统设计的编程语言,它允许用户编写控制机器人运动、处理I/O、逻辑控制和任务自动化等复杂功能的程序。KAREL的语法结构类似于PASCAL,但加入了机器人特定的指令,使得它在机器人编程中更具灵活性和实用性。
**R-30iA和R-30iB控制器**
R-30iA和R-30iB是FANUC公司推出的两款先进的机器人控制器,它们在工业自动化领域广泛应用。R-30iA和R-J3iC在手册中被视为同等级别,尽管名称不同,但它们支持相同的KAREL编程语言。这些控制器提供了高效、精确的机器人运动控制,以及丰富的接口和通信选项,可用于各种制造环境中的焊接、装配、搬运等任务。
**手册内容**
本手册详细介绍了KAREL语言的语法、语句、函数和编程实践,包括:
1. **基本语法和数据类型**:涵盖KAREL的变量声明、常量定义、流程控制结构(如IF-THEN-ELSE、WHILE-DO、FOR循环)以及数据类型(如整型、浮点型、字符串等)。
2. **函数和过程**:详述了KAREL中的内置函数、用户自定义函数和过程的创建与调用。
3. **I/O操作**:解释了如何使用KAREL来读写数字和模拟输入/输出信号,以便于与其他设备交互。
4. **机器人运动控制**:涵盖了点到点运动、连续运动、关节速度控制等机器人运动编程方法。
5. **错误处理和调试**:提供了错误处理机制和调试技巧,帮助程序员定位和修复程序问题。
6. **实例和应用**:包含多个实际应用案例,以加深对KAREL编程的理解和应用。
**注意事项**
在使用手册时,读者应根据控制器的具体型号(R-30iA或R-J3iC)进行对应的操作说明。手册中的描述和规格可能会随着时间更新而发生变化,因此,用户在使用前应及时确认最新的技术信息。
**版本更新**
手册提到适用于版本7.50及更高版本,意味着随着软件升级,KAREL的功能和特性可能会有所增强或调整。用户应定期检查FANUC Robotics的官方更新,以确保程序的兼容性和最佳性能。
FANUC KAREL manual V7.5是学习和掌握FANUC机器人系统KAREL编程的关键参考资料,为机器人操作员和程序员提供了全面的技术指导。
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 MO TION_CTL Built-In Function
.................................................................................... A–221
A.14.4 MO UNT_DEV Built-In Pro cedure
................................................................................... A–221
A.14.5 MO VE_FILE Built-In Procedure
...................................................................................... A–222
A.14.6 MSG_CONNECT Bu ilt -I n Procedure
............................................................................... A–223
A.14.7 MSG_DISCO Bu ilt -I n Procedure
..................................................................................... A–225
A.14.8 MSG_PING
................................................................................................................. A–225
A.15 - N - K AREL 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 Fun ction
........................................................................................ 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 %NOPAU SE Translator Directive
.................................................................................... A–231
A.15.9 %NOPAUSESHFT Translator D irective
............................................................................ A–231
A.16 - O - K AREL 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 LANGUAG E DESCRIPTION
...................................................................... A–236
A.17.1 PATH D ata Type
........................................................................................................... A–236
A.17.2 PATH_LEN Built-In Fun ction
.......................................................................................... A–238
A.17.3 PAUSE A ction
.............................................................................................................. 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-I n 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 A ction
.............................................................................................................. A–244
A.17.11 Port_Id Con dition
.......................................................................................................... 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 Pro cedure
........................................................................................ A–250
A.17.17 POST_ERR_L Bu ilt-In Procedure
...................................................................................... A–251
A.17.18 POST_SEM A Built-In Procedure
..................................................................................... A–253
A.17.19 PRINT_FILE Built-In Procedure
...................................................................................... A–253
A.17.20 %P RIO R ITY Translator Directive
.................................................................................... A–254
A.17.21 PROG_BACKUP Built-In Pro cedure
................................................................................ 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 S tatem ent ......................................................................................................... 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 - K AREL LANGUAGE DESCRIPTION
...................................................................... A–269
A.18.1 QUEUE_TYPE Data Type
.............................................................................................. A–269
A.19 - R - K AREL 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 REMO VE_DICT Built-In Procedure
................................................................................. A–281
A.19.10 RENAME_FILE Built-In Procedure
................................................................................. A–282
A.19.11 RENAME_VAR Bu ilt-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 Bu ilt-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 LANGUAG E 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 B uilt-In Procedure
................................................................................. A–295
A.20.8 SEND_EVENTPC B uilt-In Pro cedure
............................................................................... 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_R EG Built-In Procedure
................................................................................ A–300
A.20.12 SET_EPO S_ 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_JPO S_ REG Built-In Procedure
................................................................................. A–304
A.20.17 SET_JPO S_ TPE Built-In Procedure
................................................................................. A–305
A.20.18 SET_LANG Built-In Procedure
....................................................................................... A–306
A.20.19 SET_PERCH Built-In P ro cedure
...................................................................................... A–307
A.20.20 SET_PORT_ASG Built-In Procedure
................................................................................ A–308
A.20.21 SET_PORT_ATR Built-In Fun ctio n
.................................................................................. A–309
A.20.22 SET_PO RT_CMT Built-In Procedure
............................................................................... A–311
A.20.23 SET_PO RT_MOD Built-In Procedure
............................................................................... A–312
A.20.24 SET_PORT_SIM Bu ilt-In Procedure
................................................................................. A–313
A.20.25 SET_PO RT_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_PR EG_CMT Built-In-Procedure
............................................................................... A–317
A.20.29 SET_REAL_REG Built-In Procedure
............................................................................... A–317
A.20.30 SET_REG_C M T Built-In-Procedure
................................................................................. A–317
A.20.31 SET_SREG_CMT Bu ilt-in Procedure
................................................................................. A–318
A.20.32 SET_STR_REG Bu ilt-in Procedure
.................................................................................... A–319
A.20.33 SET_TIME Built-In Procedure
........................................................................................ A–319
A.20.34 SET_TPE_C M T 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 _NA ME Built-In Procedure
............................................................................... A–323
A.20.38 SET_VAR Built-In Procedure
.......................................................................................... A–324
A.20.39 %SHADOWVA RS 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 A ction
....................................................................................... A–329
A.20.44 SIN Built-In Function
.................................................................................................... A–329
A.20.45 SQ RT Built-In Function
................................................................................................. A–330
A.20.46 %S TACKSIZE 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 ST R_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 Directiv e
.................................................................................. A–337
A.21.4 TRANSLATE Built-In Procedure
..................................................................................... A–337
A.21.5 TRUNC Built-In Function
.............................................................................................. A–339
A.22 - U - K AREL LANGUAGE DESCRIPTION
...................................................................... A–340
A.22.1 UNHOLD A ction
.......................................................................................................... A–340
A.22.2 UNHOLD Statement
...................................................................................................... A–340
A.22.3 UNINIT Built-In Function
.............................................................................................. A–341
A.22.4 %UNINITVARS Tran sla tor 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 - K AREL 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 P rocedure
................................................................... 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 Procedu re
.................................................................... 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 Proced ur e
.......................................................................... A–353
A.23.9 V_START_VTRK iRVision B ui lt- 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 Proced ure
..................................................................... A–363
A.24 - W - KAREL LANGU AGE 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 WR ITE_DICT Built-In Procedure
.................................................................................... A–367
A.24.7 WR ITE_DICT_V Built-In Procedure
................................................................................ A–368
A.25 - X - K AREL 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 X M L_SETVA R Built-In Procedure
................................................................................... A–373
A.25.6 XYZWPR Data Type
..................................................................................................... A–374
A.25.7 XYZWPREXT Data Type
............................................................................................... A–375
A.26 - Y - K AREL LANGUAGE DESCRIPTION
...................................................................... A–375
A.27 - Z - KAREL LANGUAGE DESCRIPTION
...................................................................... A–375
Appendix B KAREL EXAMPLE PROGRAMS
................................................................................ B–1
B.1 SETTING UP DIGITAL OU TPUT 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 STA NDA RD ROUTINES
................................................................................................. B–31
B.5 USING REGISTER BUILT-INS
........................................................................................ B–33
B.6 PATH VARIABLES AN D CONDITION HANDLERS PRO GRAM
......................................... B–38
B.7 LISTING FILES AND PROGRAMS AND MANIPULATING STRINGS
................................. B–44
B.8 GENERATING AND MOVING ALONG A H EXAG ON PATH
.............................................. B–49
B.9 USING THE FILE AND DEVICE B UILT-INS
..................................................................... B–54
B.10 USING DY NAMIC DISPLAY BUILT-IN S
.......................................................................... B–58
B.11 MANIPULATING VALUES OF DYNAMICALLY DISPLAYED VARIABLES
......................... B–68
B.12 DISPLAY ING A LIST FROM A DICTIONARY FILE
.......................................................... B–70
B.12.1 Di ctionary Files
.............................................................................................................. B–80
B.13 USING THE DISCTRL_ALPHA BUILT-IN
........................................................................ B–81
B.13.1 Di ctionary Files
.............................................................................................................. B–85
B.14 APPLYING O FFSETS TO A COPIED TEACH PENDANT PRO GRAM
.................................. B–85
Appendix C KCL COMMAND ALPHA BETIC AL 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 B REAK CONDITION command
............................................................................. C–8
C.7 CLEAR B REAK 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 com m and
...................................................................................................... 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 CON DITION command
..................................................................................... C–15
C.22 DISMOUNT command
..................................................................................................... C–15
C.23 EDIT comm and
.............................................................................................................. C–16
C.24 ENABLE B REAK PROGRAM
.......................................................................................... C–16
C.25 ENABLE C OND ITIO N 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 co mm and
............................................................................................................ C–25
C.44 PURGE command
........................................................................................................... C–26
C.45 PRINT command
............................................................................................................ C–26
xviii
剩余911页未读,继续阅读
2020-04-23 上传
2023-09-07 上传
2024-09-08 上传
2023-05-09 上传
2024-10-28 上传
2024-09-08 上传
2024-10-28 上传
非一般
- 粉丝: 3
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 高清艺术文字图标资源,PNG和ICO格式免费下载
- mui框架HTML5应用界面组件使用示例教程
- Vue.js开发利器:chrome-vue-devtools插件解析
- 掌握ElectronBrowserJS:打造跨平台电子应用
- 前端导师教程:构建与部署社交证明页面
- Java多线程与线程安全在断点续传中的实现
- 免Root一键卸载安卓预装应用教程
- 易语言实现高级表格滚动条完美控制技巧
- 超声波测距尺的源码实现
- 数据可视化与交互:构建易用的数据界面
- 实现Discourse外聘回复自动标记的简易插件
- 链表的头插法与尾插法实现及长度计算
- Playwright与Typescript及Mocha集成:自动化UI测试实践指南
- 128x128像素线性工具图标下载集合
- 易语言安装包程序增强版:智能导入与重复库过滤
- 利用AJAX与Spotify API在Google地图中探索世界音乐排行榜
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功