计算机语言中call,雅马哈编程语言CALL的作用
2010-09-05 14:42
call的解释怎么写的,贴上来啊。
2010-09-05 20:06
8-4-8 CALL
Function:
Format:
Example:
Explanation:
Calls and executes another program.
CALL
CALL
,
5, 2
Other:
8
Calls program 5 and executes it twice. Program execution then proceeds
to the next step.
When repeating the same operation a number of times, the CALL state-
ment is used as needed to call and execute the subroutine defined as a
separate program.
(1 ) Program number
The program number is a number used to identify the 100 individual
programs from 0 to 99.
(2) Number of times
This is the number of times that the program is to be repeated. This
can be specified from 1 to 255.
• The nesting level is 6.
• When the end of the program initiated by the CALL statement is de-
tected, program execution advances to the step following the CALL
statement in the main program.
• An error occurs and program execution stops if the program being
executed is called by the CALL statement.
• Even when the program number is changed by the CALL statement,
resetting it will return to the original program number when program
execution begins.
• An error "stack overflow" might occur if a jump is made to another
program by the JMP or JMPF statement in a program called as a sub-
routine by the CALL statement.
2010-09-05 21:04
例题的程序也贴出来看看吧。
2010-09-05 22:00
Program
[NO0]
001:MAT
002:MAT
003:MAT
004:CSEL
005:C
006:CSEL
007:C
008:CSEL
009:C
010:L
011:MOVA
012:CALL
013:CALL
014:JMPB
015:JMPB
016:JMPB
017:JMP
018:L
019:CALL
020:JMP
021:L
022:CALL
023:JMP
024:L
025:CALL
026:JMP
3,
3,
4,
0
1
1
1
2
1
0
0,
3,
4,
4,
0
1
2
100
10, 1
5,
1,
2,
3,
0,
1
1,
0,
2
2,
0,
3
3,
0,
1
1,
2,
3,
0
1
0
1
0
1
0
1
1
1
Comment
<>
; Defines 3劒3 matrix (for workpiece A)
; Defines 3劒4 matrix (for workpiece B)
; Defines 4劒4 matrix (for workpiece C)
; Sets array element of counter array variable C to 0
; Sets counter array variable C[0] to 1
; Sets array element of counter array variable C to 1
; Sets counter array variable C[1] to 1
; Sets array element of counter array variable C to 2
; Sets counter array variable C[2] to 1
; Label definition
; Moves to feed point
; Waits for workpiece and calls workpiece identification routine
; PICK routine call
; Jumps to L1 when DI1=1 (workpiece A)
; Jumps to L2 when DI2=1 (workpiece B)
; Jumps to L3 when DI3=1 (workpiece C)
; Jumps to L0
; Label definition
; Calls subroutine NO1
; Jumps to L0
; Label definition
; Calls subroutine NO2
; Jumps to L0
; Label definition
; Calls subroutine NO3
; Jumps to L0
2010-09-05 22:22
001:MAT 6 4 0
002:MAT 3 4 1
003:MAT 3 4 2
004:C 1
005:D 1
006:L 0
007:MSEL 0
008:MOVM C 100
009:CALL 1 1
010:MSEL 1
011:MOVM D 100
012:CALL 2 1
013:JMPD 1 12
014:C+
015:D+
016:JMP 0 0
017:L 1
018:C+
019:D 1
020:L 2
021:MSEL 0
022:MOVM C 100
023:CALL 1 1
024:MSEL 2
025:MOVM D 100
026:CALL 2 1
027:JMPD 3 12
028:C+
029:D+
030:JMP 2 0
031:L 3
2010-09-05 22:36
看上去确实应该有子程序10和子程序5。前者用于判断工件是否到位,后者用来指挥机械手捡起工件。
2010-09-05 23:10
谢谢您的回答 我的QQ905083847 您方便的时候 跟您学学
计算机语言中call,雅马哈编程语言CALL的作用相关推荐
- c语言中{的作用,C语言中Static和Const关键字的作用
C语言中Static和Const关键字的作用 程序的局部变量存在于(堆栈)中,全局变量存在于(静态区 )中,动态申请数据存在于(堆)中.那么关于C语言中Static和Const关键字的作用,你了解多少 ...
- c语言staticint的作用,c语言中static是什么意思?作用是什么
c语言中static是什么意思?作用是什么 发布时间:2020-04-30 10:07:02 来源:亿速云 阅读:290 作者:小新 今天小编给大家分享的是c语言中static是什么意思?作用是什么, ...
- 简述C语言中.h文件和.c文件作用和区别
简述C语言中.h文件和.c文件作用和区别 在c语言学习过程中,对.h文件和.c文件不甚了解,参考其他资料后对它进行简要分析: .h文件和.c文件作用 使用.h文件和.c文件的原因 .h文件和.c文件作 ...
- python程序的运行速度在所有计算机语言中最快_【编程专题】实测四种编程语言的运算速度,最快的竟然是它!...
编程界经常会出现语言鄙视链,各说各的语言怎么怎么的好,那么到底哪种语言好呢?在这里蝈蝈就不发表任何言论了,接下来,我就是想测一下,不同的语言,做同一件事,在运算速度上的差别有多大,由此也可以间接的反应 ...
- 计算机语言中str是什么意思,python中str函数的作用是什么
python中str函数的作用是什么 发布时间:2021-04-27 16:12:24 来源:亿速云 阅读:56 作者:Leah python中str函数的作用是什么?相信很多没有经验的人对此束手无策 ...
- 在计算机语言中go是什么意思,作为编程语言,go有什么不同?
随着Go语言自身的逐渐优化及Go语言社区的不断发展壮大,go吸引着越来越多的人们来学习,那么go是怎么样?作为编程语言,go有什么不同? 1.面向接口编程;2.使用组合的编程;3.正交性:语言设计的正 ...
- 早期计算机语言中 所有的指令,plc常用的几种编程语言
原标题:plc常用的几种编程语言 大家都知道学习某种新知识,技巧跟方法是关键的.正如新手刚开始接触PLC,它的软件编程语言与一般计算机语言相比,具有明显的特点,它既不同于高级语言,也不同于一般的汇编语 ...
- 运算符在计算机语言中的作用,深入解析C++编程中范围解析运算符的作用及使用...
范围解析运算符 :: 用于标识和消除在不同范围内使用的标识符. 语法 :: identifier class-name :: identifier namespace :: identifier en ...
- 汇编中的la_汇编语言中,SP,BP ,SI,DI作用?
这个很简单: sp:表示栈顶指针,指向栈顶地址.与SS相配合使用.ss为栈段. bp:是基址指针,段地址默认在SS中.可以定位物理地址,比如:"mov ax,[bp+si+6]/mov ax ...
最新文章
- 一文深入了解 Redis 内存模型,Redis 的快是有原因的!
- 渗透测试与自动化安全测试工具比较
- 使用GitLab或者Github简单实用地将数据导入Colab的方法
- 理解class.forName()(good--字节码层面)
- sql 2005分区表
- CSS中em和px单位的区别(转)
- grep 和 sed:linux经常使用工具 amp; 基本正則表達式
- Spring Boot系列教程六:日志输出配置log4j2
- Ubuntu下启动/重启/停止apache服务器
- python3全栈开发-并发编程,多进程的基本操作
- spring boot RESTFul API拦截 以及Filter和interceptor 、Aspect区别
- 【JavaScript】callee 与 caller
- p6spy mysql8_P6Spy监控SQL语句及性能测试
- 微调电位器命名规则_电位器
- java怎么样实现反射_Rust如何实现反射?
- 微信小程序的详细登录(上)
- 我的Redis哨兵为什么不切换?
- 亿玛大数据揭秘“钻石网购密码” 最高单价超15万
- HTML5特效~3D立方体旋转
- AI医疗落地挑战:需求“实打实存在”,商业价值如何挖掘?