1 / 87
文档名称:

PA8000PLC中文手册.doc

格式:doc   大小:464KB   页数:87页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

PA8000PLC中文手册.doc

上传人:beny00011 2022/6/19 文件大小:464 KB

下载得到文件列表

PA8000PLC中文手册.doc

文档介绍

文档介绍:编号:
时间:2021年x月x日
书山有路勤为径,学海无涯苦作舟
页码:
word
第一章 PLC编程人员参考概述
。函数定义的以关键字FUNCTION开始,以END_FUNCTION 结尾。Example in IL of a function that takes three input variables and returns the product of the first two divided by the third:
Image : Function
{bmc }
x Example of a function in IL
函数没有任何的内部条件,就是说当用一样的输入变量时就会得出一样的结果(输出)。
x Examples for calling up the function described above
Examples for calling up the function described above:
in ST:
Result := Fct(7, 2, 4);
程序(Program)
程序是一种程序结构单元,在运行过程中返回一定数量的值。程序在整个工程中都可以被识别。
编号:
时间:2021年x月x日
书山有路勤为径,学海无涯苦作舟
页码:
word
{bmc }
x Example of a program
程序能够被调用,但不允许(yǔnxǔ)在函数中调用程序。如果在程序结构单元中调用程序时程序的返回值有变化,这些变化将保持到下一次程序调用,即使程序程序是从其它程序结构单元调用的。
程序(chéngxù)由起始关键字PROGRAM开始(kāishǐ),END_PROGRAM完毕(wánbì)。.
x Examples of calls of the program described above
in ST:
PRGExample;
Res := ;
If the variable PAR from the program PRGexample is initialized by a main program with 0, and then one after the other programs are called with above named program calls, then the RES result in the programs will have the values 1, 2, and 3. If one exchanges the sequence of the calls, then the values of the given result parameters also change in a corresponding fashion.
PLC_PRG
PLC_PRG 是一个特殊的预先定义(dìngyì)的程序结构单元,任何工程都必须含有这个特殊的程序。每次循环的过程中调用一次PLC_PRG 。
在新工程建立之后第一次执行"Project" "Object Add"命令时,程序结构单元对话框中的初始输入项就是名为PLC_PRG的程序类型。
注意:不要删除或者重命名PLC_PRG
编号:
时间:2021年x月x日
书山有路勤为径,学海无涯苦作舟
页码:
word
Resources
设置和组织工程所需的资源:
·全局变量 Global Variables
·PLC设置(shèzhì) PLC Configuration
·任务(rèn wu)配置 Task Configuration
·采样(cǎi yànɡ)轨迹 Sampling Trace
·观察(guānchá)和接收管理器Watch and Receipt Manager
库函数(Libraries)
库函数""是一个(yī ɡè)标准的函数库,可供程序进展调用。
第三章 结构文本格式编程语言
在此手册中编程语言以 结构文本编程指令为例,其它的指令格式不作详细介绍。
结构文本编程指令(StructuredText)包括了一系列的编程语句,如条件语句
("IF..THEN..ELSE"),