首页 欧姆龙PLC编程入门

欧姆龙PLC编程入门

举报
开通vip

欧姆龙PLC编程入门欧姆龙PLC编程入门 PLC初级培训教材 第一章 电气系统及PLC简介 一、设备电气系统结构简介 设备电气系统一般由以下几部分组成 电源 输入 执行 控制中心 机构 元件 1、 执行机构:执行工作命令 陶瓷行业中常见的执行机构有:电动机(普通、带刹车、带离合)、电磁阀(控制油路或气路的通闭完成机械动作)、伺服马达(控制调节油路、气路的开度大小)等。 2、 输入元件:从外部取入信息 陶瓷行业中常见的输入元件有:各类主令电器(开头、按扭)、行程开关(位置)、近接开关(反映铁件运动位置)、光电开关(运...

欧姆龙PLC编程入门
欧姆龙PLC编程入门 PLC初级培训教材 第一章 电气系统及PLC简介 一、设备电气系统结构简介 设备电气系统一般由以下几部分组成 电源 输入 执行 控制中心 机构 元件 1、 执行机构:执行工作命令 陶瓷行业中常见的执行机构有:电动机(普通、带刹车、带离合)、电磁阀(控制油路或气路的通闭完成机械动作)、伺服马达(控制调节油路、气路的开度大小)等。 2、 输入元件:从外部取入信息 陶瓷行业中常见的输入元件有:各类主令电器(开头、按扭)、行程开关(位置)、近接开关(反映铁件运动位置)、光电开关(运动物体的位置)、编码器(反映物体运动距离)、热电偶(温度)、粉位感应器粉料位置)等。 控制中心:记忆程序或信息、执行逻辑运算及判断 常见控制中心部件有各类PLC、继电器、接触器、热继电器、等。 电源向输入元件、控制中心提供控制电源;向执行机构提供电气动力。 二、简单的单台电动机电气系统 例:一台星——角启动的鼠笼式电动机的电气系统 1、一次线路图 2、二次线路图 A B C T Q JC1 R R JC1 SJ JC1 JCJ JCJ JCJ SJ JCY JCJ A JCY emotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun also refuge in Japanese, Zhu Xi forces became the puppet to attack key targets Eve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, some believe that the elves, concentrate a superior force, surely do, early transfer is the best way to reduce losses. Deputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, morale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance around the command personnel brought an urgent intelligence, town-wide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and old fled to the countryside in the town. Also hard to find a boat in the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low-level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire coming from the distance, reportedly is Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xi-Kai Wen Yongzhi, Director of 3、 上图看出,二次回路图中为实现延时控制,要使用一个时间继电器,而在 陶瓷行业中,星——角启动控制可说是一种非常简单的例子,若在陶瓷生产设备上全部采用继电器类来实现生产过程的自动控制,要使用许多的继电器、时间继电器等其它一些电气产品,而该类产品占空间大,且运行不是十分可靠。 三、PLC简介 1、 可编程序控制器 早期的PLC只能做些开关量的逻辑控制,因而叫PLC,但近年来,PLC采用微 处理器作为中央处理 单元 初级会计实务单元训练题天津单元检测卷六年级下册数学单元教学设计框架单元教学设计的基本步骤主题单元教学设计 ,不仅有逻辑控制功能,还有算术运算、模拟量处理甚至通信联网功能,正确应称为PC,但为了与个人计算机有所区别,仍称其为PLC。 2、 PLC的特点 1>、灵活、通用 控制功能改变,只要改变软件及少量的线路即可实现。 2>、可靠性高、抗干扰能力强 ? 硬件方面:采用微电子技术开关动作由无触点的半导体电路及大规模集成电路完成,CPU与输入输出之间,采用光 电隔离措施,隔离了它们之间电的联系。 软件方面:有自身的监控程序,对强干扰信号、欠电压等外界环境定期检查,有故障时,存现状态到存储器,并? 对其封闭以保护信息;监视定时器WTD,检查程序循环状态,超出循环时间时报警;对程序进行校验,程序有错误 进输出报警信息并停止执行。 3>、使用简单 采用自然语言——梯形图语言编程方式,编程容易,更改方便。输入输出接口可以与各种开关、传感器、继电器、接触器、电磁阀连接,接线简单。 4>、功能强、体积小 纵向——PLC不仅可能完成各种条件控制,还能完成模/数、数/模转换并进行数字运算,可以完成对模拟量的控制;横向——可以控制一台至几台设备,还可实现远距离控制;重量轻,体积小,便于安装。 3、 PLC控制思路 以前面的星——角起动二次回路为例 。 按控制等效电路可分为三个部分:输入部分、输出部分及控制部分。 1>、输入部分: 接收由各种主令电器发出的操作指令及由各种反映设备状态信息的输入元件传来的各种状态信息。PLC的一个输入点单独对应一个内部继电器,当输入点与输入用的公用脚COM接瓷行业中常见的执行机构有:电动机(普通、带刹车、带离合)、电磁阀(控制油路或气路的通闭完成机械动作)、伺服马达(控制调节油路、气路的开度大小)等。 4、 输入元件:从外部取入信息 wide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a2Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the river 陶瓷行业中常见的输入元件有:各类主令电器(开头、按扭)、行程开关(位置)、近接开关(反映铁件运动位置)、光电开关(运动物体的位置)、编码器(反映物体运动距离)、热电偶(温度)、粉位感应器粉料位置)等。 控制中心:记忆程序或信息、执行逻辑运算及判断 常见控制中心部件有各类PLC、继电器、接触器、热继电器、等。 电源向输入元件、控制中心提供控制电源;向执行机构提供电气动力。 二、简单的单台电动机电气系统 通时,该输入继电器得电。 2>、输出部分: 根据控制程序的执行结果直接驱动相应负载。在PLC内部设有输出继电器(可能是继电器形式,也可能是晶体管形式),每个继电器对应一个硬触点,当程序执行结果让输出继电器线圈通电时,该输出继电器的输出触点闭合,实现外部负载的控制运行。 3>、控制部分: 是由用户自行编制的控制程序。它存放在PLC的用户程序存储器中,系统运行时,PLC依次读取用户程序存储器中的程序内容,并对它们进行解释并执行,执行结果送输出端子,以使相应的外部负载得到控制。PLC的用户程序采用梯形图的编程方式,它由继电器控制电路演变而来,所不同的是,它内部的继电器并非实际的继电器,而是“软”继电器,由软继电器组成的控制线路并不是真正意义上的物理连接,而只是逻辑关系上的连接(软接线)。它的内部继电器线圈用 表示,常开点用 来表示,常闭点用 来表示。 内部可区分为六个部分即:输入、输出、存储器、CPU、电源及操作显示部分。详见P8~14页 从PLC ? 输入部分:负责采集外部指令及设备状态,以使CPU作出判断。见P11页图1.6及1.7。 ? 输出部分:将CPU的运算结果向外部输出,以完成过程动作。见P12页图1.8、1.9、及1.10 注:以上输入输出部分CPM1A产品均可扩展,最大可扩展到40点输入输出。 ?存储器:存储用户程序及信息。 ?CPU:执行各种逻辑及运算程序。 ?电源:向输入输出及CPU提供电源。 ?操作显示:向存储器输入用户程序或更改用户程序,显示程序运行状态。 从外型看见P31页图2.1,CPM1A主机与多数PLC主机一样,有电源端子(交流供电型还设有供外部输入设备用的服务电源)、功能接地端子(抗干扰、防电击,务必接地)、保护接地端子(防触电)、输入输出端子及其LED(当对应的输入或输出端子ON时,相应的输入输出LED灯亮,但当CPU异常、I/O总线发生异常时所有输入LED灭;当内存异常及系统异常(FALS)发生时,所有输入LED保持发生异常时的状态,即使输入状态发生变化,输入的LED状态也不改变)、PLC状态显示LED(POWER电源、RUN 运行 监视/编程 停止、ERROR/ALARM亮故障/闪警告、COMM外设通讯亮)、模拟设定电位器及扩展连接器。由用户自行编制的控制程序。它存放在PLC的用户程序存储器中,系统运行时,PLC依次读取用户程序存储器中的程序内容,并对它们进行解释并执行,执行结果送输出端子,以使相应的外部负载得到控制。PLC的用户程序采用梯形图 is Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a3Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battali 的编程方式,它由继电器控制电路演变而来,所不同的是,它内部的继电器并非实际的继电器,而是“软”继电器,由软继电器组成的控制线路并不是真正意义上的物理连接,而只是逻辑关系上的连接(软接线)。它的内部继电器线圈用 表示,常开点用 来表示,常闭点用 来表示。 从PLC内部可区分为六个部分即:输入、输出、存储器、CPU、电源及操作显示部分。详见P8~14页 ? 输入部分:负责采集外部指令及设备状态,以使CPU作出判断。见P11页 4、 PLC工作原理 见P15页PLC的循环扫描工作过程示意图 PLC上电 初始化 初始化 检查I/O单元连接、继电器区清0 定时器预置、识别扩展单元 硬件及用户程序内存检查 异常 检查结果 (1) 公共处理 设置异常继电器 正常 异常 灯亮 扫描周期监视时间预置 警告 灯闪 执行用户程序 (2)执行程序 异常或警告 到结束指令吗, NO YES 扫描周期固定值检查 已设置固定值? N (3)扫描周期计算处理 Y 可由用户双月通过DM6619Y设定,执行 等待至设定的扫描周期 到此时,需等待时间到方向下执行;一般扫描 周期为不定,由监控计算 算出扫描周期 输入扫描 输入继电器 (4)I/O刷新 输出继电器执行 -. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a4Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin 外设端口服务 (5)外设端口服务完成通信处理 第二章 CPM1A的性能规格和区域分配 一、 CPM1A的性能规格 控制方式 存储程序方式 输入输出控制方式 循环扫描方式和即时刷新方式并用 编程语言 梯形图方式 指令长度 1步/1指令、1~5步/1指令 指令种类 基本指令 14种 应用指令 79种 139条 处理速度 基本指令(LD) 0( 72,,~17.2μ 应用指令 MOV指令16.3μ, 程序容量 2048字 最大I/O点数 10点、20点、30点、40点 输入继电器 00000~00915 输出继电器 01000~01915 内部辅助继电器 512点:20000~23115(200CH~231CH) 特殊辅助继电器 384点:23200~25515(232CH~255CH) 暂存继电器TR 8点:TR0~8 保持继电器HR 320点:HR0000~1915(HR00~HR19CH) 辅助记忆继电器AR 256点:AR0000~1515(AR00~15CH) 链接继电器LR 256点:LR0000~1515(LR00~15CH) 128点:TIM/CNT000~127 定时器/计数器TIM/CNT 100 m,型:TIM000~127(号数与10 m,型共用) 10 m,型(高速定时器):TIM000~127 减法计数器、可逆计数器 数据存储器DM 可读/写 1002字(DM0000~0999、1022~1023) 故障履历存入22字(DM1000~1021) 区 只读 456字(DM6144~6599) PC系统设定区 56字(DM6600~6655) 输入中断 2点(10点)4点(20点及以上型) 间隔定时中断 1点(0.5~319968 m,、单触发模式或定时中断模式) 停电保持功能 保持继电器HR、、辅助记忆继电器AR、计数器CNT、 数据内存(DM)的内容保持 内存后备 快闪内存:用户程序、只读数据内存(无电池保持) d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a5Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low 超级电容:读/写数据内存、保持继电器、辅助记忆继电器、计数器(保持20天/环境 温度25?C) 自诊断功能 CPU异常(WDT)、内存检查、I/O总线检查 程序检查 无END指令、程序异常(运行时一直检查) 高速计数器 1点 单相5KHZAK 或两相2.5KHZ(线性计数器方式) 当前值248(L)、249(H)CH递 增模式:0~65535(16位)、增减模式:-32767~32767(16位) 脉冲输出 1点 20HZ~2KHZ(单相输出:占空比50%) 快速响应输入 与外部中断输入共用(最小输入脉冲宽度0.2 m,)(不经滤波) 输入时间常数 可设定1m,/2 m,/4 m,/8 m,16/16 m,/32 m,/64 m,/128 m,中的一个(输入滤 波时间常数设定) 模拟电位器 2点(0~200) 性能规格 二、 输入输出规格 ?输入单元000~009CH 输入阻抗:IN00000~00002为2KΩ,其它为4.7 KΩ 输入电压:DC24V+10%、-15% ON电压:最小 DC14.4V OFF电压:最大 DC5.0V ON及OFF响应时间(IN00000~00002作为高速计数器使用时除外):1~128m,以 下可选,缺省为8 m, IN00000~00002作为高速计数器使用时响应时间:200μ,左右(可满足高速计数频率单相5KHZ、两相2.5KHZ)的要求 IN00003~00006作为中断输入时响应时间为0.3 m,以下(从输入ON开始到执行中断处理子程序为止的时间) 输入单元是可以把外部输入设备的信号直接取到PLC内部的继电器,当CPU及输入 单元装入时,方有输入继电器的动作。 输入继电器可以作为程序中的接点或通道数据使用。 在程序中继电器号的顺序及常开/常闭接点的使用次数是没有限制的,但要注意:请 不要对输入继电器的号数使用输出命令。 ?输出单元010~019CH 断电器输出型:最大开关能力AC250V/2A DC24V/2A 公共端4A 最小开关能力DC5V、10mA 继电器寿命:电气寿命:阻性负载30万次 感性负载10万次 机械寿命:2000万次 ON响应时间:15mS以下 -command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a6Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol OFF响应时间:15 mS以下 晶体管输出型:最大开关能力:24VDC+10% -15% 300 mA 最小开关能力:10 mA ON响应时间:0.1 mS以下 OFF响应时间:1 mS以下 输出单元可以把PLC内部程序执行结果送到外部。 输出点在程序中,可以作为继电器线圈接点及通道数据使用:在程序中输出继电器的号数使用顺序、常开/常 闭接点的使用次数均没有限制。 在编程过程中注意不要对同一个输出继电器重复使用两次输出命令。 三、 CPM1A继电器地址的分配及继电器功能作用介绍 名称 点数 通道 继电器 功能 输入继电器 160点(10字) 000~009CH 00000~00915 能分配给外部输入输出端子的继电器(当输 入输出通道不使用的继电器号能作为内部辅输出继电器 160点(10字) 010~019CH 01000~01915 助继电器使用) 内部辅助继电器 512点(32字) 200~231CH 20000~23115 程序中能自由使用的继电器 特殊辅助继电器 384点(24字) 232~255CH 23200~25507 具有特定功能的继电器 暂存继电器 8点 TR0~7 用于在回路分叉点临时记忆的继电器, 保持继电器(HR) 320点(20字) HR00~19CH HR0000~1915 程序中能自由使用的继电器, 具有特定功能的继电器, 电源断时能记住辅助记忆继电器(AR) 256点(16字) AR00~15CH AR0000~1515 ON/OFF状态 1:1连接中作为输入输出使用的继电器(也可链接继电器(LR) 256点(16字) LR00~15CH LR0000~1515 作为内部辅助继电器使用) 定时器/计数器 128点 TIM/CNT000~127 定时器和计数器共用相同号 (TIM/CNT) 可读写 1002字 DM0000~0999 DM1022~1023 以字为单位(16位使用,电源断时数据保持. 数据 异常历史存放DM1000~1021不作为存放异常历史使用时, 22字 DM1000~1023 区 内存 可作为一般的DM自由使用。. (DM) 只读 456字 DM6144~6599 DM6144~6599、DM6600~6655不能在程序中写 入(可从外围设备设定) PC系统设置区 56字 DM6600~6655 ? 内部辅助继电器512点,200~231CH d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a7Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low 仅可在程序中作为继电器线圈、接点、通道数据使用的继电器,而不能作为输入输出继电器去直接取入外部信号或向外部输出,程序中使用的 顺序及常开/常闭点的使用次数无限制,电源切断或运行停止时复位。相当于在继电器控制回路中的中间继电器。 内部继电器在电源切断时、运行停止时复位。 ? 特殊辅助继电器384点,232~255CH 特殊辅助继电器只能当作具有特定功能的继电器接点使元是可以把外部输入设备的信号直接取到PLC内部的继电器, 当CPU及输入 单元装入时,方有输入继电器的动作。 输入继电器可以作为程 序中的接点或通道数据使用。 在程序中继电器号的顺序及常开/常闭接点的使用次数是没有限制的,但要注意:请 不要对输入继电器的号数使用输出命令。 ?输出单元010~019CH 断电器输出型:最大开关能力AC250V/2A DC24V/2A 公共端4A 最小开关能力DC5V、10mA 继电器寿命:电气寿命:阻性负载30万次 感性负载10万次 机械寿命:20用。 特殊辅助继电器功能 通道号 继电器号 功能 232~235 宏指令输入区,不使用宏指令时,可作为内部辅助继电器使用 236~239 宏指令输出区,不使用宏指令时,可作为内部辅助继电器使用 240 中断0的计数器设定值 输入中断使用计数器模式时的设定值(0000~FFFF)。输入中 断不使用计数器模式时,可作为内部辅助继电器使用 241 中断1的计数器设定值 242 中断2的计数器设定值 243 中断3的计数器设定值 244 中断0的计数器当前值-1 输入中断使用计数器模式时的计数器当前值-1 (0000~FFFF)。输入中断不使用计数器模式时,可作为内部245 中断1的计数器当前值-1 辅助继电器使用 246 中断2的计数器当前值-1 247 中断3的计数器当前值-1 248~249 高速计数器的当前值区域,不使用高速计数器时,可作为内部辅助继电器使用 250 模拟电位器0设定值存入区域 存入值0000~0200(BCD码) 251 模拟电位器1设定值存入区域 高速计数器复位标志(软件设置复位)ON时(由复位设置方式<两种——?25200软件复00 位;? 25200+Z相信号复位>决定),复位高速计数器 252 01~07 不可使用 8Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a 08 外设通信口复位时为ON(使用总线无效),之后自动回到OFF状态 09 不可使用 PC系统设定区域(DM6600~6655)初始化的时候为ON,之后自动回到OFF状态(仅编程10 模式时有效) 强制置位/复位的保持标志。OFF:编程模式与监控模式切换时,解除强制置位/复位的接11 点;ON:编程模式与监控模式切换时,保持强制置位/复位的接点 I/O保持标志。 12 OFF:运行开始/停止时,输入/输出、内部辅助继电器、链接继电器的状态被复位; ON:运行开始/停止时,输入/输出、内部辅助继电器、链接继电器的状态被保持 13 不可使用 14 故障履历复位时为ON,之后自动回到OFF 15 不可使用 故障码存储区,故障发生时将故障码存入。故障报警(FAL/FALS)指令执行时,FAL号(故00~07 障码)被存储;FAL00指令执行时,该区复位(成为00) 08 不可使用 09 扫描周期超过100ms时为ON 253 10~12 不可使用 13 常ON 14 常OFF 15 运行开始时1个扫描周期内为ON 00 1分时钟脉冲(30秒ON/30秒OFF) 01 0(02秒时钟脉冲(0.01秒ON/0.01秒OFF) 02 负数标志 254 03~05 不可使用 06 微分监视完了标志(微分监视完了时为ON) 07 STEP指令中一个行程开始时,仅一个扫描周期为ON 08~15 不可使用 00 0(1秒时钟脉冲(0.05ON/0.05秒OFF) 01 0(2秒时钟脉冲(0.1秒ON/0.1秒OFF) 02 1秒时钟脉冲(0.5秒ON/0.5秒OFF) 03 出错标志(执行指令时,出错发生时为ON) 255 04 进位标志(执行指令时结果有进位或借位发生时为ON) 05 >大于标志(比较结果大于时为ON) 06 =等于标志(比较结果等于时为ON): 07 <小于标志(比较结果小于时为ON) 08~15 不可使用 ? 辅助记忆继电器AR00~15CH 256点 用于PC的工作状态信息 通道号 继电器功能 号 d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a9Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low AR00, 不可使用 AR01 AR02 00,07 不可使用 08,11 扩展单元连接的台数 12,15 不可使用 AR03, 不可使用 AR07 AR08 00,07 不可使用 08,11 外围设备通信出错码(BCD码):0——正常终了,1——奇偶出错,2——格式出错,3——溢 出出错 12 外围设备通信异常时为ON 13,15 不可使用 AR09 不可使用 AR10 00,15 电源断电发生的次数(BCD码),复位时用外围设备写入0000 AR11 00 1号比较条件满足时为ON 高速计数器进行区域比较时,各编号的条件符 合时成为ON的继电器 01 2号比较条件满足时为ON 02 3号比较条件满足时为ON 03 4号比较条件满足时为ON 04 5号比较条件满足时为ON 05 6号比较条件满足时为ON 06 7号比较条件满足时为ON 07 8号比较条件满足时为ON 08,14 不可使用 15 脉冲输出状态。0——停止中,1——输入中 AR12 不可使用 AR13 00 DM6600,6614(电源ON时读出的PC系统设定区域)中有异常时为ON 01 DM6615,6644(运行开始时读出的PC系统设定区域)中有异常时为ON 02 DM6645,6655(经常读出的PC系统设定区域)中有异常时为ON 03,04 不可使用 05 与DM6619中设定的扫描周期比实际的扫描周期大的时候为ON 06,07 不可使用 08 在用户存储器(程序区域)范围以外存在有继电器区域时为ON 09 高速存储器发生异常的时候为ON 10 固定(只读)DM区域(DM6144,6599)发生累加和校验出错时为ON 11 PC系统设定区域(DM6600,6614)发生累加和较验出错时为ON 12 在用户存储器(程序区)发生累加和校验出错、执行不正确指令时为ON 13,15 不可使用 AR14 00,15 扫描周期最大值(BCD码4位)(X0.1ms)。运行开始以后存入的最大扫描周期;运行停止时不 复位,但运行开始时被复位 AR15 00,15 扫描周期当前值(BCD码4位)(X0。1 ms)。运行中最新的扫描周期被存入;运行停止时不复 位,但运行开始时被复位 ? 暂存继电器8点TR0,7 level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a10Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy 它是复杂的梯形图回路中不能用助记符描述的时候,用于对回路的分叉点的ON/OFF状态 作暂存的继电器,仅在用助记符编程时使用。用梯形图编程时,在内部由于能自动处理,暂存继电器没有使用的必要. 程序中暂存继电器使用顺序及使用次数无限制,但在同一段程序中,TR继电器号不能重复 使用,否则会造成程序出错。 使用方法:在梯形图的最末一个分支点以后有两个以上的与接点串接的输出,或在一个与 接点串接的输出后面,还有一个没有通过接点的直接输出时,在分支点上要使用TR暂存继电器,只能用LD及OUT指令。 ? 保持继电器HR00~19CH 256点 在电源切断时或在编程设备向编程状态转换时,其仍保持原有的ON/OFF状态使用方法与 内部辅助继电器一样。一般可用KEEP(FUN11)指令;也可用OUT 指令,但切记使用OUT指令时要有自保回路。 保持继电器的复位信号要尽量使用常开点,否则可能在复电时复位该HR继电器。 ?链接继电器LR00~15CH 256点 链接继电器用于安装了PC链接单元,与其它PC进行1:1链接数据交换(输入输出)。CPM1A可实现CPM1A族、及同CQM1、CPM1、C200HS作1:1连接,一方作主动方,另一方作从动方。在CPM1A中使用1:1上位链接功能时,能够用外围设备在主动局和从动局的系统设定区域(DM6650)中设定。 例:在主站CPM1A与从站CPM1A之间,互相将输入000CH的状态反映到对方的内部辅助继电器200CH RS—232C电缆 CPM1A CPM1A CPU单元 CPU单元 主站侧程序 从站侧程序 MOV(21) MOV(21) 000 000 LR00 LR08 MOV(21) MOV(21) LR08 LR00 200 200 LR00CH LR00CH 000CH 写入 写入区域 读出区域 读出 200CH LR07CH LR07CH LR08CH LR08CH 200CH 读出 读出区域 写入区域 写入 000CH LR15CH LR15CH n. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a11Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion con 主站侧 从站侧 ? 定时器/计数器(TIM/CNT) 定时器/计数器号,可以在定时(TIM)、计数(CNT)、高速计数(TIMH)、可逆计数(CNTR) 指令中使用,但这些指令不能使用相同的号数,例如:同一个程序中不可以同时有CNT010及TIM010,若重复使用时,程序检查中,会有“线圈重复使用”的显示,如执行程序,则会产生动作异常。 当使用互锁IL(02)和解锁ILC(03)指令时,若IL(02)至ILC(03)指令之间有定时器(包括高速定时器)或计数器时,定时器根据本指令前面的条件OFF时复位,而计数器保持原有的数据。 定时器/计数器的现在值,也可作为通道数据使用。 若使用中断处理的定时器用高速定时器时,请指定TIM000~001。 ? 数据存储器DM0000,1023(可读/写1024字) DM6144,6655(只读 512字)共1536个通道,用于记忆一个字(16bit) 为单位的数据,它只能以字为单位使用。它不是继电器,因而不能做为继电器线圈和接点使用,可作为数据的输入输 出区使用;当电源切断时,DM仍保持原有数据;可以间接指定使用(*DM),这时,DM的内容是要寻找的DM的地址。 数据存储器分为可读/写DM及只读DM,只读DM可以用编程器写入,但不能在程序中写入。其中DM6600,6614仅在编程模式时设定,而DM6615,6655则可在编程模式及监控模式时设定。 在可读写DM区域内,DM1000,1021这22个通道由DM6655的00,03bit指定可主要用于存放故障履历;在只读DM区域中DM6600,6655为系统设定区,用来设定各种系统参数。 DM系统设定区的具体功能 定 时通道号 bit 功 能 缺省值 读 出 00~07 电源ON时工作模式。00—编程,01—监控,02—运行 08~15 电源ON时 根据编程器的模式DM6600 工作模式设定。00—编程器的模式设定开关;01—电源断之前的设定开关 模式;02:用00~07 bit指定的模式 00~07 不可使用 电08~11 电源ON时IOM(内继)保持标志保持/非保持0— 非保持 源DM6601 设定 1— 保持 非保持 ON12~15 电源ON时S/R(特内继)保持标志保持/非 时 保持设定 00~03 0—用户程序存储器可写;1—用户程序存储器不可写(除DM6602) 可写(可修改) DM6602 04~07 0—编程器的信息显示用英文;1—编程器的信息显示用日文 英文 08~15 不可使用 DM6603~6614 不可使用 DM6615~6616 不可使用 运 -. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a12Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin 00~07 外围设备通信口服务时间的设定。对扫描周期而言,服务时间的行 比率可在00~99%之间(用BCD2桁)指定 开DM6617 无效 始08~15 外围设备通信口服务时间设定的有效/无效。00:无效(固定为 时 扫描周期的5%);01:有效(用00~07bit指定) 00~07 扫描监视时间的设定。设定值00~99(BCD),单位用08~15位设 定(设定为01~03时有效) DM6618 08~15 扫描监视有效/无效设定。 00:无效(固定120ms);01:单位时120 ms固定 间10 ms、有效;02:单位时间100 ms、有效;03:单位时间1s、 有效。监视时间=设定值X单位时间(最大99s) 扫描周期可变/固定的设定。0000—扫描周期可变设定;DM6619 扫描时间可变 0001~9999:扫描周期为固定时间(单位:ms) 00~03 00000~00002的输入时间常数设定 04~07 00003~00004的输入时间常数设定 DM6620 0:初始值(8ms) 08~11 00005~00006的输入时间常数设定 1:1 ms 12~15 00007~00008的输入时间常数设定 2:2 ms 00~07 001CH的输入时间常数设定 DM6621 3:4 ms 08~15 002CH的输入时间常数设定 4:8 ms 5:16 ms 00~07 003CH的输入时间常数设定 DM6622 6:32 ms 08~15 004CH的输入时间常数设定 0:初始值8 ms 7:64 ms 00~07 005CH的输入时间常数设定 DM6623 8:128 ms 08~15 006CH的输入时间常数设定 00~07 007CH的输入时间常数设定 DM6624 08~15 008CH的输入时间常数设定 00~07 009CH的输入时间常数设定 DM6625 08~15 不可使用 DM6626~6627 不可使用 00~03 输入号00003的中断输入设定 0:通常输入 1:中断输入 04~07 输入号00004的中断输入设定 DM6628 通常输入 2:快速脉冲输入 08~11 输入号00005的中断输入设定 12~15 输入号00006的中断输入设定 DM6629~6641 不可使用 00~03 高速计数器计数模式设定。4:加算模式;0:加减算模式 不使用高速计数器 DM6642 04~07 高速计数器的复位方式设定。0:Z相信号+软复位;1:软复位 08~15 高速计数器使用设定。00——不使用;01:使用 DM6643~6644 不可使用 DM6645~6649 不可使用 电 00~07 上位链接单元 外围设备通信口通信条件 标准 excel标准偏差excel标准偏差函数exl标准差函数国标检验抽样标准表免费下载红头文件格式标准下载 格式设定。 源 ON 00:标准设定(即:启动位1位;字长7位; 外围设备通信口设时DM6650 偶校验;停止位2位;波特率9600bps) 定为上位链接 01:个别设定(由DM6651设定) 常 其它:系统设定异常(AR1302为ON) 读 n. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a13Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion con 08~11 1:1链接 外围设备通信口1:1链接区域设定 出 (主动局) 0:LR00~15CH 12~15 全模式 外围设备通信口使用模式设定。 0— 上位链接;2—1:1链接从动局 2— 1:1链接主动局;4:NT链接 其它:系统设定异常(AR1302为ON) 00~07 上位链接 外围设备通信口波特率设定。00:1200 01:2400 02:4800 03:9600 04:19200 08~15 上位链接 外围设备通信口的帧格式设定 启动位 字长 停止位 奇偶校验 00: 1 7 1 偶校验 01: 1 7 1 奇校验 02: 1 7 1 无校验 03: 1 7 2 偶校验 DM6651 04: 1 7 2 奇校验 05: 1 7 2 无校验 06: 1 8 1 偶校验 07: 1 8 1 奇校验 08: 1 8 1 无校验 09: 1 8 2 偶校验 10: 1 8 2 奇校验 11: 1 8 2 无校验 其它:系统设定异常(AR1302为ON) 00~15 上位链接 外围设备通信的发送延时设定。 DM6652 设定值:0000~9999(BCD码)单位10ms 其它:系统设定异常(AR1302为ON) 00~07 上位链接 外围设备通信的上位LINK模式的机号设定。 设定值:00~31(BCD码) DM6653 其它:系统设定异常(AR1302为ON) 08~15 不可使用 DM6654 00~15 不可使用 00~03 故障履历存入法的设定(存入故障履历区域DM1000~1021) 0:超过10个 记录 混凝土 养护记录下载土方回填监理旁站记录免费下载集备记录下载集备记录下载集备记录下载 ,则移位存入 移位方式 1:存到10个记录为止(不移位) 其它:不存入 DM6655 04~07 不可使用 08~11 扫描周期超出检测。0——检测; 1——不检测 检测 12~15 不可使用 -. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a14Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin 第三章 CPM1A的基本指令 一、程序和指令的理解方法 1、程序的步的理解方法 OMRON的PLC程序中,每一条指令对应为一步,一条指令为1,4个字,依指令而异。 因为指令的字数不同,所以根据在程序中使用的指令不同,可编程的步数亦不同.例如:LD指令为一步,而运算指 令(以双字BCD码减法指令SUBL(55)为例)为4步指令 SUBL(55) S1+1、S1 S1 S2+1、S2 S2 — CY D CY D+1 D 2、通道数据的理解方法 0HR 0 2 0000 1HR 1 2 0001 2HR 0 2 0002 3HR 1 2 0003 4HR 0 2 0004 5HR 1 2 0005 6HR 0 2 0006 7HR 0 2 0007 8HR 1 2 0008 9HR 1 2 0009 1HR 0 2 -the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a15Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin 0 0010 在输入输出继电器、内部辅助继电器、保持继电器(HR)、辅助记忆继电器(AR)、链接继电1HR 0 2 1器(LR)以通道为单位使用时,以及作为计时器(TIM)、计数器(CNT)区的现在值,数据存储器(DM)0011 1HR 0 2区的内容表示用的通道数据,可有以16 bit的0和1表达方式及16进制4桁的表达方式。16 bit20012 的0和1表达方式及16进制4桁的表达方式的关系如下: LSB 1HR 1 2 3 例:HR00CH的内容 (1=ON 0=OFF) 0013 1HR 1 2LSB为最下位bit(00 bit) 40014 MSB为最上位bit(15 bit) 1HR 0 2 5?HR00CH的内容用16位bit表达方式表示时,如下 0015 示: 0 1 1 0 0 0 1 1 0 0 1 0 1 0 1 MSB LSB ?HR00CH的内容,若用16进制4位表达方式时,则 如下示: 632A 3、每次扫描执行型指令和输入微分型指令 CPM1A型机中,几乎所有的应用指令,都有每次 扫描执行型和输入微分型。下面以传送指令为例,说明其不同之处: ?每次扫描执行型----MOV(FUN21) 动作说明: 0000 MOV(21) 输入0000ON时,保持继电器 HR10 HR10CH的内容,每次扫描都向数据存储器DM0000中传送。 DM0000 当程序循环时间为80MS,输入0000 ON为2S时,则传送25次,在此期间,如果HR10CH 的内容是变化的,则DM0000中保持每次传送前的最终内容。 ?输入微分型-----@MOV(FUN21) 0000 MOV(21) 动作说明: HR10 仅在输入0000的上升沿(OFF—ON)时,执行一次把保持继电器HR10CH的内容传 DM0000 送到数据存储器DM0000中的操作。 编程器键入操作时,是接着在功能号FUN后,再输入指令代码21,最后按NOT键, 即已输入了传送微分指令。 5、 CPM1A的特殊功能 1>、模拟设定电位器功能 位于CPU面板左上角有两个模拟设定电位器,可以用来模拟设定定时器/计数器的设定值,区域范围为0~200(BCD), 经这两个电位器设定的值自动存入特殊辅助继电器250CH和251CH,可作为计时/计数器指令的设定值。 2>、输入时间常数设定功能 d fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a16Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing low 输入电路上有滤波器,可以减少外部干扰(振动、杂波等),输入滤波器的时间常数可以根据实际需要进行设置 为1/2/4/8/16/32/64/128ms之一。 3>、外部输入中断功能 10点型CPM1A有两个00003、00004输入点,10点以上型有00003~00006四个输入点可作为中断输入点使用,实现外部输入中断(模式有两种:即输入中断模式和计数器中断模式)详见中断控制指令。 4>、快速响应输入功能 PC采用循环扫描方式工作,输出滞后输入。如果用户要使用一些瞬间信号,可以采用快速响应输入端,使CPU可以接收到瞬间脉冲。10点型有00003、00004两点,10点以上型有00003~00006四点(与外部中断输入端子号相同,通过对系统设置区域DM6628的设置,可以将00003~00006定义为普通输入端0、外部中断输入端1或快速响应输入端2) 5>、间隔定时中断功能 间隔定时器一到定时时间,即转去执行中断子程序。有单次中断模式(设定的定时到仅产生一次中断)和重复中断模式(每隔设定的一定时间就产生一次中断)两种,详见中断控制指令中的间隔定时器中断指令。 6>、高速计数器功能 脉冲编码器所发出的A相、B相、Z相脉冲信号输入到00000~00002输入端,有单相递增输入(B相脉冲输入端不接)和相位差输入两种模式,它们与中断功能配合可以实现目标值一致比较控制和区域(范围)比较控制。 7>、脉冲输出功能 CPM1A的晶体管输出单元能产生一个20HZ~2KHZ的单相脉冲输出(占空比50%),输出点为01000、01001。有连续模式(由SPED指令设置输出脉冲频率为0停止脉冲输出或由动作模式控制INI指令控制脉冲输出停止)和独立模式(输出脉冲数目达到设定的脉冲数目时脉冲输出停止)两种输出模式。 输出脉冲的数目及脉冲频率分别由设置脉冲指令(PULS)及速度输出指令(SPED)设置,详见脉冲输出指令及高速计数器指令。 二、基本顺序输入指令: 指令 符号 助记符 操作数 功 能 操作数、相关标志 继电器号 LD LD 继电器表示逻辑起始 00000~01915 号 20000~25507 HR0000~1915 LD NOT LD NOT 继电器表示逻辑反相起始 AR0000~1515 号 LR0000~1515 TIM/CNT000~127 AND AND 继电器逻辑与操作 TR0~7(仅能使用于号 LD指令) AND NOT AND NOT 继电器逻辑与非操作 号 on conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a17Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xi OR OR 继电逻辑或操作 器号 OR NOT OR NOT 继电器逻辑或非操作 号 AND LD AND LD 和前面的条件与 OR LD OR LD 和前面的条件或 1、 与母线连接的接点,必须使用LD指令。 2、 接点串联连接时,使用AND指令;接点并联连接时,使用OR指令。 3、 程序中的常闭接点,使用NOT指令。 4、 程序块与程序块串接时使用(逻辑与)AND LD指令。在与前面程序块串联连接的下一程序块的起点使用第二次LD指令。 5、 程序块与程序块并联时使用(逻辑或)OR LD指令。在与前面程序块并联的下一程序块的起始接点处使用第二次LD指 令。 AND LD指令练习: OR LD指令练习: A例? A例? O例? O例? 指令 数据 指令 数据 指令 数据 指令 数据 LD 00000 LD 00000 LD 00000 LD 00000 OR NOT 00001 OR NOT 00001 AND NOT 00001 AND NOT 00001 LD NOT 00002 LD NOT 00002 LD NOT 00002 LD NOT 00002 OR 00003 OR 00003 AND NOT 00003 AND NOT 00003 AND LD LD 00004 OR LD LD 00004 LD 00004 OR 00005 LD 00004 AND 00005 OR 00005 AND LD AND 00005 OR LD AND LD AND LD OR LD OR LD OUT 01000 OUT 01000 OUT 01000 OUT 01000 AND LD指令,可以连续使用任意次,用第?方法 OR LD指令,可以连续使用任意次,用第?方法编 编程时,AND LD 的数目等于前面的LD及LD NOT指 程时,AND LD 的数目等于前面的LD及LD NOT指令的 令的数目减一;另外,用第?方法编程时AND LD前面 数目减一;另外,用第?方法编程时AND LD前面的LD 的LD及LD NOT的个数请勿超过8个,在9个以上时 及LD NOT的个数请勿超过8个,在9个以上时请采 请采用第?方法编程。 用第?方法编程。 ?、 输入输出继电器,内部辅助继电器,计时器等的接点的使用次数是没有限制的,对于维护等方面而言,最佳设 level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a18Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy 计莫过于节约接点的使用个数,把复杂的设计用简单、明快的电路构成。 ?、 在PLC程序中,信号的流向是由左向右的。 ?、 在串联、并联电路中对于构成串联的接点数,构成并联的接点数,没有限制。 三、顺序输出指令 FUN 指令 符号 助记符 操作数 功 能 操作数、相关标志 NO -- OUT OUT 继电器把逻辑运算结果用继电器输出 继电器号 号 00000~01915 OUT 20000~25215 -- OUT NOT 继电器号 把逻辑运算结果反相用继电器输出 NOT HR0000~1915 -- SET SET 继电器使指定接点ON AR0000~1515 号 LR0000~1515 -- RESET RSET 继电器使指定接点OFF TR0~7(仅能使用 号 于OUT指令) 11 KEEP KEEP(11) 继电器使保持继电器动作 号 13 上升沿微分 DIFU(13) 继电器在逻辑运算结果上升沿时继电器在 号 一个扫描周期内ON 14 下降沿微分 DIFD(14) 继电器在逻辑运算结果下降沿时继电器在 号 一个扫描周期内ON 说明:当输入继电器号00000~00915在实际中未被使用时,方可在基本输出指令中作为内部继电器使用。 特殊辅助继电器232CH~249CH只有当其不作为特殊辅助继电器使用时,方可作为内部继电器使用。 1、 输出继电器的使用 ?继电器的线圈,使用OUT指令。输出线圈不能直接与母线相连,确有此必要时,请把不用的内部辅助继电器的常闭 接点或者特殊辅助继电器25313(常ON接点)作为虚拟接点插入。 ?输出继电器的接点,除了输出驱动实际负载的信号之外,还可在电路上使用它的辅助接点,且这个接点的使用次数没有限制。 ?输出继电器的线圈的后面不能插入接点,接点必须在线圈前面插入。 ?输出线圈可以2个以上并联。 2、 TR0~7的使用方法: 00000 A 01000 00001 01001 -fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a19Kai Wen Yongzhi, Director of 00002 00003 01002 TR0 01003 在不使用互锁(IL—ILC)指令编程时,使用TR;在图一中因A点的ON/OFF状态与输出01000相同,故可在OUT01000后面,继续编入AND0001,OUT01001,而不必用TR;但在图二中,分支点处的状态与01000的状态不一致帮应先用TR暂存,如果把二改写成一,则可减少程序步数。 TR在有多个输入分支的电路中,仅用于记忆(OUT TR0~7)和再现(LD TR0~7)分支点的ON/OFF状态,与一般继电器接点不同之处在于不能用于AND、OR指令及附有NOT的指令。 例:在同一程序块内TR的继电器号不能重复使用,但可在其它程序块中使用。见下图。 00000 TR0 00001 TR1 00002 01000 00003 01001 00004 01002 00010 TR0 00011 TR1 00012 01100 00013 01101 00014 01102 00015 00100 01103 00101 01104 3、 保持KEEP(11)指令的使用 KEEP指令编程时,请按照置位输入、复位输入、继电器号的顺序来编 程。 ?KEEP指令当置位输入ON时,保持ON的状态;当复位输入ON时,为OFF状态。分置位输入与复位输入同时ON时,复位输入优先,此时,保持指令不接受置位输入,而保持原有的状态。 KEEP 置位输入 置位输入S 复位输入 KEEP输出 复位输入R -command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a20Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol 00000 00001 01000 00000 KEEP 01000 01000 00001 上图的区别在于,当该程序段位于IL—ILC之间时,在IL条件OFF时,左图使输出继电器01000 OFF;而右图使用KEEP指令的程序,输出继电器保持原有的状态。 ?KEEP指令若使用保持继电器,则即使在停电时,亦能记忆断电之前的状态。 外部异常输入00001 KEEP 外部复位输入00002 HR0000 HR0000 01000 外部异常指示输出 上图为一防掉电的异常显示的例子。 ?如果直接采用外部控制设备的常闭点作为KEEP指令的复位输入,可能会导致保持继电器不正常复位,请不要如此使用。 A L 输 KEEP 交流电源 入 HR0000 单 A 元 上图中,当AC电源断时,PLC主机的直流电源不能立刻OFF,此时会使HR0000不正常复位。 4、 上升沿微分指令DIFU/下降沿微分指令 上升沿微分指令DIFU(13):当输入信号的上升沿(由OFF ON)时,DIFU指令所 指定的继电器在一个扫描周期内ON;下降沿微分指令当输入信号的下降沿(由ON OFF)时,DIFD指令所指定的继电器在一个扫描周期内ON。 00000 DIFU(13) 20000 DIFD(14) 20001 20000 MOV(21) #FFFF DM0100 d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a21Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low 20001 OUT 01000 输入点00000 内继20000 内继20001 当输入点00000的上升沿(OFF ON)时,内部辅助继电器20000在一个扫描周期内ON,MOV指令在一个扫描周期内执行。 当输入点00000的下降沿(ON OFF)时,内部辅助继电器20001在一个扫描周期内ON,输出指令执行一个扫描周期。 DIFD指令构成输入电路而可直接采用微分型指令即可。 注意:MOV等应用指令尚有微分型,此时不需用DIFU、 5、 置位SET与复位(RESET)指令 当SET指令的执行条件ON时,使指定继电器置位为ON;当执行条件OFFSET指令仍不能改变指定继电器的状态。当 RESET指令的执行条件ON时,使指定继电器复位为OFF;当执行条件OFF后,RESET指令仍不能改变指定继电器的状 态。 四、基本顺序控制指令 FUN NO 指令 符号 助记符 操作 功 能 操作码相关的标 数 志 00 空操作 NOP(00) —— 01 结束 END END(01) 程序结束 —— 02 联锁 IL IL(02) 至ILC指令为止的继电器线圈,定时器根据本指令前面的 条件OFF的时候OFF —— 03 解锁 ILC ILC(03) 表示IL指令范围的结束 04 跳转 JMP JMP(04) 号 至JME指令为止的程序由本指令前面的条件决定时否执号: 行 00~49 05 跳转结JME JME(05) 号 解除跳转指令 束 ?在程序的最后,必须写入END指令。如果在程序无END指令状态下运行,则CPU单元前面的“EPROR”LED灯亮,而不执行程序;如果在程序中有复数个END指令时,则程序执行到最前面的END指令为止。 00000 ?IL—ILC指令的应用 IL(02) 00005 00001 00002 01000 当IL条件(右图中00000 ) -command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a22Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol ON时,各输出动作与没有 00003 01001 IL—ILC指令的程序一样。 当IL条件OFF时,IL 至ILC间的各个输出状态 00004 01002 如下示: ILC(03) 输出继电器、内部辅助继电器、链接继电器 OFF 辅助记忆继电器 计时器 复位 计数器、移位寄存器、保持继电器 状态保持 ?IL—ILC指令与TR指令的比较 使用TR指令时,在分支点的前面要有;LD TR,而使用IL/ILC指令时,即可不编入LD TR,就程序步数而言,仅可减少这一点。 ?IL与ILC非成对使用时的动作 在IL与ILC程序之间另有IL指令时,因IL—ILC指令不成对使用,所以程序检查时会有“IL—ILC ERROR”出现,而动作还按程序正常进行。但是,请注意:ILC指令会解除它前面所有的IL指令。例IL—IL—ILC嵌套的程序。 ?跳转(JMP04)/跳转终了(JME05) JMP条件ON时,程序按没有JMP—JME指令一样动作;而当JMP条件OFF时,不执行从JMP至JME指令间的程序,并且输出线圈(输出继电器、计数器、计时器、移位寄存器、保持继电器等)均保持各自的状态。 ? JMP指定号数为00时,没有JMP00—JME00的使用次数限制;当不成对地使用JMP00—JME00时,程序检查 时会有“JMP—JME ERROR”出现,但动作还按程序进行。在JMP00—JME00之间,即使JMP条件OFF时,还 需要指令执行时间(指CPU花时间找下一个JME00指令)。 ? JMP指定号数为01~49时 把JMP01~99至同一号数的JME01~99的区间作为跳转对象;每个跳转号只能使用一次;在使用JMP01~99时, 当JMP条件OFF时,直接跳转到JME,所以没有JMP—JME间指令的执行时间。 五、定时器/计数器指令 FUN 指令 符号 助记符 操作数 功能 操作码相关标志 NO Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a23 定时器 TIM 计时器号 接能延时定时器(减算) 1定时器号、计数器号NO 设定值 设定时间0~999.9秒 TIM/CNT000~127 (0.1秒为单位) 在使用高速定时器指令 计数器 CNT 计数器号 减法计数器, 中作中断处理的定时器 请指定TIMH000~003 设定值 设定值0~99999次 2、设定值 12 可逆计数 CNTR(12)计时器号 执行加、减算计数, 000~019、200~255CH 器 设定值 设定值0~9999次 HR00~19、LR00~15 15 高速定时 TIMH(15)计时器号 执行高速减算定时, DM0000~1023.6144~6655 器 设定值 设定时间:0~99.99 *DM0000~1023、 秒(0.01秒为单位) 6144~6655 #0000~9999(BCD码) 1、 在同一程序中以上四种指令所使用的计时器号、计数器号000~127不能重复。 2、 设定值可以是常数,也可以是通道号。当是常数时,必须是BCD码,前面要加#;是通道号时,该通道内的数字也须是 BCD码。 3、 当计数器、高速计时器、计时器工作(复位时)前,先将设定值送入相应的计数器/计时器内(由程序中的计时器号/ 计数器号指定)(可逆计数器例外,当可逆计数器复位时,其内 4、 5、 的当前值复位为0000),然后根据指令要求进行计数/计时,因而,在复位时,相应的计数器/计时器内有它的当前值, 计数器/计时器可作为其它指令的操作数(如LD TIM000等)。 6、 当设定值为*DM时,在该DM区域中存放的是设定值的DM地址而非设定值。 7、 出错标志位25503, 当设定值不是BCD码时、*DM间接寻址的DM通道不存在时为ON。 各程序说明见讲义62、63、64之1、2、3、4。 六、数据比较指令 FUN 指令 符号 助记符 操功 能 操作码 NO 作数 CMP(20) S1 S1CH数据、常数,与S2CH数据、 S1、S2 20 比较 CMP 常数进行比较根据比较结果分别设 000~019、200~255 S2 置比较标志。25505(S1>S2)、25506(S1=S2)、 HR00~19、AR00~15 25507(S1S2+1、S2)、 HR00~18.AR00~14 S2 25506(S1+1、S = S2+1、S2)、 LR00~14.T/C000~126 25507(S1+1、S < S2+1、S2) DM(及*DM)0000~1022 000 6144~6154 BCPM/@BCPM SCH的数据如下图那样从T通道开始分16个比较区S(000~019、200~255 68 块比BCPM S 域,每个区域第一个为下限,第二个为上限,分16HR00~19、AR00~15 较 @BCPM T 次对下限.上限数据(比较表)比较在其之间将结果存LR00~15、T/C000~127 D 入DCH. 0不在上下限之间;1在上下限之间 DM0000~1023、6144~6655 下限 比较 上限 结果 DC*DM0000~1023.6144~665 值 数据 值 H 5 #0000~FFFF T ? SCH? T+1 0或1 00 T(200~224、T/C000~096、数据 DM0000~0992、6144~6623 T+2 ? SCH? T+3 0或1 01 *DM0000~1023、数据 6144~6655 T+4 ? SCH? T+5 0或1 02 D(000~019、200~252 数据 HR00~19、AR00~15 T+6 ? SCH? T+7 0或1 03 LR00~15、DM0000~1023、 数据 *DM0000~1023、 6144~6655 T+28 ? SCH? T+29 0或1 14 数据 T+30 ? SCH? T+31 0或1 15 数据 位 TCMP/@TCMPSCH的数据如下图那样从TCH开始的16个(至T+15)S(000~019、200~255 85 表比TCMP (85) 比较数据(比较表)作比较。在一致的场合下将“1”HR00~19、AR00~15 较 @TCMP 输出到DCH的相应位(00~15),0—不一致;1—一LR00~15、/C000~127 S 致 DM(及*DM)0000~1023、 比较 比较 DCH 位 6144~6655 T #0000~FFFF 表 数 T、000~004、200~240 T S 0或1 00 D HR00~04、HR00、LR00 T+1 S 0或1 01 T/C000~112 T+2 S 0或1 02 DM0000~1008、6144~6640 T+3 S 0或1 03 *DM0000~1023、 6144~6655 T+14 S 0或1 14 D、000~019、200~255 T+15 S 0或1 15 HR00~19、LR00~15 比较结果为00(16位全部一致)时,比较标志25506 AR00~15、DM0000~1023 (=)为ON *DM0000~1023、 6144~6655 wide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a25Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat in 标志位25503(ER)ON:当比较块或比较表超出所在数据区的范围,或比较指令间接寻址DM通道不存在(其内非BCD码),此时,比较指令不执行。详见P65、66、67、68的四个比较指令。 七、数据移位指令 FU指符号 助记符 操作数 功能/相关标志 操作数 N 令 NO 开始D1,结束D2CH 移SFT(10) D1 移位脉冲(SP)ON时,从D1CH到D2CH的数据朝10 位 D2 高位移一位,D2的最高位溢出。复位端ON时,000~019、200~252 寄D2~D1区域全部OFF。 HR00~19、AR00~15 LR00~15。D1、D2必须用存15 00 15 00 IN 同一个继电器区域D1CH器 (0或1) D2 D1 必须?D2CH SFTR/@SFTR(84) 根据控制数据(C)bit12~15的内容把D1~D2通D1、D2 84 可SFTR C 道的数据进行左右移位。C通道内控制数据的内000~019、200~252 逆 D1 容:I移位方向(DR),0右移,1左移;I13HR00~19、AR00~15 12—— D2 ——数据输入端(IN);I14——移位脉冲端(SP);LR00~15 移?SFTR I15—复位端(R)。 DM0000~1023 位 15 00 15 00 *DM0000~1023、 6144~6655 CY D2 D1 寄 C:000~019、200~252 IN(0或1) 存HR00~19、AR00~15 15 00 15 00 器 LR00~15 D2 D1 CY DM0000~1023、6144~6655 IN(0或1) *DM0000~1023、 当移位信号输入继电器I14ON时D1~D2通道的 6144~6655 数据进行左(右)移位,最高位(或最低位)移 入进位位CY(25504);当复位输入继电器I15ON 时,D1~D2通道的全部位和进位位CY(25504)全 为“0”。D1、D2通道领域有故障时,D1>D2时, 出错标志25503ON,此时程序不执行该指令 -. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a26Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin WSFT/@WSFT(16) D1、D2 16 字 当执行条件ON时,每执行一次D1至D2通道中的D1 移数据以字为单位移位一次,而0000移进D1,D2000~019、200~252 D2 HR00~19、AR00~15 位 的原数据溢出 当D1与D2CH不在同一区域、或区域出错、间接LR00~15 DM0000~1023、 寻址通道不存在(非BCD码)时,出错标志位*DM0000~1023、 25503ON,此时该指令不执行 6144~6655 0000 D1 D2 算ASL ASL/@ASL(25) D 把D通道的数据向左移一位,原最高位溢出至D:000~019、200~252 25 术 CY(25504),最低位补0。当间接寻址DM不存在(非 HR00~19、AR00~15 左BCD码)时,25503ON,此时该程序不执行;当DCHLR00~15 移的内容为0000时,相等标志位25506为ON DM0000~1023、 位 *DM)0000~1023、 6144~6655 CY D 算ASR ASR/@ASR(26) 把D通道的数据向右移一位,原最低位溢出至26 术 D CY(25504),最高位补0。当间接寻址DM不存在(非右BCD码)时,25503ON,此时该程序不执行;当DCH移的内容为0000时,相等标志位25506为ON 位 D CY 循ROL ROL/@ROL(27) 把D通道的数据包括进位位CY(25504)循环左移。27 环 D 当间接寻址DM不存在(非BCD码)时,25503ON,左此时该程序不执行;当DCH的内容为0000时,相 移等标志位25506为ON 指 令 D CY 循ROR ROR/@ROR(28) 把D通道的数据包括进位位CY(25504)循环右移。D:000~019、200~252 28 环 D 当间接寻址DM不存在(非BCD码)时,25503ON, HR00~19、AR00~15 右此时该程序不执行;当DCH的内容为0000时,相LR00~15 移等标志位25506为ON DM0000~1023、 指 *DM0000~1023、 令 CY D 6144~6655 level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a27Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly 一SLD SLD/@SLD(74) 以四位二进制码(桁)为单位将D1至D2CH的数D1、D2: 74 位 D1 据左移,D2的最高位溢出丢失,D1的最低位填0。000~019、200~252 数 D2 当D1、D2通道出错(不在同一区域或D2动作: 6144~6655 S+1通道的内容存入D通道后,S通道的堆栈指针值-1,堆栈领 *控制数据C的内容是域的内容以通道为单位上移一个地址。详见P80页图3.98 0000~9999的BCD码 <后入先出动作>: D:000~019、200~255 S+堆栈指针通道的内容存入D通道,,其它通道数据不变,S通道 HR00~19、AR00~15、 的堆栈指针-1。详见P81页图3。99 d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a31Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low 2、当(C)=0000~6655时,将S+(C)通道的内容送入DCH LR00~15 25503出错标志位ON:控制数据C中的偏移量数据或堆栈长DM0000~1023、 度不是BCD码;当:(C)=0000~6655时,S与S+(C)不在同*DM0000~1023、 一数据区;堆栈操作时,堆栈指针的值超出堆栈长度;间接寻6144~6655 址DM通道不存在。 相等标志位25506在S内容为0000时为ON 按控制数据C的内容,将S中指定位传送到D的指定位。 S:000~019、200~255 a82 位MOVB MOVB/?传送前通道除传送的位以外没有变化。例见P82页图3。101 HR00~19、AR00~15、 MOVB 传 控制数据的内容 高位 低位 LR00~15、 T/C000~127 DM(及*DM)0000~1023、 送a(8?6144~6655 源CH的指定位 MOVB 2) 指#0000~FFFF (00~15) C:000~019、200~252 目的CH的指定位 令 源数据S HR00~19、AR00~15 (00~15) 控制数据LR00~15 T/C000~127 当C指定的位不存在或间接寻址DM不存在时,25503ON,该指 C DM(及*DM)令不执行。 0000~1023.6144~6655 目的通道 *控制数据的内容是 D 000~9999间的BCD码 按照控制数据C的内容将S通道的指定桁(4个位)传送到DD: 000~019、200~252 83 数MOVD MOVD/ 通道的指定桁(4个位),除传送桁以外S及D通道的其它桁内 HR00~19、AR00~15 字 aMOVD ?容不变。详见P82页图3。103 LR00~15 DM0000~1023 控制数据C的内容 高位 低位 传a源数据S *DM0000~1023、 ? 6144~6655 MOVD 控制数据送 不用 源通道的传送开始 桁(0~3) 指D 目的通道的接收开始 令 目的通道桁(0~3) 传送的桁数(0~3) C 0:1桁4位 1:2桁8位 2:3桁12位 3:4桁16位 九、数据转换指令 FUN 指令 符号 助记符 操作数 功 能/相关标志 操作数 NO 23 BCD BIN 将S通道的BCD码变换成二进制数据送S:000~019、200~252 BIN/aBIN(23) ?BIN 入D通道,S通道数据不变 HR00~19、AR00~15 LR00~15 码转 源通道S 出错标志25503在S内容不是BCD码时T/C000~127(仅BCD BIN转换a?换 目的通道D ON,此时该指令不执行;相等标志位时) BIN 25506当转换结果为0000时ON DM(及*DM) Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a32 24 BIN BCD 将S通道的二进制数变换成BCD码并送0000~1023.6144~6655 aBCD(24) BCD/?BCD 入D通道 D:000~019、200~252 转换 源通道S 25503:当转换完的BCD码大于9999HR00~19、AR00~15 LR00~15。 a?目的通道D 时或间接寻址DM不存在时ON,此时该程DM0000~1023 BCD 序不执行 *DM0000~1023、6144~6655 当转换结果为0000时,相等标志位 25506ON 76 译码MLPX 用桁指定数据(C)把S通道内的指定桁S、C:000~019、200~252 aMLPXMLPX/?器指 (4bit)的内容(0~F15)译码成一个HR00~19、AR00~15 、LR00~15 令 (76) 16 Bit(位号)数向 D通道的16位中T/C000~127 a?4 源通道S 输出(相应的位置成ON,其它置为OFF) DM0000~1023、6144~6655 MLPX 控制数据C 桁指定数据(C)内容 *DM0000~1023、6144~6655 16 目的开始通道D D:000~019、200~252 HR00~19、AR00~15 、LR00~15 变换开始桁号(0~3) DM0000~1023 译码桁数(0~3) *DM0000~1023、6144~6655 0:1桁 1:2桁 1:3桁 2:4桁 “0”固定 *C=0011时 源 S 3 2 1 0 目的D D+3 D+2 D+1 D 当D+3超出数据区域范围或间接寻址DM 不存在时,出错标志25503ON 77 编码DMPX 根据控制数据C的内容把S开始的通道S:000~019、200~255 aDMPXDMPX/?器指 内的16 Bit数据ON状态的最上位的BitHR00~19、AR00~15 、LR00~15 令 (77) 位号变换成4 Bit(0,F)数据并向D通T/C000~127 a? 16 源开始通道S 道的指定桁上输出 DM0000~1023、6144~6655 DMPX 结果通道D (将源通道状态为ON的最高位的位号*DM0000~1023、6144~6655 4 控制数据C 编码成4 Bit 16进制数) D:000~019、200~252 *一次最多对四个源通道编码 HR00~19、AR00~15 、LR00~15 桁指定的数据(C)的内容 DM0000~1023 *DM0000~1023、6144~6655 C:000~019、200~252 编码结果输出开始桁(0~3) HR00~19、AR00~15 、LR00~15 编码数据的通道个数(0~3) DM0000~1023 #0000~FFFF 0:1CH 1:2CH *DM0000~1023、6144~6655 2:3CH 3:4CH “0”固定 详见P85页图3。110及3。111 当S+3超出数据区域范围或间接寻址DM 通道不存在时为ON,此时该指令不执行 86 ASCIIASC 根据控制数据(C)的内容将S通道的指S:000~019、200~255 ASC/a ?码变 定1桁(4 Bit 1桁,一次最多4桁即HR00~19、AR00~15 、LR00~15 wide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a33Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat in 换指ASC(86) 16 Bit)的内容变换成8 Bit的ASCIIT/C000~127 a ?令 源通道S 码数据并存入指定的D开始的通道的上DM0000~1023、6144~6655 ASC 控制数据C 位或下位8 Bit上输出 *DM0000~1023、6144~6655 结果开始通道D 控制数据C的内容 C:000~019、200~252 HR00~19、AR00~15 、LR00~15 T/C000~127 S变换开始桁号(0~3) DM0000~1023、6144~6655 变换桁数(0~3) *DM0000~1023、6144~6655 0:1桁 1:2桁 D:000~019、200~252 2:3桁 4:4桁 HR00~19、AR00~15 、LR00~15 DCH的输出开始位置 DM0000~1023 0:低8位 1:高8位 *DM0000~1023、6144~6655 奇偶校指定位 0:无校验 1:偶校验 2:奇校验 指校验位与ASCII码中的 “1”的个数应为偶数 指较验位与ASCII码中的“1”的 个数应为奇数 *若C中指定从D的高位开始存放,则目 的通道最多可占用3个 当控制数据错误、结果通道超出数据区 范围、间接寻址DM不存在时,出错标志 位25503ON,该指令不执行.例见P86 78 七段SDEC 根据控制数据C把S通道内的1桁的内S:000~019、200~255 a SDECSDEC/?译码 容(0~F)(一次最多4桁)变换成8bit的HR00~19、AR00~15 、LR00~15 指令 (78) 七段数据并在指定的DCH--的上位或下T/C000~127 a ?源通道S(二进位输出。如果C指定从D的上位(高8DM0000~1023、6144~6655 SDEC 制) 位)开始存放,则最多可占用3个目的*DM0000~1023、6144~6655 控制数据C 通道,每个通道可放两桁的转换结果,C:000~019、200~252 目的开始通道D 分低8位和高8位,bit7和bit15不用,HR00~19、AR00~15 、LR00~15 其它七位分别对应于七段数码管的a、T/C000~127 b、c、d、e、f、g段 DM0000~1023、6144~6655 控制数据C的内容 *DM0000~1023、6144~6655 #0000~FFFF D:000~019、200~252 指定S中第一个被译码的 HR00~19、AR00~15 、LR00~15 桁号(0,3) DM0000~1023 指定S中被译码的桁数 *DM0000~1023、6144~6655 (0,3) 0:1桁 1:2桁 2:3桁 3:4桁 指定从D的高位还是低位开始 接受第1个转换结果 0:低8位 1:高8 位 固定为“0” Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a34 例见P88页3。116及3。117 1、BIN BCD码变换 SCH BIN BCD DCH 1 0 E C BIN BCD 4 3 3 2 32 10 32 10X16 X16 X16 X16 X10 X10 X10 X10 3101X16+14(E)X16+12(C)X16=4096+224+12=4332 反过来,将四桁BCD码变换成四桁16进制数: 16*16*16=4096 4332-4096=236 16*16=256而14*16=224 236-224=12 因此BCD码4332可变换为16进制数10E(14)C(12) 2、把桁(4bit)的数据变换成ASCII码 变换数据内容 变换输出数据 数据 一桁(4bit)内容 代码 MSB 8bit LSB 0 0 0 0 0 $30 * 0 1 1 0 0 0 0 1 0 0 0 1 $31 * 0 1 1 0 0 0 1 2 0 0 1 0 $32 * 0 1 1 0 0 1 0 3 0 0 1 1 $33 * 0 1 1 0 0 1 1 4 0 1 0 0 $34 * 0 1 1 0 1 0 0 5 0 1 0 1 $35 * 0 1 1 0 1 0 1 6 0 1 1 0 $36 * 0 1 1 0 1 1 0 7 0 1 1 1 $37 * 0 1 1 0 1 1 1 8 1 0 0 0 $38 * 0 1 1 1 0 0 0 9 1 0 0 1 $39 * 0 1 1 1 0 0 1 A 1 0 1 0 $41 * 1 0 0 0 0 0 1 B 1 0 1 1 $42 * 1 0 0 0 0 1 0 C 1 1 0 0 $43 * 1 0 0 0 0 1 1 D 1 1 0 1 $44 * 1 0 0 0 1 0 0 E 1 1 1 0 $45 * 1 0 0 0 1 0 1 F 1 1 1 1 $46 * 1 0 0 0 1 1 0 其中*为奇偶Bit,依奇偶指定及输出数据的其余七位状况而变化 3、把桁(4Bit)的内容0,F译码为8 Bit的七段数据时,如下表所示: the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a35Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin- 变换数据位的内容 变换输出数据 7段显示 数值 Bit内容 g f e d c b a a 0 0 0 0 0 0 0 1 1 1 1 1 1 a f b 1 0 0 0 1 0 0 0 0 0 1 1 0 b 2 0 0 1 0 0 1 0 1 1 0 1 1 c 3 0 0 1 1 0 1 0 0 1 1 1 1 g d e c 4 0 1 0 0 0 1 1 0 0 1 1 0 e 5 0 1 0 1 0 1 1 0 1 1 0 1 f d 6 0 1 1 0 0 1 1 1 1 1 0 1 g 7 0 1 1 1 0 0 1 0 0 1 1 1 8 1 0 0 0 0 1 1 1 1 1 1 1 9 1 0 0 1 0 1 1 0 1 1 1 1 A 1 0 1 0 0 1 1 1 0 1 1 1 B 1 0 1 1 0 1 1 1 1 1 0 0 C 1 1 0 0 0 0 1 1 1 0 0 1 D 1 1 0 1 0 1 0 1 1 1 1 0 E 1 1 1 0 0 1 1 1 1 0 0 1 F 1 1 1 1 0 1 1 1 0 0 0 1 十、十进制运算指令 FUN 指令 符号 助记符 操作数 功 能/相关标志 操作数 NO 40 进位STC 进位标志位被置为1(0) STC/aSTC(40) ? 位置做加、减法时,进位位要参与运算,一般要在运aSTC ? 1指 算之前清进位位 令 41 进位CLC CLC/aCLC(41 ?位置aCLC ?0指 令 30 BCDADD 将S1、S2通道内的BCD码和CY位相加,结果存S1、S2: aADD(30) ADD/?码加 入结果通道D中。 000~019、200~255 法指 被加数据或被加数 S1+S2+CY D 、CY HR00~19、AR00~15 、 令 据CHS1 若和大于9999时,将把CY25504置为ON;LR00~15 aADD ?加数数据或加数数若和为0000时,相等标志25506为ON T/C000~127 据CHS2 当S1、S2中为非BCD码或间接寻址DM不存DM0000~1023、 结果通道D 在时,出错标志位25503ON,此时该指令不执行 6144~6655 *由于CY参与运算,一般运算前应先清CY *DM0000~1023、 level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a36Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy 31 BCDSUB S1的内容减S2的内容及CY,结果存入D通道。若6144~6655 a SUB(31) SUB/?码减 结果为负,置位CY,而D中的内容为十进制结果#0000~9999 法指 被减数据或被减数的二进制补码,要想将D中的内容转换为实际结D:000~019、200~255 据CHS1 果,应先清CY,再用0减去D中的内容 HR00~19、AR00~15 、令 减数数据或减数数 S1—S2—CY D、CY LR00~15 a SUB ?据CHS2 *由于CY参与运算,一般运算前应先清CY DM0000~1023 结果通道D 标志位:当S1、S2中有非BCD码时或间接寻址*DM0000~1024、 DM不存在,出错标志25503ON 6144~6655 当被减数小于减数时,有借位,CY 位 25504为ON 当差为0000时,相等标志位25506ON 54 双字ADDL 将S1+1、S1通道内容与S2+1、S2通道的内容和S1、S2; a ADDL(54) ADDL/?BCD CY相加,结果存入D+1、D通道中。 000~018、200~251 码加 被加数开始通道S1 (S1+1?S1)+(S2+1?S2)+CY D+1?D、CY HR00~18、AR00~14 、 法指 加数开始通道S2 若结果大于99999999,CY25504被置为ON;LR00~14 令 目的开始通道D 当结果为00000000时,相等标志位25506为ON;T/C000~126 a ?当加数或被加数中有非BCD码时,或间接寻址DMDM0000~1022、 ADDL 通道不存在时,出错标志25503为ON。见P91页 6144~6654 55 双字SUBL *DM0000~1023 S1+1、S通道数据与S2+1、S2通道数据及CY进aSUBL(55) SUBL/?BCD 行BCD减算,减算结果送入D+1、D通道。 6144~6655 D:000~018、200~251 码减 被减数数据开始通 S1+1?S1—S2+1?S2—CY D+1?D、CY HR00~18、AR00~14 、法指 道S1 当结果为负时,将置位CY,而D+1、D通道的内 LR00~14 令 减数数据开始通道容为实际结果的十进制补码,要将其转换为实际aSUBL ?S2 结果,应先清CY,再用0减D+1、D通道的内容。DM0000~1022* 目的开始通道D 当结果为00000000时,相等标志位25506ON,当DM0000~1023、 6144~6655 减数或被减数中有非BCDF码或间接寻址DM通道 不存在时,出错标志位25503ON,该指令不执行。 见P92页 32 BCDMUL 将S1通道的BCD码与S2通道的BCD码相乘,结果S1、S2: a MUL(32) MUL/?码乘 存入D+1、D通道 000~019、200~255 被乘数或被乘数通 S1XS2 D+1 D HR00~19、AR00~15 、法指 道S1 上位 下位 LR00~15 令 乘数或乘数通道S2 当乘数或被乘数中有非BCD码或间接寻址DM不T/C000~127 a MUL ?目的开始通道D 存在时,出错标志25503ON,当运算结果内容为DM0000~1023、 00000000时,相等标志位25506ON 6144~6655 37Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a 33 BCDDIV 将S1的内容除以S2中的内容,结果送入D+1、D*DM0000~1023、aDIV(33) DIV/?码除 通道(其中:D+1通道存余数,D通道存商) 6144~6655 法指 被除数或被除数通 余数 商 #0000~9999 道S1 S1?S2 D+1 D D:000~019、200~255 令 除数或除数通道S2 当S1或S2通道中有非BCD数或间接寻址DM不存HR00~19、AR00~15 、aDIV ?目的开始通道D 在时,出错标志25503ON,当运算结果为00000000LR00~15 时,相等标志位25506ON DM0000~1023 *DM0000~1023、 6144~6655 56 双字MULL S1+1、SXS2+1、S2 D+3、D+2、D+1、D S1、S2: aMULL(56) MULL/?BCD 000~018、020~254 码乘 被乘数开始通道S1 HR00~18、AR00~18 法指 乘数开始通道S2 上位 下位 LR00~18 令 目的开始通道D S1+1、S通道的8位BCD码与S2+1、S2通道内T/C000~127 aMULL ?的8位BCD码进行BCD乘算,结果送入D+3、D+2、DM0000~1022、 D+1、D通道。当S1+1、S、S2+1、S2通道中有非6144~6654 BCD数或间接寻址DM通道不存在时,出错标志位*DM0000~1024、 25503ON,该指令不执行;当运算结果为000000006144~6655 相等标志位25506ON D:000~016、020~249 HR00~16、AR00~12 57 双字DIVL S1+1、S通道的8位BCD码除以S2+1、S2通道内aDIVL(57) DIVL/?LR00~12 BCD 的8位BCD码,结果存入D+3~D中,其中D+3、D+2 DM0000~1020 码除 存余数,D+1、D中存商 S1+1、S?S2+1、S2 D+3、D+2、D+1、D 法指 *DM0000~1024、 令 6144~6655 aDIVL ? 余数 商 当除数、被除数中有非BCD码或间接寻址DM不存 在时,出错标志25503ON,当运算结果为0000时, 相等标志位25506为ON 38 递增INC 作一次递增通道数据(BCD码)增1操作 D:000~019、200~252 aINC(38) INC/?当递增通道中为非BCD码或间接寻址DM不存在HR00~19、AR00~15 、指令 递增通道D 时,出错标志25503ON,当运算结果为0000时,LR00~15 aINC ?相等标志位25506为ON DM0000~1023 *DM0000~1023、39 递减DEC 作一次递减通道数据(BCD码)减1操作 DEC/aDEC(39) ?6144~6655 指令 当递减通道中为非BCD码或间接寻址DM不存在 递减通道D 时,出错标志25503ON,当运算结果为0000时,aDEC ? 相等标志位25506为ON 1、 减法指令的数据内容和运算结果 数据 运算结果 25504 25506 S1>S2 D,S1,S2 0(进位) 0(相等) S1,S2 D,0 0 1 S1D2时出错标志25503ON @IORF 说明:通常的I/O刷新是一次 循环统一执行一次(END刷新), 而执行该指令,则可在程序循 环途中对指定的输入输出继电 器实行刷新,以缩短输出滞后 输入的时间,提高I/O响应速 度 67 位计数BCNT BCNT/@BCNT(67) 计算在S和S+N-1之间所有通N:000~019、200~255、HR00~19、 指令 通道数N 道中为1的bit的总数,结果以AR00~15、LR00~15、T/C000~127 源开始通道S BCD码送入D通道 DM0000~1023、6144~6655 目的通道D 当通道数N非BCD码、N为0、*DM0000~1023、6144~6655 @BCNT S+N-1超出数据区、计算总数超#0000~9999 过9999、间接寻址DM不存在时,S:000~019、200~255、HR00~19、 出错标志25503ON;当计算结果AR00~15、LR00~15、T/C000~127 为0000时,相等标志位25506ON DM0000~1023、6144~6655 *DM0000~1023、6144~6655 D:000~019、200~252、HR00~19、 AR00~15、LR00~15、T/C000~127 DM0000~1023 en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a42Kai Wen Yongzhi, Director of- *DM0000~1023、6144~6655 十四、子程序控制指令 FUN 指令 符号 助记符 操作数 功 能/相关标志 操作数 NO 91 子程序调SBS SBS/@SBS(91) 在主程序中调用子程序,主程序可以NO:000~049 用指令 编号NO 无数次地调用子程序。子程序的嵌套 @SBS 级数不能超过16级 当子程序不存在、从自己子程序中调 用自己子程序、嵌套超过16级时,出 错标志25503ON 92 子程序定SBN SBN(92) NO 表示子程序的开始并定义子程序的编NO:000~049 义指令 号为NO 93 子程序返RET RET(93) 表示指定的子程序终了 回指令 99 宏指令 MCRO MCRO(99) 用一个单一子程序代替数个具有N:子程序编号000~049 子程序号N 相同结构但操作数不同的子程序。 S:000~016、200~252、 第一个输入字S 首先将S~S+3通道的内容复制到HR00~16、AR00~12LR00~12、 第一个输出字D 宏指令输入区(4个字)232~235CH,T/C000~124、 再将D~D+3CH的内容复制到达宏指令DM0000~1020、6144~6652 输出区(4个字)236~239CH,再调用*DM0000~1023、6144~6655 N号子程序,当子程序完成时,将D:000~016、200~249 236~239CH的内容复制到D~D+3CH中HR00~16、AR00~12LR00~12、 例见P103页图3。157 T/C000~124、DM0000~1020 当指定的子程序不存在、操作数超*DM0000~1023、6144~6655 出数据区范围、间接寻址DM不存在、 子程序自己调用时,出错标志位 25503ON,该指令不执行 *高速计数器 1、 高速计数器计数功能 要使用高速计数器,必须用编程器先对DM6642的内容进行设置 通道地址 位 功 能 DM6642 00~03 计数模式设定:0—增减计数模式 4—递增计数模式 04~07 复位方式设定:0—Z相输入信号+软件复位 1—软件复位 08~15 是否使用高速计数器设定:00—不使用 01—使用 (1) 计数模式 1递增模式——当DM6642的高位为01(使用高速计数器设定),低位为X4(复位方式略,采用递增计数模式)时 ? the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a43Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin- 编码器输入单相输入脉冲信号接00000端,复位信号接00002端,对单相脉冲进行递增计数,计数范围为0~65535 (十六进制为00000000~0000FFFF),最高频率5KHZ 2增减模式——当DM6642高位为01(使用高速计数器设定),低位为X0(复位方式略,采用增减计数模式)时 ? 编码器输入两路相位差90?的脉冲,A相接00000,B相接00001,复位Z相接00002端,进行递增递减计数,范 围—32767~+32767(十六进制为F0007FFF~00007FFF),最高频率为2.5KHZ。若A超前则递增,若B超前则递减。 (2)高速计数器复位模式 1Z相信号和软件复位(DM6642数据为010X时),当高速计数器的复位标志25200ON时,Z相复位信号由OFF变? ON时,高速计数器当前值复位(0) 2纯软件复位(DM6642数据为011X时):当高速计数器的复位标志25200ON时,高速计数器当前值复位(0) ? (3)计数器的上溢和下溢 高速计数器当前值存于特殊辅助继电器249CH(存当前值高4位)、248CH(存当前值低4位)中,当计数器从上限值(0000FFFF递增计数或00007FFF 增减计数)开始加计数时,则上溢,此时249、248CH的内容为0FFF FFFF并保持,高速计数器停止计数;从下限值(00000000递增或F0007FFF增减)开始减计数时则下溢,此时249、248CH的内容为FFFF FFFF并保持,高速计数器停止计数。只有当高速计数器复位时,才会清除249CH、248CH的上溢或下溢状态。 2、 高速计数器中断方式 (1) 目标值比较中断:最多有16个比较目标值及中断子程序号组合(存于比较表中),当高速计数器当前值等于 目标值时,执行比较表中指定的中断子程序。 (2) 区域比较中断:比较表中保存了8个比较(上限和下限)条件和中断子程序号组合,当下限值?计数器当前 值?下限值 时,执行区域比较表中指定的中断子程序。 十五、高速计数器控制指令 FUN 指令 符号 助记符 操作功 能/相关标志 操作数 NO 数 63 比较CTBL CTBL/@CTBL(6根据控制数据C的值登记一个用于高速计数器的比较P:000 表登 3) 表,并可立即启动也可用INI指令启动。 C:000~003 录指 端口定义符P C:000——登记一个目标值比较表,并启动比较 S(值比较1+3): 令 控制数据C 001——登记一个区域比较表,并启动比较 000~016、、200~249 @CTBL 比较表开始通 002——登记一个目标值比较表,用INI(操作模式HR00~16、AR00~12 道S 控制指令)指令方始启动比较 LR00~12 003——登记一个区域比较表,用INI指令方始启动DM0000~1020 比较 6144~6152 *DM0000~1023 6144~6155 S(域比较5*8) 200~213 目标值比较表 区域比较表 DM0000~0984、 6144~6166 S 比较的次数 S 1下限值低4位 *DM0000~1023 S+1 1目标值低4位 S+1 1下限值高4位 g from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a44Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aft S+2 1目标值高4位 S+2 1上限值低4位 6144~6155 S+3 比较1中断子程序号 S+3 1上限值高4位 S+4 2目标值低4位 S+4 比较1中断子程序号 S+5 2目标值高4位 S+5 2下限值低4位 S+6 比较2中断子程序号 S+6 2下限值高4位 S+7 3目标值低4位 S+7 2上限值低4位 S+8 3目标值高4位 S+8 2上限值高4位 S+9 比较3中断子程序号 S+9 比较2中断子程序号 ? ? ? ? ? ? ? ? ? ? ? ? *当区域比较条件不满八个时,余下的子程序号全部 置为FFFF。例见P106、107页3。161及3。162 *当DM642设置错误、间接寻址DM不存在、比较表 超出数据区域、程序执行高速计数器指令,中断子程序 中执行了INI指令时,出错标志25503ON 61 操作INI INI/@INI(61) 控制高速计数器的启动及停止.。 P;000 模式 端口定义符P C:000——启动表比较 C:000~003 控制 控制数据C 001——停止表比较 S:000~018、200~251 指令 设定值开始通 002——改变高速计数器当前值, HR00~18、AR00~14 @INI 道S S+1、S 249、248CH LR00~14 高 低 高 低 DM0000~1022、 003——停止脉冲输出 6144~6654 *DM0000~1023、 6144~6655 62 当前PRV PRV/@PRV(62) 将高速计数器的当前值249、248CH送到目的通道D+1、P:000 值读 端口定义符P D中(也可用传送指令执行) C:000 出指 控制数据C 当D+1超出数据区域、间接寻址DM不存在、控制数据S:000~018、200~251 令 目的开始通道错误、执行高速计数器指令时中断子程序执行了INIHR00~18、AR00~14 @PRV D 指令时,出错标志25503ON LR00~14 DM0000~1022 *DM0000~1023、 6144~6655 1、 连续输出模式:输出端以指定的频率输出脉冲直到停止输出脉冲的指令输出时为止。 2、 独立输出模式:当输出脉冲达到指定的数目(1~16777215)时,脉冲输出停止。 十六、脉冲输出控制指令 FUN 指令 符号 助记符 操作数 功 能/相关标志 操作数 NO 65 设置PULS PULS/@PULS(65) 当脉冲输出以独立模式输出时,先设置脉冲N:000~018、200~251 脉冲 000 数(连续模式输出脉冲不需此设置)8位BCDHR00~18、AR00~14 -fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a45Kai Wen Yongzhi, Director of 指令 000 码(范围1~16777215),N+1、N通道分别存LR00~14 输出的脉冲数目放高4位和低4位 DM0000~1022、6144~6654 @PULS 通道N 当指令设置错误、间接寻址DM不存在、操*DM0000~1024、 作数超出数据区域或主程序执行脉冲输出61244~6655 指令时,中断子程序中执行了设置脉冲指令 时,出错标志位25503ON,该指令不执行。 64 速度SPED SPED/@SPED(64) 指定脉冲输出位、输出模式并设定脉冲输出F:000~019、200~252 输出 输出位区分符频率来启动脉冲输出 HR00~19、AR00~15 指令 P000或010 输出位P:000——输出位为01000 LR00~15 输出方式M000或 010——输出位为01001 DM0000~1023`6144~6655 @SPED 001 输出方式M:000——独立模式(输出脉冲*DM0000~1023、 脉冲频率F 数到达设定数目时,自动停止输出) 6144~6655 001—连续模式(用SPED指令设定F为0000#0002~0200 来停止输出或用INI指令停止脉冲输出) 脉冲输出指令的应用例 频率F(4位BCD码):值为0002~0200(对见P110页图3。168及3。 应20~2000HZ) 169 *当脉冲正在输出时,无法用设置脉冲指令 PULS改变指定的输出脉冲数目,但可以用速 度输出指令SPED来改变输出脉冲的频率 当指令设置错误、间接寻址DM不存在、 主程序再执行脉冲输出指令或高速计数器 指令时,中断子程序中执行了SPED指令时, 出错标志位25503ON,该指令不执行 *中断控制 CPM1A机型具有外部输入中断、间隔定时器中断、高速计数器中断功能,中断的处理顺序:外部中断0 外部中断1 外部中断2 外部中断3 >间隔 定时器中断 高速计数器中断 外部中断输入端子为00003~00006,分别对应调用子程序000~003。外部输入中断有以下两种模式: 1、 输入中断模式——一旦中断输入端子被接通(由DM6628设定相应输入端为中断输入端,并直接执行控制数据C1=000, 控制数据C2设置相应中断输入端的输入不屏蔽的中断控制指令INT),立即产生中断 2、 计数器中断模式——当中断输入端子被接通一定次数时才产生中断(由DM6628设定相应输入端为中断输入端,并先 执行MOV指令,将输入计数器中断模式的输入中断计数器设定值传送到指定区域即240~243CH,计数器中断模式就 开始减1计数,计数中断的当前值—1存放在244~247CH中,当前值为0时产生中断,计数器停止计数,中断被屏 蔽,若想再次产生中断,必须执行更新计数器设定值的中断控制指令INT) wide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a46Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing lowd fled to the countryside in the town. Also hard to find a boat in the river DM6628的内容 15 12 11 08 07 04 03 00 输入端子0003设定(当为1时,输入中断0) 输入端子0004设定(当为1时,输入中断1) 输入端子0005设定(当为1时,输入中断2) 输入端子0006设定(当为1时,输入中断3) 当DM6628中的4位数中任一位为0时,表示与“0”对应的输入端子为普通输入用;为1时,表示与“1”对应的输入 端子为中断输入用。为2时,表示与2相对对应的输入端子为快速输入(最小脉宽0。2ms) 十七、中断控制指令 FUN 指符号 助记符 操作数 功 能/相关标志 操作数 NO 令 89 中INT INT/@INT(89) 根据C1控制完成相应功能 C1: 断 控制码C1 C1 控制内容 000~003、100、200 控 000 C2(当C1=002时): 000 屏蔽/不屏蔽输入中断 制 控制数据C2 000~019 001 清除/不清除输入中断记忆 指@INT 200~252 HR00~19 002 读出当前屏蔽状态 令 AR00~15 003 更新计数器设定值 LR00~15 100 屏蔽所有中断 T/C000~127 DM0000~1023 200 解除所有中断屏蔽 *DM0000~1023、6144~6655 1、当C1=000时:用C2的bit0~3(其它bit为0) C2(当C2?002时): 定义中断输入端00003~00006的屏蔽或解除(1—屏 000~019 蔽;0—不屏蔽)。屏蔽的输入被记录但不响应,一旦 200~255 被解除立即执行相应的中断程序,也可用清除屏蔽中 HR00~19 断记忆的方式(即执行C1=001的中断控制指令INT) AR00~15 而不执行相应的中断程序 LR00~15 2、当C1=001时,用C2的bit0~3(其它bit为0) T/C000~127 定义中断输入端00003~00006的屏蔽记忆清除或不 DM0000~1023、6144~6655 清除(1—清除;0—不清除) *DM0000~1023、6144~6655 3、当C1=002时,将中断输入00003~00006的当前屏 蔽状态字输出到C2CH的bit0~3 (1—当前被屏蔽; 0—未被屏蔽),C2CH的其它bit为0 4、当C1=003时, 且外部输入中断采用计数器中断 模式(非输入中断模式)时,该指令用于更新计数器 level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a47Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly 的设定值(外部输入中断「计数器模式时」为减1计数,当减1计数的当前值为0时产生中断,同时计数器停止计数,相应的中断信号被屏蔽,若想再产生中断,必须更新设定值)。根据控制数据C2的bit0~3决定对应于00003~00006中断输入的计数器设定值是否更新 (0—更新;1—不更新) 计数器 计数器当 中断输入 设定值 前值—1 输入00003(中断输入0) 240CH 244CH 输入00004(中断输入1) 241CH 245CH 输入00005(中断输入2) 242CH 246CH 输入00006(中断输入3) 243CH 247CH 计数器设定值范围为0000~FFFF 5、C1=100时,C2=0000,屏蔽所有中断(包括间隔定时中断及高速计数器中断),在屏蔽期间,如果发生中断请求,不会响应,但会将发生的中断记录下来,当屏蔽解除后立即进行中断服务 6、C1=200,C2=0000,解除所有中断屏蔽,它并不清除单独中断类型的屏蔽,仅仅是恢复到执行“屏蔽所有中断”之前的状态 例见P113页图3.171及3.172 d fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a48Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing low 69 间STLM STLM/@STLM(69根据C1的值控制完成间隔定时器的功能 C1:000、003、006、010 隔 ) 1、 C1=000启动单次中断模式:此时,C2中是定时C2(当C1=006时):000~018、定 控制数据C1 设定值,C2+1为时间间隔,C3为指定的中断子200~251 时 (常数或通道程序号,定时时间一到,发生一次中断(仅一次),(当C1=010时):000 器@STLM 号) (当C1=000、003时):1当C2是常数时,即为递减执行C3子程序 ?中控制数据C2 000~018、 200~254 断控制数据C3 HR00~15、AR00~14、LR00~14 计数器的设定值,时间间隔固定为1ms;2当?指(中断子程序T/C000~126 C2是通道号时,C2通道内的数据(BCD码0000令 号) DM0000~1022(C=006) 至9999)是递减计数器的设定值,时间间隔是DM0000~1022、6144~6654 C2+1中的数据(BCD0005~0320),此时实际定时(C=000、003) *DM0000~1024、6144~6655 时间为(C2)X(C2+1)X0.1ms;3C3为子程序号?#0000~9999(BCDC=000、003) 数(000,049BCD)或为子程序号数所在的通道 C3:000~019、200~252 2、 C1=003启动重复中断模式:C2为定时设定值,(C1=006) C2+1为时间间隔,C3为子程序号或子程序号所000(C1=010) 000~019、200~255(C1=000、在通道号,与123同,区别在于中断发生时,??003) 调用子程序,同时定时器当前值恢复为设定值并HR00~19、AR00~15、LR00~15 重新开始减1计数,间隔一定的时间就再发生一T/C000~127 次中断, 直到定时器停止工作 DM0000~1023(C=006) 3、 C1=006读出定时器当前值:读出递减计数器减1DM0000~1023、6144~6655 次数、时间间隔、及从上次减1到当前时刻的时(C1=000、003) 间存放在C2、C2+1、C3中,可以计算出从定时DM0000~1023、6144~6655 开始到执行本指令的时间 #0000~0049(BCD C1=000、 4、 C1=010停止定时:停止定时器的工作,C2、C3003) 固定为000 5、 例见P115页图3。174和3。175 十八、步进指令 FUN 指令 符号 助记符 操功 能/相关标志 操作数 NO 作数 08 单步STEP STEP(08)S 表示步进梯形图执行的工序S开始,在各个工序S:000~019、200~252 指令 前面必须插入此指令 HR00~19、AR00~15、LR00~15 STEP STEP(08) 步进控制(工程步进 流程 快递问题件怎么处理流程河南自建厂房流程下载关于规范招聘需求审批流程制作流程表下载邮件下载流程设计 )的终了。该指令之后 是常规梯形图程序。 09 步进SNXT SNXT(09)S 表示步进工程、步进流程启动或上步步进工序复S:000~019、200~252 指令 位,下一个步进工序开始。 HR00~19、AR00~15、LR00~15 开始 FUN(09)S1 FUN(08)S1???FUN(09)S2 FUN(08)S2???FUN(09)S3 FUN(08)S3 FUN(08)结束 “???”为第S步进工序程序 X 49Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat inwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a 应用程序举例 一、 24小时计时器,将时间小时、分的当前值分别存放于DM 0001中,秒的当前值存放于DM0000中。 25502 加 CNTR 25502——1秒脉冲 25314——常OFF 25314 减 000 C000——秒计时 #005 #0059 当现在值PV=设定值SV时,再加1,PV=0000 C000 复位 CNT方动作 C000 CNTR C001——分计时 25314 001 0 1 2 ??? C001 #0059 C001 CNTR C002——小时计时 25314 002 C002 #0023 25313 MOV(20) 秒现值 DM0000 CNT000 DM0000 MOV(20) 分现值 DM0001 CNT001 DM0001 MOV(20) 小时现值 DM0002 CNT002 DM0002 MOVD(83) 小时现值 DM0001的高二桁 DM0002 控制码# 0 2 1 0 #0210 源通道传送起始桁(第一桁) DM0001(目的) 传送桁数(二桁) 目的通道传送起始桁(第三桁) END(01) 二、 利用移位指令实现步骤控制 d fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a50Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing low 某建筑工地沙浆、石子搅拌机内需自动运送沙子和石子,复位位置在A处(行 程开关A),工作开始时, 1、 先在A处装石子T1秒钟,然后小车启动前进 输入点:00000启动按扭 2、 小车走至C处(行程开关C); 00001停止按扭 3、 在C处卸石子T2秒钟 ; 00002A位行程 4、 小车启动后退走向B处(行程开关B) 00003 B位行程 5、 在B处装沙子T3秒钟; 00004 C位行程 6、 小车启动前进走到C处; 00005 紧急停止 7、 小车在C处卸沙T4秒钟 00006点动退车 8、 小车启动后退至复位位置A处 输出点:小车前进 01000 小车后退 01001 时序、步骤分析表 序号 起始条件 停止条件 内部输出 输出情况 1 启动00000 T1到 20000 无 2 T1到 至00004 20001 01000(前进) 3 至00004 T2到 20002 无 4 T2到 至00003 20003 01001(后退) 5 到00003 T3到 20004 无 6 T3到 到00004 20005 01000(前进) 7 至00004 T4到 20006 无 8 T4到 到00002 20007 01001(后退) 00000 00001 KEEP(11) 20101 00000 DIFU(13) 20102 20000 20001 20002 20006 IN SFT(10) 20100 20003 20004 20005 脉冲 200 200 20101 01001 00002 复位 00005 wide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-round the command personnel brought an urgent intelligence, townance as, bomb bursts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaisserrilla warfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several daymorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, fer is the best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som hu Xi forces became the puppet to attack key targetslso refuge in Japanese, ZemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a51Kai Wen Yongzhi, Director of-fronted Chen qi. At this time, the command ... 11th, as Commander of Zhu Xion conn. One afternoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battaliis Deputy Commander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the towg from the distance, reportedly level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-the river. Past the bustling town just seems a deserted and desolate. 7th day in implementing low d fled to the countryside in the town. Also hard to find a boat in 20102 20100 20000 T1 20001 00004 20002 T2 20003 00003 20004 T3 20005 00004 20006 T4 20007 00002 20000 T001 #0010 20002 T002 #0020 20004 T003 #0010 20006 T004 #0020 20001 01000 20005 20003 01001 20007 00006 00002 END(01) d fled to the countryside in the town. Also hard to find a boat in the riverwide panic, in the face of news of the Japanese attack town, to avoid the scourge of war, the majority of people young and ol-command personnel brought an urgent intelligence, townd the rsts, trembling moan tranquil town in the war. People have the feeling of a catastrophe in the town. 6th reconnaissance arounrfare."Commander Zhu Xi did not have much, but the final word. On November 5, we flew over the town for several days, bomb bumorale, Wuzhen battle to victory, fight this battle, a Chinese miracle in the history of guerrilla waDeputy Commander Wang Hesong impassioned statement: "Wuzhen hold, is our military's duty!" I have win a series of victories, best way to reduce losses. e believe that the elves, concentrate a superior force, surely do, early transfer is theEve puppet attacking in Wuzhen, face the problem of the retreat was to meet the enemy, in a debate within the leadership, som es became the puppet to attack key targetslso refuge in Japanese, Zhu Xi forcemotionalBecause of the guerrilla forces in the surrounding area have been withdrawn, activities in the Lake's Cheng Wanjun a52Kai Wen Yongzhi, Director of-en qi. At this time, the command ... 11th, as Commander of Zhu Xited Chernoon, outside East Gate and South Gate there was intense gunfire. Enemy attacks by frustrated independent battalion confronCommander Wang Hesong Xu Miao came Nanxun sniper assault of the Elves. 8th, the situation is more severe in the town. One aftg from the distance, reportedly is Deputy level flights over the town, fired. That night, the Elves attack Wuzhen confirmed information. Night, bursts of gunfire comin-. Past the bustling town just seems a deserted and desolate. 7th day in implementing low
本文档为【欧姆龙PLC编程入门】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_314871
暂无简介~
格式:doc
大小:338KB
软件:Word
页数:0
分类:互联网
上传时间:2017-09-18
浏览量:24