没有合适的资源?快使用搜索试试~ 我知道了~
首页FANUC R30iA|R30iB KAREL编程手册
"这是一本关于发那科(FANUC)机器人KAREL编程的英文参考手册,适用于R-30iA和R-30iB控制器,版本为7.50及以上。手册由FANUC Robotics America Corporation出版,并包含版权信息,仅供客户使用。手册中的描述和规格反映了手册批准时的状态,FANUC Robotics保留随时停产型号或更改规格和设计的权利,而不事先通知或承担责任。手册提供了KAREL语言的详细描述、规格、图纸、电路图和材料清单等信息。"
**KAREL编程**
KAREL是一种专为FANUC机器人设计的编程语言,它结合了面向过程和面向对象的特性,使用户能够更直观地控制机器人的动作和逻辑。KAREL编程通常用于编写复杂任务,如路径规划、物体识别和处理、以及与工厂自动化系统的集成。
**FANUC R-30iA和R-30iB控制器**
FANUC的R-30iA和R-30iB控制器是工业机器人领域的先进控制系统,它们支持多种功能,包括精确的运动控制、多轴同步、实时通信和故障诊断。这些控制器可以处理复杂的任务,如点对点运动、连续轨迹控制和离线编程。手册将帮助用户了解如何使用KAREL语言与这些控制器进行交互,以实现高效和灵活的机器人自动化。
**主要内容**
手册的内容可能涵盖以下几个方面:
1. **KAREL语法基础**:介绍KAREL的语法规则,包括变量声明、数据类型、流程控制结构(如条件语句和循环)、函数和过程。
2. **I/O操作**:讲解如何使用KAREL控制和读取机器人控制器的输入/输出信号,与其他设备通信。
3. **机器人运动控制**:详细阐述如何用KAREL编程实现精确的关节运动、线性运动和圆周运动。
4. **程序结构与调试**:指导如何组织KAREL程序,以及如何使用控制器提供的工具进行调试和错误排查。
5. **任务与子程序**:解释如何定义和调用任务及子程序,以实现模块化编程。
6. **系统变量与定时器**:介绍系统变量的使用,以及如何设置和使用定时器进行延时操作。
7. **错误处理**:讲解如何在KAREL程序中处理错误和异常,确保程序的稳定运行。
8. **实例与应用**:提供实际的编程示例,展示KAREL在各种应用场景中的使用方法。
9. **系统集成**:指导如何将KAREL程序与工厂的PLC、传感器和其他自动化设备集成。
通过学习这本手册,用户不仅可以掌握KAREL编程的基本技巧,还能深入了解FANUC R-30iA和R-30iB控制器的功能和潜力,从而更好地利用这些先进的机器人技术来提高生产效率和自动化水平。
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-08-24 上传
2020-06-03 上传
216 浏览量
2022-01-10 上传
2021-05-02 上传
2021-03-04 上传
wzx86
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- MATLAB新功能:Multi-frame ViewRGB制作彩色图阴影
- XKCD Substitutions 3-crx插件:创新的网页文字替换工具
- Python实现8位等离子效果开源项目plasma.py解读
- 维护商店移动应用:基于PhoneGap的移动API应用
- Laravel-Admin的Redis Manager扩展使用教程
- Jekyll代理主题使用指南及文件结构解析
- cPanel中PHP多版本插件的安装与配置指南
- 深入探讨React和Typescript在Alias kopio游戏中的应用
- node.js OSC服务器实现:Gibber消息转换技术解析
- 体验最新升级版的mdbootstrap pro 6.1.0组件库
- 超市盘点过机系统实现与delphi应用
- Boogle: 探索 Python 编程的 Boggle 仿制品
- C++实现的Physics2D简易2D物理模拟
- 傅里叶级数在分数阶微分积分计算中的应用与实现
- Windows Phone与PhoneGap应用隔离存储文件访问方法
- iso8601-interval-recurrence:掌握ISO8601日期范围与重复间隔检查
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功