CN1067166C - A Programmable Monitoring System Constructing a Ladder Diagram Using a Personal Computer - Google Patents
A Programmable Monitoring System Constructing a Ladder Diagram Using a Personal Computer Download PDFInfo
- Publication number
- CN1067166C CN1067166C CN95102767A CN95102767A CN1067166C CN 1067166 C CN1067166 C CN 1067166C CN 95102767 A CN95102767 A CN 95102767A CN 95102767 A CN95102767 A CN 95102767A CN 1067166 C CN1067166 C CN 1067166C
- Authority
- CN
- China
- Prior art keywords
- control
- ladder
- screen
- program
- monitoring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 66
- 238000010586 diagram Methods 0.000 title claims abstract description 47
- 230000006870 function Effects 0.000 claims abstract description 29
- 238000013461 design Methods 0.000 claims abstract description 10
- 238000013519 translation Methods 0.000 claims description 26
- 238000004364 calculation method Methods 0.000 claims description 18
- 238000004891 communication Methods 0.000 claims description 12
- 230000009471 action Effects 0.000 claims description 11
- 230000008878 coupling Effects 0.000 claims description 11
- 238000010168 coupling process Methods 0.000 claims description 11
- 238000005859 coupling reaction Methods 0.000 claims description 11
- 230000008859 change Effects 0.000 claims description 7
- 238000000034 method Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 5
- 241000702244 Orthoreovirus Species 0.000 claims description 3
- 238000009795 derivation Methods 0.000 claims description 3
- 125000004122 cyclic group Chemical group 0.000 claims description 2
- FGUUSXIOTUKUDN-IBGZPJMESA-N C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 Chemical compound C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 FGUUSXIOTUKUDN-IBGZPJMESA-N 0.000 claims 1
- 238000007639 printing Methods 0.000 abstract description 6
- 238000013480 data collection Methods 0.000 abstract 1
- 238000005516 engineering process Methods 0.000 description 3
- 238000004883 computer application Methods 0.000 description 1
- 238000012938 design process Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
本发明涉及一种计算机的应用技术,更确切地说是涉及一种用个人电脑完成PLC功能,并以全屏幕阶梯图编辑设计该功能的可编程监控系统。The invention relates to a computer application technology, more precisely to a programmable monitoring system which uses a personal computer to complete the PLC function and edits and designs the function with a full-screen ladder diagram.
PLC可编程控制器和个人电脑问世已十余年了,它们在控制领域中各自独立发展着。而一般的PLC可编程控制器为了全屏幕显示而特别开发出电浆型屏幕,采用单独的通讯模式,编辑的程序也需另用写入器逐条输入(如台湾专利公报第162359号中所公开的技术),或借助于电脑完成,但PLC可编程控制器本身没有及时存挡、打印等功能,必须连接个人电脑才能执行,而个人电脑在完成这些功能时需使用C语言、Basic或汇编语言,因此一般操作人员是难以完成这种工作的。正如调查结果表明的那样,使用PLC可编程控制器且要作监控、及时存档、打印的工作人员中多数没有会使用上述语言的,加之培训、费用、完成工期、日后维修等诸多问题,都是PLC可编程控制器的设计人员所必须考虑改进的问题。PLC programmable logic controller and personal computer have come out for more than ten years, and they have developed independently in the field of control. The general PLC programmable controller has specially developed a plasma screen for full-screen display, adopts a separate communication mode, and the edited program also needs to be input one by one with a writer (as disclosed in Taiwan Patent Publication No. 162359 technology), or with the help of a computer, but the PLC programmable controller itself does not have functions such as timely saving and printing, and must be connected to a personal computer to execute, and the personal computer needs to use C language, Basic or assembly language to complete these functions , so it is difficult for ordinary operators to complete this kind of work. As the survey results show, most of the staff who use PLC programmable controllers and need to monitor, file in time, and print do not know the above-mentioned languages. Designers of PLC programmable controllers must consider the improvement issues.
本发明的目的是设计一种应用个人电脑构筑阶梯图的可编程监控系统,是一种以个人电脑直接输入阶梯图、可直接作近、远控制及全屏幕监视的监控系统。The purpose of this invention is to design a programmable monitoring system using a personal computer to build a ladder diagram, which is a monitoring system that directly inputs the ladder diagram with a personal computer, can directly perform near and far control and full-screen monitoring.
本发明的系统将通常是独立执行的PLC功能移入个人电脑,并且以全屏幕阶梯图程序设计功能来取代个人电脑使用Basic、C、Pascal、汇编语言的过程,插入一般输出输入控制卡,或远方通讯控制模块,并加入PLC可编程控制器无法实现的及时存挡、打印及全屏幕监控功能,成为功能强大的监控系统。The system of the present invention moves the PLC function that is usually performed independently into the personal computer, and replaces the process of the personal computer using Basic, C, Pascal, and assembly language with the full-screen ladder diagram programming function, and inserts the general output and input control card, or remote Communication control module, adding timely saving, printing and full-screen monitoring functions that cannot be realized by PLC programmable controllers, has become a powerful monitoring system.
如此直接以阶梯图方式输入电脑,使用者不必逐条记忆指令,可由电脑直接接受执行,解决以往电脑仅作编辑器、本身无法执行需再转传到另一独立的PLC可编程控制器上才能执行的弊端,特别是可在全屏幕上监视所设定的参数是否正确,收到直接控制及监视的双重效果,此外还可随时变换。In this way, the computer is directly input in the form of a ladder diagram, and the user does not need to memorize the instructions one by one, and the computer can directly accept and execute them. In the past, the computer was only used as an editor, which could not be executed by itself and had to be transferred to another independent PLC programmable controller for execution. In particular, it can monitor whether the set parameters are correct on the full screen, receive the dual effects of direct control and monitoring, and can also be changed at any time.
本发明应用个人电脑构筑阶梯图的可编程监控系统,包括与控制、地址、数据总线连接的键盘输入器,微处理器、分别存贮各执行模块及计算状态结果的RAM-1、RAM-2存贮器、只读存贮器、与打印机连接的打印机驱动接口、与软硬碟磁碟机连接的软硬碟控制卡、通讯收发数据接口、与全屏幕监视器连接的显示数据暂存接口卡和一输出输入端子,本发明系统还设置有分别与输出输入端子及控制、地址、数据总线连接的控制卡,具有锁定暂存功能,用于程序控制输出输入。控制卡可自带或不带CPU,本发明系统有光电耦合阵列电路与输出输入端子连接,光电耦合阵列电路输入端连接工作于开关状态的电气元件或工作于程度变化状态的模拟电气元件或另一光电耦合电路,光电耦合阵列电路输出端连接耦合功率电路或继电器电路。The present invention uses personal computer to construct the programmable monitoring system of ladder diagram, comprises the keyboard input device that is connected with control, address, data bus, microprocessor, RAM-1, RAM-2 that store each executive module and calculation state result respectively Memory, read-only memory, printer driver interface connected with printer, floppy disk control card connected with floppy disk drive, communication sending and receiving data interface, display data temporary storage interface connected with full-screen monitor card and an output and input terminal, the system of the present invention is also provided with a control card connected to the output and input terminals and control, address, and data buses respectively, and has a locking temporary storage function for program control output and input. The control card can be equipped with or without a CPU. The system of the present invention has a photoelectric coupling array circuit connected to the output and input terminals. A photoelectric coupling circuit, the output end of the photoelectric coupling array circuit is connected to a coupling power circuit or a relay circuit.
本发明系统还包括有硬件设定模块、阶梯图编辑模块、阶梯翻译与PLC程序监控模块,电脑控制卡具有可弹性使用及扩充控制点的功能,以自定义输入方式设定控制点与逻辑输出入控制点对应,而对不规则的模拟量输出入控制,则外加驱动接口卡执行,通过键盘操作按一般文书编辑构筑阶梯图,实现电脑输入,描绘控制顺序并设定各元件参数,使电脑一方面可直接执行输出入控制,另一方面可通过屏幕监视所设定硬件参数的正确与否,使监控一体。The system of the present invention also includes a hardware setting module, a ladder diagram editing module, a ladder translation and PLC program monitoring module, and the computer control card has the function of flexible use and expansion of control points, and the control points and logic output are set in a custom input mode Corresponding to the input control point, and for irregular analog input and input control, it is executed by adding a drive interface card, and the ladder diagram is edited and constructed according to the general document through keyboard operation, and the computer input is realized. The control sequence is drawn and the parameters of each component are set, so that the computer can On the one hand, the input and output control can be performed directly, on the other hand, the correctness of the set hardware parameters can be monitored through the screen, so that the monitoring is integrated.
本发明的功能编辑可监控画面及显示活点位置,程序自动读取活点地址并配合PLC程序执行状况作监控显示。The function editor of the present invention can monitor the screen and display the position of the active point, and the program automatically reads the address of the active point and cooperates with the execution status of the PLC program for monitoring and display.
本系统的具有开关状态的电气元件包括接近开关、压力阀等,具有程度变化状态的模拟电气元件包括温度计、测力计等,控制设备包括马达、变频器等。本系统除具有传统PLC可编程控制器的人机界面功能外,还具有打印、全屏幕环境、硬碟,各种类型通讯网路界面、光碟、语音、存挡等控制功能。The electrical components with switching status of this system include proximity switches, pressure valves, etc., the analog electrical components with degree change status include thermometers, force gauges, etc., and the control equipment includes motors, frequency converters, etc. In addition to the human-machine interface functions of traditional PLC programmable controllers, this system also has control functions such as printing, full-screen environment, hard disk, various types of communication network interfaces, CD-ROM, voice, and storage.
下面结合实施例及附图进一步说明本发明的技术。The technology of the present invention will be further described below in conjunction with the embodiments and accompanying drawings.
图1为本发明系统硬件结构方框原理图;Fig. 1 is a schematic block diagram of the system hardware structure of the present invention;
图2为本发明系统软件结构方框原理图;Fig. 2 is a block schematic diagram of the system software structure of the present invention;
图3为本发明硬件设定流程图;Fig. 3 is the flow chart of hardware setting of the present invention;
图4为本发明阶梯图程序设计流程图;Fig. 4 is a flow chart of ladder diagram program design of the present invention;
图5为本发明元件编辑流程图;Fig. 5 is a flowchart of component editing in the present invention;
图6为本发明的阶梯翻译与PLC监控流程图;Fig. 6 is ladder translation and PLC monitoring flowchart of the present invention;
图7为本发明的翻译执行档阶梯流程图;Fig. 7 is a ladder flow chart of the translation execution file of the present invention;
图8为本发明的PUSH-POP演算控制流程图;Fig. 8 is the PUSH-POP calculus control flowchart of the present invention;
图9为本发明的硬件设定模块画面示意图;Fig. 9 is a schematic diagram of the screen of the hardware setting module of the present invention;
图10为本发明可编程翻译模块的档案管理示意图;Fig. 10 is a schematic diagram of file management of the programmable translation module of the present invention;
图11为本发明可编程翻译模块选定界面卡种类及地址设定示意图;Fig. 11 is a schematic diagram of the interface card type and address setting selected by the programmable translation module of the present invention;
图12为本发明阶梯式控制动作程序编辑图;Fig. 12 is a stepwise control action program editing diagram of the present invention;
图13为本发明的阶梯式控制动作程序编辑画面方框示意图;Fig. 13 is a schematic block diagram of a ladder control action program editing screen of the present invention;
图14为本发明阶梯式控制动作程序编辑图存档后所显示的控制监视除错画面。Fig. 14 is the control monitoring and debugging screen displayed after the editing diagram of the ladder control action program of the present invention is archived.
参见图1,本发明系统硬件结构包括键盘输入器1、全屏幕监视器2、软硬磁碟机3、打印机4、输出端子5、输入端子5’、显示数据暂存接口卡6、软硬碟控制卡7,通讯收发数据接口8、打印机驱动接口9、锁存型暂存器的程序控制输出入控制卡10、微处理器11、储存有各执行模块的读写存贮器12(RAM-1)、储存计算状态结果的读写存贮器13(RAM-2)和只读存贮器14(ROM)。Referring to Fig. 1, the system hardware structure of the present invention comprises a
本系统阶梯式执行程序又可包括如图5所示的编辑模块、如图7所示的翻译模块和如图8所示的指令群演算控制模块。The stepwise execution program of the system may further include an editing module as shown in FIG. 5 , a translation module as shown in FIG. 7 , and an instruction group calculation control module as shown in FIG. 8 .
图1中锁存型暂存器的程序控制输出入控制卡10,其输入端子5′,连接光电耦合阵列电路(OPTO),可与工作于开关状态如接近开关、压力阀等的电气元件连接,或与具有程度变化状态如温度计、测力计(LOAD CELL)等的模拟电气元件连接,也可再连接光电耦合电路。输出端子5也通过光电耦合阵列电路OPTO与功率电路、继电器连接,或用模拟信号控制动作的设备,如伺服马达、变频器等。The program control input and
可编程编辑模块及翻译模块的数据资料,可预先存入软硬磁碟机3内,也可事先录ROM14内,供使用者编辑构筑阶梯图和将阶梯程序翻译成PLC可编程控制器使用的指令。图1所示的结构可完成阶梯程序的编辑、翻译、控制输出输入、作全屏幕监视、及时存档及打印等功能。图1中15为地址、数据,控制总线的汇流排。The data of the programmable editing module and the translation module can be pre-stored in the soft and
参见图2,本系统的功能模块,主要包括硬件设定模块20、阶梯图编辑模块21和阶梯翻译与PLC程序监控模块23。其中,硬件设定模块20用于设定硬件环境及执行PLC或阶梯编辑,其设定后会产生所设定的参数档供阶梯翻译与PLC监控使用;阶梯图编辑模块22可产生所设定的编辑档,作为阶梯翻译与PLC监控的控制程序;阶梯翻译与PLC程序监控模块23另以设定档进入PLC程序,将执行中的监控点数据25显示于如图12所示的全屏幕监控环境中,该阶梯图及其监控点28、26,均可由打印机打出,也可及时存档于软硬磁碟机中。阶梯翻译与PLC程序监控模块23,也可作为本系统与不同硬件接口的驱动模块,不管将来新增加什么接口或与远方控制模块的特殊通讯,只需修改或增加该模块,因此现有的各种PLC均可接入本系统内,本系统具有较强的兼容性及开放性。Referring to FIG. 2 , the functional modules of the system mainly include a
参见图3,为硬件设定模块流程图,图中30为程序入口,并通过硬件所设定的参数开始(31),经选定后的信息显示32及键盘扫描后,执行环境设定33或阶梯图编辑34或PLC程序控制监视35或储存/清除显示38。Referring to Fig. 3, it is the hardware setting module flow chart, among the figure 30 is program entry, and starts (31) by the parameter set by hardware, after the selected information display 32 and keyboard scanning, execution environment setting 33 Or ladder diagram editing 34 or PLC program control monitoring 35 or storage/clear display 38.
参见图4,为阶梯图设计流程图,图中40为程序入口,经过启始数据结构及画面与功能判断41后,可由操作者选择一种模式进行,包括学习模式42、正常设计模式43和展示模式44。其中学习模式42记录设计过程并存入另一文档,使用者可利用展示模式44展示这种学习过程;正常设计模式43先显示本页阶梯程序45,再扫描键盘供选择功能;元件编辑模块45包括常开
、常闭或画线(一),若为画线,则用“OR”逻辑演算其前后上下元件种类,自动布好游标位置的连线种类
,存档、取档、打印、删除、插入、拷贝或移动位置模块47具有方向及标示功能;结束程序48返回上层母程序。Referring to Fig. 4, it is a ladder diagram design flow chart, in which 40 is the program entry, after starting data structure and screen and
参见图5,为元件编辑流程图,该程序由扫描键盘41输入,通过右移键461、下移键462、上移键463实施元件编辑及以“OR”运算连接或空一格,达到阶梯图的编辑目的,而变数的识定是以FLAG为识别码,由索引元件库Symbo[]所阵列的元件设定给光标所指的编辑结构Src〔〕、CH〔〕464。Referring to Fig. 5, it is a flow chart of component editing. The program is input by scanning the
参见图6,为阶梯翻译与PLC监控执行流程,50为程序入口,经检查及配置记忆区5l,以读取要执行的阶梯程序挡,通过翻译、检查阶梯程序语法52,以显示启始画面53,再由功能扫描及显示画面判断54,以进入全屏幕逻辑监控区55、或自定义画面监控区56、或变换画面57、或储存数据及清除显示58。Referring to Fig. 6, it is the execution process of ladder translation and PLC monitoring, 50 is the program entry, after checking and configuring the memory area 51, to read the ladder program block to be executed, by translating and checking the ladder program syntax 52, to display the start screen 53, then judge 54 by function scanning and display screen, to enter the full-screen logical monitoring area 55, or self-defined screen monitoring area 56, or change screen 57, or store data and clear display 58.
其中全屏幕逻辑监控区55是以推导演算方式执行各指令群产生的逻辑状态(如图14所示),作为输出条件判断,并以0/1代表条件的假/真,将所有各点状态显示在屏幕上。自定义画面监控区56是由用户自行设定的,自行布置显示的活点位置(如图14所示)。活点所代表的意义亦由用户按需要输入,本程序先将监视点之值以自定义的公式换算后显示到该点的位置上。变换画面57用于切换全屏幕逻辑监控区55与自动画面监控区56的画面。执行完成全屏幕逻辑监控区55或自定义画面监控区56或变换画面57或储存数据及清除显示58后,再扫描由通讯接口59进入的远方模块控制点状况,更新内部条件标志,作为下一循环控制的条件。Wherein the full-screen logic monitoring area 55 is to carry out the logical state (as shown in Figure 14) that each instruction group produces with derivation calculation mode, judge as the output condition, and represent the false/true of condition with 0/1, all each point state displayed on the screen. The self-defining picture monitoring area 56 is set by the user voluntarily, arranges and displays the active point position (as shown in Figure 14 ) voluntarily. The meaning represented by the active point is also input by the user according to the needs. This program first converts the value of the monitoring point with a self-defined formula and displays it at the position of the point. The changing picture 57 is used to switch the picture of the full-screen logical monitoring area 55 and the automatic picture monitoring area 56 . Execution completes the full-screen logic monitoring area 55 or self-defining screen monitoring area 56 or changing the screen 57 or storing data and clearing the display 58, then scanning the remote module control point status entered by the communication interface 59, updating the internal condition sign, as the next step Conditions for loop control.
参见图7,为翻译执行挡阶梯程序流程图,由翻译执行挡52分单一与多行模式形成一命令群,以检查语法是否正确,再配合判断逻辑件前后连接线型态521,若为分岔元件(如
,则视为逻辑件的代号LD,否则为“AND”形态,并将其运算元置于MC〔〕阵列内,再依其逻辑件位置换算为操作元种类522(如计时器、计数器、输出点、输入点、辅助接点、保持接点等)。当连线元件为“OR”型态时,即设定此逻辑件为ORB,并将该运算元置于MC[)阵列523内,当前连线元件为分岔元件,即设定此逻辑件为ANDB,并将该逻辑件为ORB,并将该运算元置于MC〔〕阵列524内。当为一输出运算元时,依其种类设定执行输出OUT、存挡(SAVEIN)、打印(PRINT)、上微分(DIFUP)或下微分(DIFDN)525,执行至最后一列526时,随即转换为MC〔〕阵列存贮器内进行控制程序,即图5中的显示选定监控画面53,继续进行前述操作。Referring to FIG. 7 , it is a flow chart of the step-by-step program for translation execution. The translation execution block 52 is divided into single and multi-line modes to form a command group to check whether the syntax is correct, and then cooperate with the judgment logic before and after the
参见图8,图8为系统PUSH-POP演算可编程控制流程图,经选定逻辑监控区55和自定义画面监控区56后,即进入演算控制,步骤如下;Referring to Fig. 8, Fig. 8 is a flow chart of programmable control of system PUSH-POP calculus, after selecting logic monitoring area 55 and self-defining screen monitoring area 56, enters calculus control, the steps are as follows;
一、读取控制卡输入暂存器设定存贮器RAM-2(图1中13)的旗标565;One, read the
二、读取下一组MC〔〕阵列指令566;Two, read the next group of MC ()
三、判断第一运算元种类,使操作元现状旗标处于FG〔〕存贮单元内567;Three, judge the first operand kind, make the operand status flag be in the FG ()
四、判断此运算元种类,若FG[]的标志为0时,其旗标为真/假,作输出动作;4. Determine the type of the operand. If the flag of FG[] is 0, its flag is true/false, and the output action is performed;
五、该输出动作可分别进入四种演算状态;5. The output action can enter four calculation states respectively;
(569)判断OR、ORB、ORI、AND、ANI、ANB,当为其中之一时即作FG〔〕旗标运算,同时与前一旗标做逻辑“与”运算,并将运算结果置于FG〔〕内;(569) judge OR, ORB, ORI, AND, ANI, ANB, when it is one of them, do the FG [] flag operation, and do logic "AND" operation with the previous flag at the same time, and place the operation result in FG 〔〕Inside;
(570)当判断为LD,1DI时,该组操作元即置于FG〔〕内;(570) When judging as LD, 1DI, this group of operands is promptly placed in FG [];
(571)当判断为输出OUT时,则按该组操作元判断种类,再将旗标设于RAM-2中(图1中13),输出0/1至控制卡暂存器(图1中10),再传送给与输出端子连接的输出元件(图1中5)上。(571) when judging as outputting OUT, then judge kind by this group of operating elements, then flag is set in RAM-2 (13 in Fig. 1),
(572)当判断为上微分时(DIFUP),即出现“真”条件,上升沿输出一时间循环的脉冲;若为下微分(DIFDN),即“真”条件消失,下降沿输出一时间循环的脉冲;若为“打印”(PRINT)时,则“真”条件出现,将指定数据输送给打印机;若为“存档”(SAVEIN)时,“真”条件出现,将指定数据送入软/硬磁碟机内。(572) When it is judged as the upper differential (DIFUP), the "true" condition appears, and the rising edge outputs a pulse of a time cycle; if it is a lower differential (DIFDN), the "true" condition disappears, and the falling edge outputs a time cycle pulse pulse; if it is "print" (PRINT), then the "true" condition appears, and the specified data is sent to the printer; if it is "archive" (SAVEIN), the "true" condition occurs, and the specified data is sent to the software/ Inside the hard drive.
参见图9、为本系统硬件设定模块画面示意图,其主要动作流程仍依据前述结构,步骤如下:See Figure 9, which is a schematic diagram of the module screen for setting the hardware of this system. Its main action flow is still based on the aforementioned structure, and the steps are as follows:
一、启动程序可由软/硬碟内启始,将执行命令读入RAM内;1. The startup program can be started from the floppy/hard disk, and the execution command is read into RAM;
二、设定控制卡的地址67;2. Set the address 67 of the control card;
三、功能启始控制卡种类的输出/输入工作模式66,并将功能控制卡控制参数以一文件名先存于软碟或硬碟中65;3. The output/input working mode 66 of the function start control card type, and the control parameters of the function control card are stored in a floppy disk or hard disk with a file name 65;
四、进入阶梯式控制程序编辑器60,其控制程序可事先存于软/硬碟3内(图1),也可事先录在ROM14内(图1),用户依事先的规划作编辑。Four, enter the ladder control program editor 60, its control program can be stored in the soft/hard disk 3 (Fig. 1) in advance, also can record in the ROM14 in advance (Fig. 1), the user edits according to the planning in advance.
五、按图4所示的阶梯图程序进行阶梯控制设计。5. Carry out ladder control design according to the ladder diagram program shown in Figure 4.
六、元件编辑功能46按图5流程完成,其阶梯图程序存放于Src〔〕结构变数存贮器13内(图1的RAM-2) 的标示为自动连线元件逻辑件 而其输出件表示如〔OUTR〕的输出点)。Six, element editing function 46 is finished by Fig. 5 flow process, and its ladder diagram program is stored in Src () structure variable memory 13 (RAM-2 of Fig. 1) Autowiring Component Logic And its output means the output point such as [OUTR]).
七、经过以上步骡,设计完成的阶梯程序由微处理器11(图1)存入软硬碟3内储存。Seven, through the above steps, the completed ladder program is stored in the
八、阶梯程序可通过打印机接口打印。8. The ladder program can be printed through the printer interface.
九、进入可编程翻译模块(图9中61)。9. Enter the programmable translation module (61 in FIG. 9).
1、可编程翻译模块数据可事先存在软硬碟3(图1)中,也可录在ROM14中;1. The data of the programmable translation module can be stored in the soft disk 3 (Fig. 1) in advance, and can also be recorded in the
2、程序将用户的阶梯程序翻译成指令;其详细的执行步骤如图7所示,操作元如计时器、计数器、输出点、输入辅助接点、保持接点;运算元如置入LD、反置入LDI、与AND、与非ANDI、或OR、或非ORI、方块与ANB、方块或ORB、上微分DIFUP、下微分DIFDN、输出OUT、存档SAVEIN、打印PRINT;分岔元件如
连线符号;分岔方块,即由分岔元件组成的阶梯图,如函12中的03列、004列,并由800、207、206组成一方块(BLOCK)。2. The program translates the user's ladder program into instructions; its detailed execution steps are shown in Figure 7, and the operation elements include timers, counters, output points, input auxiliary contacts, and hold contacts; Input LDI, and AND, and non-ANDI, or OR, or non-ORI, block and ANB, block or ORB, upper differential DIFUP, lower differential DIFDN, output OUT, archive SAVEIN, print PRINT; branch components such as Connection symbol; bifurcating square, that is, a ladder diagram composed of bifurcating elements, such as column 03 and
十、将图12的阶梯图程序由Src〔〕结构变数存贮器内转入MC〔〕阵列变数存贮体内存贮,其步骤为:Ten, the ladder diagram program of Fig. 12 is transferred into MC () array variable storage body internal storage by Src () structure variable memory, its step is:
1、可编程控制模块存放在MC〔〕阵列变数存贮器13内,经读取、判断、设定、输出、显示的步骤循环执行;1. The programmable control module is stored in the MC[] array
2、程序进入如图6所示的阶梯翻译与PLC监控中,经键盘扫描54,选择全屏幕逻辑监控55或自定义画面监控56或变换画面57或储存数据及清除显示58,以监视通讯位置数据或远方控制站的连线数据59,用户可执行可编程控制程序;2. The program enters the ladder translation and PLC monitoring as shown in Figure 6. After keyboard scanning 54, select full-screen logic monitoring 55 or custom screen monitoring 56 or change screen 57 or save data and clear display 58 to monitor the communication position Data or the connection data 59 of the remote control station, the user can execute the programmable control program;
3、通过全屏幕逻辑监控55及自定义画面监控56(图6),以推导演算方式作为可编程控制的主要执行程序(图8),按读取、判断、设定、输出作循环动作,即读取存贮器13的旗标,再读取下一组MC〔〕阵列指令,并判断第一运算元种类,将代表操作元现状的旗标存于存贮器13的PUSH-FG〔〕存贮单元中,当判断运算元,若为PUSH-FG〔〕的指标为0时,其旗标为真/假,执行输出。3. Through the full-screen logic monitoring 55 and the self-defined screen monitoring 56 (Fig. 6), the derivation calculation method is used as the main execution program of the programmable control (Fig. 8), and the cyclic actions are read, judged, set, and output. That is, read the flag of the
经图12所示的阶梯程序设计后存档,进入Run模式环境,即会出现图13、图1 4所示的操作画面,其中;After the ladder program design shown in Figure 12 is archived, enter the Run mode environment, and the operation screen shown in Figure 13 and Figure 14 will appear, in which;
一、显示经阶梯翻译后的指令群(从图1的13中读取),循环地显示在窗口80上(如图14的STEP TRACE),用户可以跟踪方式逐步测试程序及执行结果;1. Display the instruction group after ladder translation (read from 13 in Fig. 1), and display it cyclically on window 80 (as shown in STEP TRACE in Fig. 14), and the user can test the program and execution results step by step in a tracking mode;
二、引导用户使用命令模式88;2. Guide users to use command mode 88;
三、本控制系统内的输出入虚拟接点状态显示区,可分为无记忆式虚拟接点一俗称内部一般辅助接点89(图12中的AUX)及记忆式虚拟接点一俗称内部保持式辅助接点,断电后仍能保持原逻辑状态。3. The status display area of the input and output virtual contacts in this control system can be divided into non-memory virtual contacts, commonly known as internal general auxiliary contacts 89 (AUX in Figure 12), and memory virtual contacts, commonly known as internal holding auxiliary contacts. The original logic state can still be maintained after power off.
实际输入点状态显示区81,各输入状态为1字节,等于8Bits为8点输入,所以编号0-7、10-17、20-27…其实际相对位置由图9的67I/O-CHl。内部设定(同图10、图11的相同位置)。而当选定接口卡后,该地址就自动设定,除非接口卡不止一个,或者其位置特殊,才需用户调整,用户通过监视此区81,即可了解外界配线实际接点的输入状态,一假设的时间继电器接点区82即为计时器区,如图14所示,表中80即从800至807,81即810至817,810处即0#7,#左侧0表示该计时器在0状态时能关(OFF),7表示计时剩0.7秒,当计时为0时,左侧O转态为1(ON),故本系统的计时器均为开时计时(ON DELAY),计数单位0.1秒。计数区83,记录共有多少次计数操作,如生产数量的计数控制。如图13中的计数区83,图14中90的位置,90表示地址900至907,91表示910-917,是可供使用的计数器,如900处的“0#21”,表示目前该通道累计有21个计数,状态仍为0(OFF),还未达到程序设定的计数终值(用户对各计数器的控制需预先设定)。实际接点输出状态显示区84(如图14中1=ON,0=OFF),用户可在此画面监视实际机台控制点动作的实际状态,该输出区84内,200表示200至207,210表示210-217……依据实际接口卡的位置,向用户提供另一弹性使用空间。由用户自定义的显示画面85活点显示位置标示区,用户按需要用Ctrl-U进入特定画面,在自定义的画面下及时反映控制点现状,便于用户迅速下达命令。显示区86用于显示与目前程序执行相关的环境信息,避免发生给出错误参数却不知的情况。显示系统运行中的现况则在87区中显示,使用户了解系统运行中有无错误。Actual input point state display area 81, each input state is 1 byte, equal to 8Bits is 8 points of input, so numbering 0-7, 10-17, 20-27...its actual relative position is by 67I/O-CH1 of Fig. 9 . Internal settings (same position as in Figure 10 and Figure 11). And when the interface card is selected, the address is automatically set, unless there is more than one interface card, or its position is special, it needs to be adjusted by the user. By monitoring this area 81, the user can know the input status of the actual contact point of the external wiring. A hypothetical time relay contact area 82 is the timer area, as shown in Figure 14, 80 in the table is from 800 to 807, 81 is 810 to 817, 810 is 0#7, 0 on the left side of # indicates the timer It can be turned off (OFF) when it is in the 0 state, and 7 means that there are 0.7 seconds left in the timing. When the timing is 0, the left O turns to 1 (ON), so the timers in this system are all ON DELAY. The counting unit is 0.1 second. The counting area 83 records how many counting operations there are, such as the counting control of the production quantity. As shown in the counting area 83 in Figure 13, the position of 90 in Figure 14, 90 represents addresses 900 to 907, and 91 represents 910-917, which are available counters, such as "0#21" at 900, indicating the current channel There are 21 counts accumulatively, the state is still 0 (OFF), and the final counting value set by the program has not yet been reached (users need to pre-set the control of each counter). Actual contact output state display area 84 (1=ON, 0=OFF in Figure 14), the user can monitor the actual state of the actual machine control point action on this screen, in this
上述画面的显示功能,经阶梯程序翻译后自行执行,具有于个人电脑上作阶梯设计、PLC可编程控制器的功能,可提供监控及结果的及时显示、存档、打印,而不需从语言设计、控制器本身人机界面等执行。The display function of the above screen is automatically executed after the translation of the ladder program. It has the function of ladder design on a personal computer and PLC programmable controller. It can provide monitoring and timely display, archiving, and printing of results without language design. , the human-machine interface of the controller itself, etc.
本发明不仅可供学习,还可供工业界作为实现自动化的工具手段。The invention not only can be used for learning, but also can be used as a tool for realizing automation in the industry.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN95102767A CN1067166C (en) | 1995-03-13 | 1995-03-13 | A Programmable Monitoring System Constructing a Ladder Diagram Using a Personal Computer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN95102767A CN1067166C (en) | 1995-03-13 | 1995-03-13 | A Programmable Monitoring System Constructing a Ladder Diagram Using a Personal Computer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1131298A CN1131298A (en) | 1996-09-18 |
| CN1067166C true CN1067166C (en) | 2001-06-13 |
Family
ID=5074443
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN95102767A Expired - Fee Related CN1067166C (en) | 1995-03-13 | 1995-03-13 | A Programmable Monitoring System Constructing a Ladder Diagram Using a Personal Computer |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1067166C (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100368987C (en) * | 1999-08-31 | 2008-02-13 | 迪吉多电子股份有限公司 | Editing device and storage medium for storage editor program |
| JP3994090B2 (en) * | 2004-01-29 | 2007-10-17 | ファナック株式会社 | Numerical controller |
| JP2014032529A (en) * | 2012-08-03 | 2014-02-20 | Hakko Denki Kk | Plc system, drawing editor device thereof, and programmable display |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN86105001A (en) * | 1985-08-14 | 1987-04-29 | 株式会社日立制作所 | The display control method of multi-window system |
-
1995
- 1995-03-13 CN CN95102767A patent/CN1067166C/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN86105001A (en) * | 1985-08-14 | 1987-04-29 | 株式会社日立制作所 | The display control method of multi-window system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1131298A (en) | 1996-09-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111752427B (en) | Programmable display and programmable logic controller system | |
| US5404288A (en) | Transfer line control system utilizing distributed computing | |
| US5764507A (en) | Programmable controller with personal computerized ladder diagram | |
| WO1995015523A1 (en) | Multi-language generation of control program for an industrial controller | |
| CN100407081C (en) | CNC device | |
| EP0089193B1 (en) | Method and apparatus for displaying ladder diagrams | |
| CN1067166C (en) | A Programmable Monitoring System Constructing a Ladder Diagram Using a Personal Computer | |
| CN100428095C (en) | Method for producing a structured representation describing a particular automation device | |
| CN120010383A (en) | Embedded CNC system based on heterogeneous multi-core | |
| CN102759901B (en) | Numerical control machine tool information monitoring system and implementation method thereof | |
| CN100464267C (en) | Bus protocol analysis chip for servocontrol | |
| CN217061428U (en) | Chip burning device | |
| CN211044204U (en) | Mouse keyboard simulation equipment | |
| EP0092312A2 (en) | Method and apparatus for displaying ladder diagrams | |
| CN1743982A (en) | Program editing system and method for programmable logic controller | |
| CN202716305U (en) | Program control paper cutting machine using bar codes to read cutting information | |
| CN202711232U (en) | A human-computer interaction system based on touch operation | |
| CN201780481U (en) | Embedded type electric control system for paper cutter | |
| JP2653276B2 (en) | Keyboard simulator | |
| CN121509237A (en) | A method and system for sensor configuration transfer using structured CSV files | |
| CN201311639Y (en) | Device for indicating and recording an operating process | |
| CN118428284A (en) | Circuit schematic diagram generation method and related device | |
| JP3251125B2 (en) | Interactive logic simulation system | |
| CN2634907Y (en) | High speed digital controlled tooth brush bristle setting machine controlling device | |
| EP0089194B1 (en) | Method and apparatus for displaying ladder diagrams |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C19 | Lapse of patent right due to non-payment of the annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |