[go: up one dir, main page]

CN201583832U - Novel portable PLC programming device - Google Patents

Novel portable PLC programming device Download PDF

Info

Publication number
CN201583832U
CN201583832U CN2009202715662U CN200920271566U CN201583832U CN 201583832 U CN201583832 U CN 201583832U CN 2009202715662 U CN2009202715662 U CN 2009202715662U CN 200920271566 U CN200920271566 U CN 200920271566U CN 201583832 U CN201583832 U CN 201583832U
Authority
CN
China
Prior art keywords
module
interface
main control
plc
control module
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 - Lifetime
Application number
CN2009202715662U
Other languages
Chinese (zh)
Inventor
蔡启仲
李克俭
罗功琨
潘绍明
任伟
刘步林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi University of Science and Technology
Original Assignee
Guangxi University of Science and Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangxi University of Science and Technology filed Critical Guangxi University of Science and Technology
Priority to CN2009202715662U priority Critical patent/CN201583832U/en
Application granted granted Critical
Publication of CN201583832U publication Critical patent/CN201583832U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Programmable Controllers (AREA)

Abstract

The utility model relates to a novel portable programming device, which comprises a main control module, a memory module, a power management module, a communication interface module, a human-computer interface module and a CAN interface module, the system is based on the main control module to carry out multi-task and communication management, PLC user program editing and processing as well as monitoring and debugging; the power management module realizes power supply selection; the memory module stores system and user programs, data and dynamic operating space; the communication interface module extends UART and USB interfaces; the human-computer interface module provides an interactive interface; the CAN interface module programming device can connect any CAN nodes into a CAN field bus; and the main control module is respectively connected with the other five modules, the power management module and the communication interface module are respectively connected with the a PLC host, and the communication interface module is connected with an upper computer. The utility model can work offline, directly communicates with the upper computer, and debugs, operates and monitors the long-distance PLC host user program.

Description

新型便携式PLC编程装置 New Portable PLC Programming Device

技术领域:Technical field:

本实用新型涉及一种编程装置,特别涉及一种PLC(可编程控制器)的编程监控装置。The utility model relates to a programming device, in particular to a PLC (programmable logic controller) programming monitoring device.

背景技术:Background technique:

编程装置是PLC(可编程控制器,以下简称PLC)的一个重要外围装置,当前的PLC编程装置主要有两类:一类是带有专用编程软件的计算机,另一类是专用便携式手持编程器;第一类PLC编程装置能够在脱机方式下编辑、插入、修改PLC用户程序,但在联机方式下必须通过专用通讯电缆连接PLC设备的固定通讯端口时才能进行编辑、插入、修改用户程序和现场监控、调试等操作;第二类便携式手持编程器具有体积小、重量轻、携带方便、适合现场编程调试的特点,但该编程装置必须通过专用电缆与PLC设备的固定通讯端口连接才能编辑、插入、修改用户程序以及调试现场PLC设备;而且,其工作电源由PLC专用接口提供,因此不能在脱机方式下使用。另一方面,由于受到编程装置内部存储器容量的限制,每次现场调试时编程装置内只能存放一个调试程序,而不能保存先前的用户程序,新的用户程序将覆盖编程装置内部已有的程序,当对修改后的程序调试不成功时,要恢复原有的用户程序还需要借助其他记录工具。这两类编程装置能分别与PLC设备通讯,但它们之间不能直接通讯。这两类编程装置在操作时都需要专用通讯电缆与PLC设备的专用接口相连,只能在被调试的PLC主机设备的附近操作。由于许多被控设备的控制部件在生产线上都处于距离PLC主机较远的位置,在调试时不能看到控制效果的状况,只能借助PLC主机的其他设备来显示PLC输入输出状况和控制效果,给调试带来不便。The programming device is an important peripheral device of PLC (programmable logic controller, hereinafter referred to as PLC). There are two main types of current PLC programming devices: one is a computer with special programming software, and the other is a special portable handheld programmer. ; The first type of PLC programming device can edit, insert, and modify PLC user programs in offline mode, but can edit, insert, modify user programs and On-site monitoring, debugging and other operations; the second type of portable handheld programmer has the characteristics of small size, light weight, easy to carry, suitable for on-site programming and debugging, but the programming device must be connected to the fixed communication port of the PLC equipment through a special cable to edit, Insert and modify user programs and debug on-site PLC equipment; moreover, its working power is provided by PLC dedicated interface, so it cannot be used in offline mode. On the other hand, due to the limitation of the internal memory capacity of the programming device, only one debugging program can be stored in the programming device for each on-site debugging, and the previous user program cannot be saved, and the new user program will overwrite the existing program in the programming device , when debugging the modified program is unsuccessful, other recording tools are needed to restore the original user program. These two types of programming devices can communicate with PLC equipment respectively, but they cannot communicate directly with each other. These two types of programming devices all need a special communication cable to be connected to the special interface of the PLC device during operation, and can only be operated near the PLC host device being debugged. Since the control components of many controlled devices are located far away from the PLC host on the production line, the control effect cannot be seen during debugging, and the PLC input and output status and control effect can only be displayed by other devices of the PLC host. Inconvenient for debugging.

实用新型内容:Utility model content:

本实用新型的目的在于提供一种基于嵌入式ARM微处理器的新型便携式PLC编程装置,该装置具有大的存储容量、能够在PLC实施控制的被控装置中的合适位置设置CAN总线节点、既能通过CAN总线对PLC主机进行远距离监控调试、又能与上位计算机直接通讯、且在脱机方式下能独立供电来实现脱机编译和调试用户PLC程序,以克服上述已有技术的不足之处。The purpose of this utility model is to provide a novel portable PLC programming device based on an embedded ARM microprocessor. It can carry out remote monitoring and debugging of the PLC host through the CAN bus, and can directly communicate with the upper computer, and can independently supply power in the off-line mode to realize off-line compilation and debugging of user PLC programs, so as to overcome the shortcomings of the above-mentioned existing technologies place.

为解决上述技术问题,本实用新型所采用的技术方案是:新型便携式PLC编程装置,包括主控制模块I、存贮器模块II、电源管理模块III、人机界面模块V和CAN接口模块VI;In order to solve the above-mentioned technical problems, the technical solution adopted in the utility model is: a novel portable PLC programming device, comprising a main control module I, a memory module II, a power management module III, a man-machine interface module V and a CAN interface module VI;

所述主控制模块I包括嵌入式ARM微处理器、实时时钟电路、复位电路、JTAG调试接口电路和内部充电电池,实时时钟电路、复位电路、JTAG调试接口电路和内部充电电池分别与嵌入式ARM微处理器相连接;主控制模块I的控制核心为嵌入式微处理器ARM,其功能是实现对主控制模块I中其他组成部分的调节和控制;复位电路为系统电路提供复位信号;JTAG调试接口电路提供调试接口与外接电路相连实现对编程装置硬件和软件的调试;实时时钟电路提供时间和日期信息;内部充电电池为编程装置提供5V电源以实现脱机工作;主控制模块I具有为其他模块提供调节控制和数据处理、处理外围模块的中断服务、调度处理各个模块的运行状态以及驱动硬件模块等功能,编程装置在主控制模块I中构建嵌入式实时操作系统,进行多任务管理和通讯管理,实现编辑、处理PLC用户程序及监控PLC运行状态的功能。Described main control module 1 comprises embedded ARM microprocessor, real-time clock circuit, reset circuit, JTAG debugging interface circuit and internal rechargeable battery, and real-time clock circuit, reset circuit, JTAG debugging interface circuit and internal rechargeable battery are respectively connected with embedded ARM The microprocessors are connected; the control core of the main control module I is an embedded microprocessor ARM, and its function is to realize the adjustment and control of other components in the main control module I; the reset circuit provides a reset signal for the system circuit; the JTAG debugging interface The circuit provides a debugging interface and is connected with an external circuit to realize the debugging of the hardware and software of the programming device; the real-time clock circuit provides time and date information; the internal rechargeable battery provides 5V power for the programming device to realize offline work; the main control module I has functions for other modules Provide functions such as adjustment control and data processing, processing interrupt services of peripheral modules, scheduling and processing the running status of each module, and driving hardware modules. The programming device builds an embedded real-time operating system in the main control module I for multi-task management and communication management. , to realize the functions of editing and processing PLC user programs and monitoring the running status of PLC.

所述存储器模块II包括Nor FLASH存储器、Nand FLASH存储器和SDRAM存储器;Nor FLASH存储器、Nand FLASH存储器和SDRAM存储器分别直接与主控制模块I的嵌入式ARM微处理器连接,实现ARM微处理器对存储器的操作控制,Nor FLASH存储器存储编程装置的嵌入式软件系统程序,Nand FLASH存储器存放PLC用户程序和数据,SDRAM存储器为系统运行和通讯数据处理提供空间。Described memory module II comprises Nor FLASH memory, Nand FLASH memory and SDRAM memory; Nor FLASH memory, Nand FLASH memory and SDRAM memory are directly connected with the embedded ARM microprocessor of main control module I respectively, realizes ARM microprocessor to memory Operation control, Nor FLASH memory stores the embedded software system program of the programming device, Nand FLASH memory stores PLC user programs and data, and SDRAM memory provides space for system operation and communication data processing.

所述电源管理模块III是实现电源选择和功率管理的主要模块,它有常用结构和简化结构两种结构形式:The power management module III is the main module to realize power selection and power management, and it has two structural forms: a common structure and a simplified structure:

所述电源管理模块III的常用结构包括:外部电源接口、电压转换电路和USB充电控制器,USB充电控制器和外部电源接口分别通过电压转换电路与主控制模块I的嵌入式ARM微处理器连接;电压转换电路还与主控制模块I的内部充电电池连接,所述电源管理模块III提供外部电源接口、将直流电压进行转换、或者从上位机的USB接口获取电源对内部充电电池充电或直接转换后供系统使用。The common structure of described power management module III comprises: external power interface, voltage conversion circuit and USB charging controller, USB charging controller and external power interface are respectively connected with the embedded ARM microprocessor of main control module I by voltage conversion circuit The voltage conversion circuit is also connected with the internal rechargeable battery of the main control module I, and the power management module III provides an external power supply interface, converts the DC voltage, or obtains power from the USB interface of the upper computer to charge the internal rechargeable battery or directly convert for later use by the system.

所述电源管理模块III的简化结构包括:外部电源接口和电压转换电路,所述外部电源接口通过电压转换电路与主控制模块I的嵌入式ARM微处理器连接,所述电压转换电路还与主控制模块I的内部充电电池连接,所述外部电源接口提供外部直流电源输入,所述电压转换电路将直流电压进行转换、对内部充电电池充电或直接转换后供编程装置使用。The simplified structure of the power management module III includes: an external power interface and a voltage conversion circuit, the external power interface is connected with the embedded ARM microprocessor of the main control module I through a voltage conversion circuit, and the voltage conversion circuit is also connected with the main The internal rechargeable battery of the control module 1 is connected, the external power supply interface provides an external DC power input, and the voltage conversion circuit converts the DC voltage, charges the internal rechargeable battery or directly converts it for use by the programming device.

所述人机界面模块V为用户与编程装置提供交互界面。The man-machine interface module V provides an interactive interface for the user and the programming device.

所述CAN接口模块VI在该编程装置联机工作时与远距离PLC主机的数据交换提供通讯接口,从而连接工业现场的任意CAN节点以接入CAN现场总线,实现在监控现场对远距离的PLC主机的程序调试和操作。The CAN interface module VI provides a communication interface for data exchange with a long-distance PLC host when the programming device is on-line, thereby connecting any CAN node on the industrial site to access the CAN field bus, and realizing monitoring of the remote PLC host at the monitoring site. program debugging and operation.

所述主控制模块I分别与存贮器模块II、电源管理模块III、人机界面模块V和CAN接口模块VI连接,电源管理模块III与PLC主机连接,CAN接口模块VI通过CAN总线与PLC主机和上位计算机连接。The main control module I is connected with the memory module II, the power management module III, the man-machine interface module V and the CAN interface module VI respectively, the power management module III is connected with the PLC host, and the CAN interface module VI is connected with the PLC host through the CAN bus Connect with the host computer.

其进一步技术方案是:Its further technical scheme is:

该编程装置还包括一作为编程装置扩展接口的通讯接口模块,该通讯接口模块也有常用结构与简化结构两种结构形式:The programming device also includes a communication interface module as an expansion interface of the programming device. The communication interface module also has two structural forms: a common structure and a simplified structure:

第一种,所述常用结构的通讯接口模块IV包括通用异步串行接口UART和USB接口,所述通用异步串行接口UART分别与上位计算机、PLC主机和主控制模块I的嵌入式ARM微处理器连接,USB接口分别与上位计算机、电源管理模块III和主控制模块I的嵌入式ARM微处理器连接,实现主控制模块I与PLC主机的数据通讯,以及主控制模块I直接与上位计算机的数据通讯。The first kind, the communication interface module IV of described common structure comprises universal asynchronous serial interface UART and USB interface, and described universal asynchronous serial interface UART is respectively connected with the embedded ARM microprocessing of host computer, PLC main frame and main control module 1 The USB interface is respectively connected with the host computer, the power management module III and the embedded ARM microprocessor of the main control module I, so as to realize the data communication between the main control module I and the PLC host, and the direct connection between the main control module I and the upper computer. data communication.

第二种,所述简化结构的通讯接口模块IVa仅仅有通用异步串行接口UART接口,将所述通用异步串行接口UART分别与上位计算机、PLC主机和主控制模块I的嵌入式ARM微处理器连接,实现主控制模块I与PLC主机的数据通讯,以及主控制模块I直接与上位计算机的数据通讯。The second kind, the communication interface module IVa of described simplified structure only has universal asynchronous serial interface UART interface, described universal asynchronous serial interface UART is respectively connected with the embedded ARM microprocessing of host computer, PLC main frame and main control module 1 The device is connected to realize the data communication between the main control module I and the PLC host, and the data communication between the main control module I and the host computer directly.

由于采用上述结构,本实用新型之新型便携式PLC编程装置具有以下有益效果:Due to the adoption of the above structure, the novel portable PLC programming device of the present utility model has the following beneficial effects:

一、能实现对PLC主机的远距离操作:1. It can realize the remote operation of the PLC host:

本实用新型是采用以CAN现场总线为基础的现场总线模式,用户可以在被控设备上选择合适的位置设置CAN总线节点,编程装置通过CAN接口模块VI连接CAN总线节点可以方便的接入CAN现场总线,由主控制模块I对通讯数据进行处理,实现本实用新型之便携式PLC编程装置在监控现场对远距离PLC主机的操作。The utility model adopts the field bus mode based on the CAN field bus, the user can select a suitable position on the controlled device to set the CAN bus node, and the programming device can be connected to the CAN bus node through the CAN interface module VI to conveniently access the CAN field Bus, the communication data is processed by the main control module 1, realizing the operation of the portable PLC programming device of the present utility model to the long-distance PLC main frame at the monitoring site.

二、可实现脱机工作方式:2. Offline working mode can be realized:

本实用新型编程装置中的电源管理模块III为用户提供三种电源模式予以选择:第一种电源模式是通过外部电源接口从PLC主机获取直流电压;第二种电源模式中,编程装置由USB收发器通过上位计算机的USB接口获取工作直流电源,在这种模式下通过USB充电控制器和电压转换电路供系统使用;第三种电源模式则是由编程装置5V内部充电电池提供电源,编程装置依靠内部5V电源实现脱机工作;由于本实用新型可采用多种电源模式,可以应用前两种电源模式对内部充电电池充电。The power management module III in the programming device of the utility model provides users with three power supply modes to choose from: the first power supply mode is to obtain DC voltage from the PLC host through the external power supply interface; in the second power supply mode, the programming device is sent and received by USB The controller obtains working DC power through the USB interface of the upper computer, and in this mode, it is used by the system through the USB charging controller and voltage conversion circuit; the third power supply mode is provided by the 5V internal rechargeable battery of the programming device, and the programming device relies on The internal 5V power supply realizes offline work; since the utility model can adopt multiple power supply modes, the first two power supply modes can be used to charge the internal rechargeable battery.

三.功能强、方便携带:3. Strong function, easy to carry:

本实用新型中采用的嵌入式ARM微处理器,构建嵌入式实时操作系统对多任务实时调度处理,不仅提供程序编译、文件处理、以及监控、调试等多种功能,而且具有运算速度快、系统功耗小、重量轻的特点,因此方便操作者携带,适合工业现场的调试。The embedded ARM microprocessor adopted in the utility model constructs an embedded real-time operating system for multi-task real-time scheduling processing, which not only provides multiple functions such as program compilation, file processing, monitoring, and debugging, but also has fast computing speed and system The characteristics of low power consumption and light weight make it easy for the operator to carry, and it is suitable for debugging on the industrial site.

四.通讯接口丰富:4. Abundant communication interfaces:

本实用新型具有CAN总线接口、异步串行通讯接口UART和USB接口;CAN总线接口在编程装置联机工作时与远距离PLC主机的数据交换提供通讯接口,从而连接工业现场的任意CAN节点以接入CAN现场总线,实现在监控现场对远距离的PLC主机的程序调试和操作;通过CAN总线和UART异步串行通讯接口可以直接与上位计算机连接,使用上位计算机编辑用户程序下载到本实用新型的SDRAM存储器中,用户通过输入指令将SDRAM中的用户程序保存到FLASH存储器中;用户也可以通过编程装置通用异步串行通讯接口UART与PLC主机直接连接来执行相关操作;本实用新型通过USB接口连接上位计算机以实现大量数据的传输和存储,并从上位计算机的USB接口获取电源供编程装置使用或内部充电电池充电。本实用新型的多种通讯接口使得用户能方便地与上位计算机及其他设备进行通信。The utility model has a CAN bus interface, an asynchronous serial communication interface UART and a USB interface; the CAN bus interface provides a communication interface for data exchange with a remote PLC host computer when the programming device is working online, thereby connecting any CAN node on the industrial site to access The CAN field bus realizes the program debugging and operation of the remote PLC mainframe at the monitoring site; through the CAN bus and the UART asynchronous serial communication interface, it can be directly connected to the host computer, and the host computer can be used to edit the user program and download it to the SDRAM of the utility model In the memory, the user saves the user program in the SDRAM to the FLASH memory by inputting instructions; the user can also directly connect the PLC host through the universal asynchronous serial communication interface UART of the programming device to perform related operations; the utility model connects the host through the USB interface The computer realizes the transmission and storage of a large amount of data, and obtains power from the USB interface of the upper computer for the use of the programming device or charging of the internal rechargeable battery. Various communication interfaces of the utility model enable the user to communicate with the upper computer and other equipment conveniently.

五、系统性价比高:Five, the system is cost-effective:

本实用新型采用嵌入式ARM微处理器和CAN总线模块VI,既具有现有普通手持式PLC编程器的主要功能,还支持联机和脱机等工作方式,并通过工业现场的CAN总线节点接入CAN总线实现在控制现场对远距离PLC主机进行操作,还能直接与上位计算机通信,提高了本实用新型之新型便携式PLC编程装置的使用范围;由于可以通过JTAG接口方便地对本实用新型的软件系统、特别是编译处理软件在内的应用功能软件进行调试和更新,优化了编程装置的性能,实现在原有硬件电路条件下软件系统的升级扩展,因此,具有较高的性价比和扩展性。The utility model adopts an embedded ARM microprocessor and a CAN bus module VI, which not only has the main functions of an existing ordinary handheld PLC programmer, but also supports online and offline working modes, and is connected through the CAN bus node on the industrial site. The CAN bus realizes the operation of the long-distance PLC mainframe at the control site, and can also directly communicate with the upper computer, which improves the scope of use of the new portable PLC programming device of the utility model; because the software system of the utility model can be easily programmed through the JTAG interface , Especially the application function software including the compilation and processing software is debugged and updated, which optimizes the performance of the programming device and realizes the upgrade and expansion of the software system under the original hardware circuit conditions. Therefore, it has high cost performance and scalability.

附图说明:Description of drawings:

图1:实施例一之新型便携式PLC编程装置的系统结构图;Fig. 1: the system structural diagram of the novel portable PLC programming device of embodiment one;

图2:实施例一之新型便携式PLC编程装置的硬件连接框图;Fig. 2: the hardware connection block diagram of the novel portable PLC programming device of embodiment one;

图3:实施例二之简化的新型便携式PLC编程装置的系统结构图;Fig. 3: the system structural diagram of the novel portable PLC programming device of the simplification of embodiment two;

图4:实施例二之简化的新型便携式PLC编程装置的硬件连接框图;Fig. 4: the hardware connection block diagram of the novel portable PLC programming device of the simplification of embodiment two;

图5:实施例三之简化的新型便携式PLC编程装置的系统结构图;Fig. 5: the system structural diagram of the novel portable PLC programming device of the simplification of embodiment three;

图6:实施例三之简化的新型便携式PLC编程装置的硬件连接框图;Fig. 6: the hardware connection block diagram of the novel portable PLC programming device of the simplification of embodiment three;

图7:本实用新型之新型便携式PLC编程装置的系统运行流程图。Fig. 7: A flow chart of the system operation of the new portable PLC programming device of the present invention.

图中:In the picture:

I-主控制模块,II-存储器模块,III-电源管理模块,IIIa-简化结构的电源管理模块,IV-通讯接口模块,IVa-简化结构的通讯接口模块,V-人机界面模块,VI-CAN接口模块;I-main control module, II-memory module, III-power management module, IIIa-power management module with simplified structure, IV-communication interface module, IVa-communication interface module with simplified structure, V-man-machine interface module, VI- CAN interface module;

1-嵌入式ARM微处理器,2-实时时钟电路,3-复位电路,4-JTAG调试接口电路,5-NorFLASH存储器,6-Nand FLASH存储器,7-SDRAM存储器,8-外部电源接口,9-电压转换电路,10-USB充电控制器,11-CAN控制器,12-CAN收发器,13-LCD液晶显示部分,131-LCD液晶显示屏,132-LCD控制器,14-键盘部分,141-键盘控制器,142-矩阵键盘,15-通用异步串行接口UART,151-串行通讯控制器,152-RS-232电平转换器,153-数据收发器,16-USB接口,161-USB设备控制器,162-USB收发器,17-上位计算机,18-PLC主机,19-内部充电电池。1-embedded ARM microprocessor, 2-real-time clock circuit, 3-reset circuit, 4-JTAG debugging interface circuit, 5-NorFLASH memory, 6-Nand FLASH memory, 7-SDRAM memory, 8-external power supply interface, 9 -Voltage conversion circuit, 10-USB charging controller, 11-CAN controller, 12-CAN transceiver, 13-LCD liquid crystal display part, 131-LCD liquid crystal display, 132-LCD controller, 14-keyboard part, 141 -Keyboard controller, 142-matrix keyboard, 15-universal asynchronous serial interface UART, 151-serial communication controller, 152-RS-232 level converter, 153-data transceiver, 16-USB interface, 161- USB device controller, 162-USB transceiver, 17-host computer, 18-PLC host, 19-internal rechargeable battery.

文中缩略语意义如下:The meanings of the abbreviations in the text are as follows:

PLC-Programmable Logical Controller,可编程逻辑控制器,简称可编程控制器;PLC-Programmable Logical Controller, programmable logic controller, referred to as programmable controller;

CAN-Controller Area Network,控制器局域网,一种工业现场总线;CAN-Controller Area Network, Controller Area Network, an industrial field bus;

ARM-Advanced RISC Machines,一种微处理器;ARM-Advanced RISC Machines, a microprocessor;

Nor FLASH-一种非易失闪存技术,这里指采用Nor FLASH技术的闪存存储器;Nor FLASH-a non-volatile flash memory technology, here refers to the flash memory using Nor FLASH technology;

Nand FLASH-一种非易失闪存技术,这里指采用Nand FLASH技术的闪存存储器;Nand FLASH-a non-volatile flash memory technology, here refers to the flash memory using Nand FLASH technology;

SDRAM-Synchronous Dynamic Random Access Memory,同步动态随机存取存储器;SDRAM-Synchronous Dynamic Random Access Memory, synchronous dynamic random access memory;

UART-Universal Asynchronous Receiver/Transmitter,通用非同步收发传输器;UART-Universal Asynchronous Receiver/Transmitter, universal asynchronous transceiver transmitter;

USB-Universal Serial Bus,通用串行总线;USB-Universal Serial Bus, universal serial bus;

JTAG-Joint Test Action Group,一种国际标准测试协议;JTAG-Joint Test Action Group, an international standard test protocol;

LCD-Liquid Crystal Display,液晶显示器;LCD-Liquid Crystal Display, liquid crystal display;

SPI-Serial Peripheral Interface,同步串行外设总线接口。SPI-Serial Peripheral Interface, synchronous serial peripheral bus interface.

具体实施方式:Detailed ways:

实施例一:Embodiment one:

一种新型便携式PLC编程装置,如图1所示,该编程装置包括主控制模块I、存贮器模块II、电源管理模块III、通讯接口模块IV、人机界面模块V和CAN接口模块VI;A novel portable PLC programming device, as shown in Figure 1, this programming device comprises main control module I, memory module II, power management module III, communication interface module IV, man-machine interface module V and CAN interface module VI;

主控制模块I具有为系统其他模块提供控制指令和数据处理、处理外围模块的中断服务、调度处理各个模块的运行状态以及驱动硬件模块等功能,编程装置在主控制模块I中构建嵌入式实时操作系统,进行多任务管理和通讯管理,实现编辑、处理PLC用户程序及监控PLC运行状态的功能;如图2所示,主控制模块I包括嵌入式ARM微处理器1、实时时钟电路2、复位电路3、JTAG调试接口电路4和内部充电电池19。实时时钟电路2、复位电路3、JTAG调试接口电路4和内部充电电池19分别与嵌入式ARM微处理器1相连接;嵌入式ARM微处理器1是主控制模块I的控制核心,实现对主控制模块I中其他组成部分的调节和控制;复位电路3为嵌入式ARM微处理器1提供复位信号;JTAG调试接口电路4提供调试接口与外接电路相连实现对编程装置硬件和软件的调试;实时时钟电路3提供时间和日期等信息;内部充电电池19为编程装置提供5V电源,编程装置依靠内部5V电源实现脱机工作。The main control module I has functions such as providing control instructions and data processing for other modules of the system, processing interrupt services of peripheral modules, scheduling and processing the running status of each module, and driving hardware modules. The programming device builds an embedded real-time operation in the main control module I System, carry out multi-task management and communication management, realize the function of editing, processing PLC user program and monitoring PLC running state; As shown in Figure 2, main control module 1 comprises embedded ARM microprocessor 1, real-time clock circuit 2, reset Circuit 3, JTAG debugging interface circuit 4 and internal rechargeable battery 19. Real-time clock circuit 2, reset circuit 3, JTAG debugging interface circuit 4 and internal rechargeable battery 19 are connected with embedded ARM microprocessor 1 respectively; Embedded ARM microprocessor 1 is the control core of main control module 1, realizes to master The adjustment and control of other components in the control module 1; Reset circuit 3 provides reset signal for embedded ARM microprocessor 1; JTAG debugging interface circuit 4 provides debugging interface and connects with external circuit to realize the debugging of programming device hardware and software; The clock circuit 3 provides information such as time and date; the internal rechargeable battery 19 provides a 5V power supply for the programming device, and the programming device relies on the internal 5V power supply to realize offline work.

存储器模块II用于存储嵌入式软件系统、用户程序和数据以及为数据处理提供动态运行空间;存储器模块II包括Nor FLASH存储器5、Nand FLASH存储器6和SDRAM存储器7,所述Nor FLASH存储器5、Nand FLASH存储器6和SDRAM存储器7分别直接与主控制模块I的嵌入式ARM微处理器1连接,实现ARM微处理器1对存储器模块II的操作控制;其中,Nor FLASH存储器5存储编程装置的嵌入式软件系统程序,Nand FLASH存储器6存放PLC用户程序和数据,SDRAM存储器7为系统运行和通讯数据处理提供空间。PLC用户程序存储空间可以同时存储多个PLC用户程序,在使用时可以存储当前正在编辑的程序、存储已调试过的程序以及其他程序和数据;编程装置与CAN总线或者与上位计算机17通讯的数据先被传递到SDRAM存储器7中,用户通过键盘部分14操作将SDRAM存储器7中的数据写入到Nand FLASH存储器6中,SDRAM存储器7为系统运行和通讯数据处理提供运行空间。Memory module II is used for storing embedded software system, user program and data and provides dynamic operation space for data processing; Memory module II comprises Nor FLASH memory 5, Nand FLASH memory 6 and SDRAM memory 7, described Nor FLASH memory 5, Nand FLASH memory 6 and SDRAM memory 7 are directly connected with the embedded ARM microprocessor 1 of main control module 1 respectively, realize the operation control of ARM microprocessor 1 to memory module II; Wherein, Nor FLASH memory 5 stores the embedded ARM microprocessor of programming device Software system program, Nand FLASH memory 6 stores PLC user program and data, SDRAM memory 7 provides space for system operation and communication data processing. The PLC user program storage space can store multiple PLC user programs at the same time. When in use, it can store the program currently being edited, the program that has been debugged, and other programs and data; the data that the programming device communicates with the CAN bus or with the host computer 17 It is first transferred to the SDRAM memory 7, and the user writes the data in the SDRAM memory 7 into the Nand FLASH memory 6 through the keyboard part 14. The SDRAM memory 7 provides running space for system operation and communication data processing.

电源管理模块III是实现电源选择和功率管理的主要模块,其作用是提供外部电源接口、将直流电压进行转换、从上位计算机17的USB接口获取电源对内部充电电池19充电或直接转换后供编程装置使用;电源管理模块III包括外部电源接口8、电压转换电路9和USB充电控制器10,USB充电控制器10和外部电源接口8分别通过电压转换电路9与主控制模块I的嵌入式ARM微处理器1连接;外部电源接口8可使该编程装置通过与PLC主机18连接实现电源获取的功能,该功能与通常专用便携式手持编程器通过专用接口从PLC主机获取电源的功能一样;通过USB充电控制器10可以从上位计算机17的USB接口获取直流电源供电压转换电路9使用,还可对该编程装置自带的内部充电电池19充电;电压转换电路9将通过外部电源接口8获取的直流电源转换为不同的电压供嵌入式ARM微处理器1和各个外接模块使用;来自外部电源接口8的直流电压经过电压转换电路9供系统使用;来自USB收发器的直流电压通过USB充电控制器10、电压转换电路9供系统使用;电压转换电路9有两路输出,一路输出对内部充电电池19充电,另一路输出作为系统电源。由于该编程装置内部提供了5V的内部充电电池19,既可以在脱机工作时为编程装置提供电源,也可以在使用外部电源时对内部充电电池19充电,提高了编程装置的适用性。The power management module III is the main module to realize power selection and power management. Its function is to provide an external power interface, convert DC voltage, obtain power from the USB interface of the host computer 17 to charge the internal rechargeable battery 19 or provide programming after direct conversion Device uses; Power management module III comprises external power supply interface 8, voltage conversion circuit 9 and USB charging controller 10, and USB charging controller 10 and external power supply interface 8 pass voltage conversion circuit 9 and the embedded ARM microprocessor of main control module 1 respectively The processor 1 is connected; the external power interface 8 can make the programming device realize the function of power acquisition by connecting with the PLC host 18, which is the same as the function that a special-purpose portable handheld programmer obtains power from the PLC host through a dedicated interface; through USB charging The controller 10 can obtain the DC power from the USB interface of the host computer 17 for the use of the voltage conversion circuit 9, and can also charge the internal rechargeable battery 19 of the programming device; Converted to different voltages for use by the embedded ARM microprocessor 1 and each external module; the DC voltage from the external power supply interface 8 is used by the system through the voltage conversion circuit 9; the DC voltage from the USB transceiver passes through the USB charging controller 10, The voltage conversion circuit 9 is used by the system; the voltage conversion circuit 9 has two outputs, one output is used to charge the internal rechargeable battery 19, and the other output is used as a system power supply. Because the internal rechargeable battery 19 of 5V is provided inside the programming device, it can provide power for the programming device when working offline, and can also charge the internal rechargeable battery 19 when using an external power supply, which improves the applicability of the programming device.

通讯接口模块IV作为编程装置扩展接口,其作用是实现与主控制模块I的数据通讯;该通讯接口模块IV包括通用异步串行接口UART15和USB接口16,所述通用异步串行接口UART15包括串行通讯控制器151、RS-232电平转换器152和数据收发器153,数据收发器153通过RS-232电平转换器152与串行通讯控制器151连接,串行通讯控制器151与主控制模块I的嵌入式ARM微处理器1连接以控制数据传输,RS-232电平转换器152连接串行通讯控制器151以负责电平转换,数据收发器153负责接受和发送传输数据;USB接口16包括USB设备控制器161和USB收发器162,USB设备控制器161和USB收发器162相互连接,USB设备控制器161与主控制模块I的嵌入式ARM微处理器1连接以控制数据传输,USB收发器162负责收发数据,并与电源管理模块III的USB充电控制器10连接,通用异步串行接口UART15和USB接口16还通过与上位计算机17连接以实现与该上位计算机17的数据交互,主控制模块I通过异步串行接口UART15与上位计算机17直接通讯,也可以通过通用异步串行接口UART15与PLC主机18通讯;主控制模块I还可以应用USB接口16与上位计算机17的USB接口连接进行通讯。Communication interface module IV is as programming device expansion interface, and its effect is to realize the data communication with main control module 1; This communication interface module IV comprises universal asynchronous serial interface UART15 and USB interface 16, and described universal asynchronous serial interface UART15 includes serial Line communication controller 151, RS-232 level converter 152 and data transceiver 153, data transceiver 153 is connected with serial communication controller 151 through RS-232 level converter 152, serial communication controller 151 and host The embedded ARM microprocessor 1 of control module 1 is connected to control data transmission, and RS-232 level shifter 152 connects serial communication controller 151 to be responsible for level conversion, and data transceiver 153 is responsible for receiving and sending transmission data; Interface 16 comprises USB device controller 161 and USB transceiver 162, and USB device controller 161 and USB transceiver 162 are mutually connected, and USB device controller 161 is connected with the embedded ARM microprocessor 1 of main control module 1 to control data transmission , the USB transceiver 162 is responsible for sending and receiving data, and is connected with the USB charging controller 10 of the power management module III, and the universal asynchronous serial interface UART15 and the USB interface 16 are also connected with the host computer 17 to realize data interaction with the host computer 17 , the main control module 1 communicates directly with the upper computer 17 through the asynchronous serial interface UART15, and can also communicate with the PLC host 18 through the universal asynchronous serial interface UART15; the main control module 1 can also use the USB interface 16 and the USB interface of the upper computer 17 Connect for communication.

人机界面模块V为用户与编程装置提供交互界面,人机界面模块V包括LCD液晶显示部分13和键盘部分14,LCD液晶显示部分13包括LCD液晶显示屏131和LCD控制器132,LCD液晶显示屏131与LCD控制器132连接,LCD控制器132则通过SPI总线接口与嵌入式ARM微处理器1相连以提供LCD控制信号,支持多达24根数据线的显示模式;键盘部分14包括键盘控制器141和矩阵键盘142,矩阵键盘142与键盘控制器141连接,键盘控制器141与嵌入式ARM微处理器1相连,为矩阵键盘142提供控制信号,其中包括键盘部分14的系统中断信号。本编程装置提供统一的数据和控制接口,支持多种数据模式下的TFT、STN液晶显示屏,可以显示16字符×8行的字符显示格式,用户还可根据需要选择单色或者彩色液晶屏。矩阵键盘142按照功能的不同划分为系统键、功能键、复用键等不同部分;系统键用于设置系统功能和模式,主要有电源模式、运行模式、接口模式、文件管理模式;功能键用于系统运行时各种辅助功能的选择,包括有enter键、function键、space键、shift键等;当用户进入程序编辑界面时,执行功能键可以方便用户在指令与软元件直接切换,执行不同的功能函数;复用键代表两种符号:字母符号和数字符号,当按下该键值时系统默认取第一种符号输入,通过shift键加相应键可获取第二种符号的输入;通过矩阵键盘142,用户可以实现对功能指令和软元件符号的输入。The man-machine interface module V provides an interactive interface for the user and the programming device. The man-machine interface module V includes an LCD liquid crystal display part 13 and a keyboard part 14. The LCD liquid crystal display part 13 includes an LCD liquid crystal display 131 and an LCD controller 132. The LCD liquid crystal display The screen 131 is connected with the LCD controller 132, and the LCD controller 132 is connected with the embedded ARM microprocessor 1 through the SPI bus interface to provide LCD control signals, and supports display modes up to 24 data lines; the keyboard part 14 includes keyboard control 141 and a matrix keyboard 142, the matrix keyboard 142 is connected to the keyboard controller 141, the keyboard controller 141 is connected to the embedded ARM microprocessor 1, and provides control signals for the matrix keyboard 142, including the system interrupt signal of the keyboard part 14. This programming device provides a unified data and control interface, supports TFT and STN LCD screens in various data modes, and can display a character display format of 16 characters x 8 lines. Users can also choose monochrome or color LCD screens according to needs. The matrix keyboard 142 is divided into different parts such as system keys, function keys, and multiplex keys according to different functions; the system keys are used to set system functions and modes, mainly including power supply mode, operation mode, interface mode, and file management mode; For the selection of various auxiliary functions when the system is running, including enter key, function key, space key, shift key, etc.; The function function; the multiplex key represents two kinds of symbols: alphabetic symbols and numeric symbols. When the key value is pressed, the system defaults to input the first type of symbol, and the second type of symbol can be obtained by pressing the shift key and the corresponding key; through The matrix keyboard 142 allows users to input function commands and device symbols.

CAN接口模块VI在该编程装置联机工作时与远距离PLC主机18的数据交换提供通讯接口,从而连接工业现场的任意CAN节点以接入CAN现场总线,实现在监控现场对远距离的PLC主机18的程序调试和操作;CAN接口模块VI连接CAN总线上节点接入现场总线,与CAN总线上的PLC主机18交换数据;CAN接口模块VI包括CAN控制器11和CAN收发器12,CAN控制器11通过SPI总线接口直接与主控制模块I的嵌入式ARM微处理器1相连实现数据传输、向嵌入式ARM微处理器1提供中断和状态信息,CAN控制器11处理的任务包括接口管理、发送接收缓冲、验收滤波和位处理等;CAN控制器11通过连接CAN收发器12以解释CPU命令和控制CAN寄存器的寻址,本编程装置通过CAN接口模块VI分别与上位计算机17和PLC主机18连接,实现对PLC用户程序远距离的下载、监控和调试等多种功能。The CAN interface module VI provides a communication interface for data exchange with the long-distance PLC host 18 when the programming device is working online, so as to connect any CAN node on the industrial site to access the CAN field bus, and realize the remote PLC host 18 at the monitoring site. program debugging and operation; the CAN interface module VI connects the nodes on the CAN bus to access the field bus, and exchanges data with the PLC host 18 on the CAN bus; the CAN interface module VI includes a CAN controller 11 and a CAN transceiver 12, and a CAN controller 11 Directly link to each other with the embedded ARM microprocessor 1 of main control module 1 by SPI bus interface to realize data transmission, provide interruption and state information to embedded ARM microprocessor 1, the task that CAN controller 11 processes includes interface management, sending and receiving Buffering, acceptance filtering and bit processing, etc.; CAN controller 11 is connected to CAN transceiver 12 to explain the addressing of CPU commands and control CAN registers. This programming device is connected with upper computer 17 and PLC host 18 respectively through CAN interface module VI, Realize multiple functions such as remote download, monitoring and debugging of PLC user programs.

下面,结合附图1、图2和图7以及实施例一的新型便携式PLC编程装置描述本实用新型便携式PLC编程装置的工作过程:Below, in conjunction with accompanying drawing 1, Fig. 2 and Fig. 7 and the novel portable PLC programming device of embodiment one describe the working process of the utility model portable PLC programming device:

当本编程装置上电后则进入自检状态:若自检失败系统通过蜂鸣器报警;若自检成功,系统读取程序代码装入嵌入式实时操作系统并运行,此时进入启动画面,通过人机界面模块V的LCD液晶显示部分13显示系统参数配置提示,用户可以选择电源模式和接口模式;接着进入编程装置运行模式选择,可选择脱机或者联机的工作方式:当进入脱机模式时,可以通过矩阵键盘142选择文件管理、参数编辑设定、程序编译调试等功能选项;当进入联机方式时,用户则可以选择文件管理、远程监控、用户程序的调试、数据通讯和程序编辑等功能。When the programming device is powered on, it will enter the self-test state: if the self-test fails, the system will alarm through the buzzer; if the self-test is successful, the system will read the program code and load it into the embedded real-time operating system and run it. At this time, it will enter the startup screen. The LCD liquid crystal display part 13 of the man-machine interface module V displays system parameter configuration prompts, and the user can select the power supply mode and the interface mode; When in online mode, the user can select function options such as file management, parameter editing and setting, program compilation and debugging through the matrix keyboard 142; when entering the online mode, the user can choose file management, remote monitoring, user program debugging, data communication and program editing, etc. Function.

驱动硬件模块的驱动程序主要包括人机界面部分V的LCD液晶屏131显示驱动和矩阵键盘142的驱动程序,CAN总线的驱动程序,通用异步串行接口UART15和USB接口16的驱动程序;还包括存储器模块II中对Nor FLASH存储器5,Nand FLASH存储器6和SDRAM存储器7的驱动程序;嵌入式操作系统采用嵌入式实时操作系统;编程器应用程序包括对输入PLC指令的编码和译码,以及CAN总线的通信和对PLC状态的监控程序。The driver program of the driving hardware module mainly includes the LCD liquid crystal screen 131 display driver of the man-machine interface part V and the driver program of the matrix keyboard 142, the driver program of the CAN bus, the driver program of the universal asynchronous serial interface UART15 and USB interface 16; To the driver program of Nor FLASH memory 5, Nand FLASH memory 6 and SDRAM memory 7 in memory module II; Embedded operating system adopts embedded real-time operating system; Programmer application program includes the coding and decoding of input PLC instruction, and CAN Bus communication and monitoring program for PLC status.

实施例一是本实用新型新型便携式PLC编程装置的最佳实施方式之一。Embodiment 1 is one of the best implementation modes of the utility model portable PLC programming device.

实施例二:Embodiment two:

一种简化结构的新型便携式PLC编程装置。A novel portable PLC programming device with simplified structure.

实施例二是本实用新型实施例一的一种简化变换结构,如图3~图4所示,该简化结构的新型便携式PLC编程装置的电源管理模块中不包括USB充电控制器10,所述通讯接口模块中不包括USB接口16,即:该编程装置包括主控制模块I、存贮器模块II、简化结构的电源管理模块IIIa、人机界面模块V、CAN接口模块VI和简化结构的通讯接口模块IVa;Embodiment 2 is a simplified transformation structure of Embodiment 1 of the present utility model. As shown in FIGS. The communication interface module does not include the USB interface 16, that is: the programming device includes the main control module I, the memory module II, the power management module IIIa of the simplified structure, the man-machine interface module V, the CAN interface module VI and the communication module of the simplified structure. Interface module IVa;

所述简化结构的电源管理模块IIIa包括外部电源接口8和电压转换电路9,外部电源接口8通过电压转换电路9与主控制模块I的嵌入式ARM微处理器1连接,所述电压转换电路9还与主控制模块I的内部充电电池19连接,所述外部电源接口8提供外部直流电源输入,所述电压转换电路9将直流电压进行转换、对内部充电电池19充电或直接转换后供编程装置使用;The power management module IIIa of described simplified structure comprises external power interface 8 and voltage conversion circuit 9, and external power interface 8 is connected with the embedded ARM microprocessor 1 of main control module 1 by voltage conversion circuit 9, and described voltage conversion circuit 9 Also connected with the internal rechargeable battery 19 of the main control module 1, the external power supply interface 8 provides an external DC power input, and the voltage conversion circuit 9 converts the DC voltage, charges the internal rechargeable battery 19 or directly converts it to the programming device use;

所述简化结构的通讯接口模块IVa包括通用异步串行接口UART15,通用异步串行接口UART15包括串行通讯控制器151、RS-232电平转换器152和数据收发器153,所述数据收发器153通过RS-232电平转换器152与串行通讯控制器151连接,所述串行通讯控制器151与主控制模块I的嵌入式ARM微处理器1连接;实现主控制模块I与PLC主机18的数据通讯,以及主控制模块I直接与上位计算机17的数据通讯;The communication interface module IVa of described simplified structure comprises universal asynchronous serial interface UART15, and universal asynchronous serial interface UART15 comprises serial communication controller 151, RS-232 level converter 152 and data transceiver 153, and described data transceiver 153 is connected with serial communication controller 151 by RS-232 level shifter 152, and described serial communication controller 151 is connected with the embedded ARM microprocessor 1 of main control module 1; Realize main control module 1 and PLC main frame 18 data communication, and main control module 1 is directly with the data communication of host computer 17;

其余各模块连接方式及其功能、工作过程与实施例一类似,此处不再赘述;本实施例与实施例一的区别在于:在这种简化结构下,编程装置既不能够通过USB接口16连接上位计算机17以实现大量数据的传输和存储,也不能够从上位计算机17的USB接口获取电源供编程装置使用或内部充电电池19充电,与实施例一相比,效果略差。All the other modules are connected in the same way as in the first embodiment, and their functions and work processes are similar to those in the first embodiment, so they will not be repeated here; Connect the upper computer 17 to realize the transmission and storage of a large amount of data, and can not obtain power from the USB interface of the upper computer 17 for the use of the programming device or the charging of the internal rechargeable battery 19. Compared with the first embodiment, the effect is slightly worse.

实施例三:Embodiment three:

没有通讯接口模块IV的新型便携式PLC编程装置。New portable PLC programming device without communication interface module IV.

实施例三是本实用新型实施例一的又一种简化变换结构,如图5-图6所示,该新型便携式PLC编程装置只包括主控制模块I、存贮器模块II、人机界面模块V、CAN接口模块VI以及仅有外部电源接口8和电压转换电路9之简化结构的电源管理模块IIIa而没有通讯接口模块IV,在此种结构形式下,所述主控制模块I分别与存贮器模块II、电源管理模块IIIa、人机界面模块V和CAN接口模块VI连接,所述电源管理模块IIIa与PLC主机18连接,所述CAN接口模块VI通过CAN总线与PLC主机18和上位计算机17连接;其余各模块连接方式及其功能、工作过程与实施例一类似,此处不再赘述;与实施例一的区别在于:此种简化结构的新型便携式PLC编程装置工作时,编程装置的主控制模块I只能够通过CAN接口模块VI与上位计算机17和PLC主机18通讯;简化结构的电源模块IIIa只能通过外接直流电源接口8来进行充电;与实施例一相比,效果略差。Embodiment 3 is another simplified conversion structure of Embodiment 1 of the present utility model. As shown in Figures 5-6, the new portable PLC programming device only includes a main control module I, a memory module II, and a man-machine interface module. V, CAN interface module VI and only the power management module IIIa of the simplified structure of external power supply interface 8 and voltage conversion circuit 9 and do not have communication interface module IV, under this structural form, described main control module I is connected with storage respectively The device module II, the power management module IIIa, the man-machine interface module V and the CAN interface module VI are connected, the power management module IIIa is connected with the PLC host 18, and the CAN interface module VI is connected with the PLC host 18 and the host computer 17 through the CAN bus connection; all the other module connection modes and their functions and work processes are similar to those of the first embodiment, and will not be repeated here; the difference with the first embodiment is that when the novel portable PLC programming device of this simplified structure works, the main part of the programming device The control module I can only communicate with the host computer 17 and the PLC mainframe 18 through the CAN interface module VI; the power module IIIa of the simplified structure can only be charged through the external DC power interface 8; compared with the first embodiment, the effect is slightly worse.

以上三种实施方案都能够实现编程装置的脱机运行,实现与上位计算机17的直接通讯,也可以连接工业现场的任意CAN节点以接入CAN现场总线,实现在工业现场对远距离的PLC主机18的用户程序调试、操作和监控。The above three implementations can realize the off-line operation of the programming device, realize the direct communication with the host computer 17, and can also connect any CAN node in the industrial site to access the CAN field bus, so as to realize the remote PLC host computer in the industrial site 18 user program debugging, operation and monitoring.

作为本实用新型实施例的一种变化,其他不违背本实用新型目的的变换也在本实用新型的保护范围之内。As a variation of the embodiment of the utility model, other transformations that do not violate the purpose of the utility model are also within the protection scope of the utility model.

Claims (8)

1. novel portable PLC programmer, it is characterized in that: this programmer comprises main control module (I), memory module (II), power management module (III), human-computer interface module (V) and CAN interface module (VI);
Described main control module (I) comprises embedded-type ARM microprocessor (1), real time clock circuit (2), reset circuit (3), JTAG debug i/f circuit (4) and charge inside battery (19), real time clock circuit (2), reset circuit (3), JTAG debug i/f circuit (4) is connected with embedded-type ARM microprocessor (1) respectively with charge inside battery (19), described embedded-type ARM microprocessor (1) is the control core, realization is to the adjusting and the control of other ingredients in the main control module (I), described reset circuit (3) provides reset signal for embedded-type ARM microprocessor (1), described JTAG debug i/f circuit (4) provides debugging interface to link to each other with external circuits to realize the debugging to the programmer hardware and software, described real time clock circuit (2) provides time and date information, charge inside battery (19) provides the 5V power supply to realize off-line working for programmer, main control module (I) has for other modules of system provides steering order and data processing, handle the break in service of peripheral module, scheduling is handled the running status of each module and is driven the function of hardware module, programmer makes up embedded real-time operating system in main control module (I), carry out multiple task management and communication management, realize editor, handle the function of PLC user program and monitoring PLC running status;
Described memory module (II) is used to store embedded software system program, user program and data and provides the dynamic operation space for data processing;
Described power management module (III) is to realize that power supply is selected and the main modular of power management, its effect provide the external dc power input or from host computer (17) obtain power supply or with DC voltage change, to inner rechargeable battery (19) charging or directly use for programmer after the conversion;
Described human-computer interface module (V) provides interactive interface for user and programmer;
Described CAN interface module (VI) provides communication interface with the exchanges data of remote PLC main frame (18) when the programmer on-line working, thereby any CAN node that connects industry spot is to insert the CAN fieldbus, and it is on-the-spot to the program debug of remote PLC main frame (18) and the data communication of operation and direct and host computer (17) to be implemented in monitoring;
Described main control module (I) is connected with memory module (II), power management module (III), human-computer interface module (V) and CAN interface module (VI) respectively, described power management module (III) is connected with PLC main frame (18), and described CAN interface module (VI) is connected with host computer (17) with PLC main frame (18) by the CAN bus.
2. novel portable PLC programmer as claimed in claim 1, it is characterized in that: described memory module (II) comprises Nor FLASH storer (5), Nand FLASH storer (6) and SDRAM storer (7), described NorFLASH storer (5), Nand FLASH storer (6) and SDRAM storer (7) directly are connected with the embedded-type ARM microprocessor (1) of main control module (I) respectively, realize the operation control of ARM microprocessor (1) to memory module (II); Wherein, the embedded software system program of Nor FLASH storer (5) storage programmer, Nand FLASH storer (6) is deposited user program and data, and SDRAM storer (7) moves for system and the communication data processing provides the space.
3. novel portable PLC programmer as claimed in claim 2, it is characterized in that: described human-computer interface module (V) comprises LCD liquid-crystal display section (13) and keyboard portion (14), described LCD liquid-crystal display section (13) comprises LCD LCDs (131) and lcd controller (132), described LCD LCDs (131) is connected with the embedded-type ARM microprocessor (1) of main control module (I) by lcd controller (132), described keyboard portion (14) comprises keyboard controller (141) and matrix keyboard (142), and described matrix keyboard (142) is connected with the embedded-type ARM microprocessor (1) of main control module I by keyboard controller (141).
4. novel portable PLC programmer as claimed in claim 3, it is characterized in that: described CAN interface module (VI) comprises CAN controller (11) and CAN transceiver (12), and described CAN transceiver (12) is connected with the embedded-type ARM microprocessor (1) of main control module (I) by CAN controller (11).
5. novel portable PLC programmer as claimed in claim 4, it is characterized in that: described power management module (III) comprises external power source interface (8), voltage conversion circuit (9) and USB charge controller (10), described USB charge controller (10) is connected with the embedded-type ARM microprocessor (1) of main control module I by voltage conversion circuit (9) respectively with external power source interface (8), described voltage conversion circuit (9) also is connected with the charge inside battery (19) of main control module (I), described external power source interface (8) provides the external dc power input, USB charge controller (10) obtains power supply by USB interface (16) from the USB interface of host computer (17), and voltage conversion circuit (9) is changed DC voltage, use for programmer to inner rechargeable battery (19) charging or after directly changing.
6. novel portable PLC programmer as claimed in claim 4, it is characterized in that: described power management module (III) is the power management module (IIIa) of simplified structure, the power management module of this simplified structure (IIIa) comprises external power source interface (8) and voltage conversion circuit (9), described external power source interface (8) is connected with the embedded-type ARM microprocessor (1) of main control module (I) by voltage conversion circuit (9), described voltage conversion circuit (9) also is connected with the charge inside battery (19) of main control module (I), described external power source interface (8) provides the external dc power input, and described voltage conversion circuit (9) is changed DC voltage, use for programmer to inner rechargeable battery (19) charging or after directly changing.
7. novel portable PLC programmer as claimed in claim 5, it is characterized in that: described programmer also comprises a communication interface module (IV), described communication interface module (IV) comprises universal asynchronous serial interface UART (15) and USB interface (16), universal asynchronous serial interface UART (15) comprises serial communication control (151), RS-232 level translator (152) and data collector (153), data collector (153) is connected with serial communication control (151) by RS-232 level translator (152), serial communication control (151) is connected with control data transmission with the embedded-type ARM microprocessor (1) of main control module (I), RS-232 level translator (152) connects serial communication control (151) to be responsible for level conversion, and the transmission data are responsible for accepting and are sent to data collector (153); USB interface (16) comprises USB device controller (161) and USB transceiver (162), USB device controller (161) and USB transceiver (162) interconnect, USB device controller (161) is connected with control data transmission with the embedded-type ARM microprocessor (1) of main control module (I), USB transceiver (162) is responsible for transceive data, and be connected with the USB charge controller (10) of power management module (III), universal asynchronous serial interface UART (15) and USB interface (16) are also by being connected with host computer (17) to realize the data interaction with this host computer (17), main control module (I) is by Asynchronous Serial Interface UART (15) and directly communication of host computer (17), simultaneously by universal asynchronous serial interface UART (15) and PLC main frame (18) communication; Main control module (I) can also be used USB interface (16) and be connected with the USB interface of host computer (17) and carry out communication.
8. novel portable PLC programmer as claimed in claim 6, it is characterized in that: described programmer also comprises the communication interface module (IVa) of a simplified structure, the communication interface module of this simplified structure (IVa) comprises universal asynchronous serial interface UART (15), described universal asynchronous serial interface UART (15) comprises serial communication control (151), RS-232 level translator (152) and data collector (153), described data collector (153) is connected with serial communication control (151) by RS-232 level translator (152), and described serial communication control (151) is connected with the embedded-type ARM microprocessor (1) of main control module (I); Realize the data communication of main control module (I) and PLC main frame (18), and main control module (I) is direct and the data communication of host computer (17).
CN2009202715662U 2009-11-13 2009-11-13 Novel portable PLC programming device Expired - Lifetime CN201583832U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009202715662U CN201583832U (en) 2009-11-13 2009-11-13 Novel portable PLC programming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009202715662U CN201583832U (en) 2009-11-13 2009-11-13 Novel portable PLC programming device

Publications (1)

Publication Number Publication Date
CN201583832U true CN201583832U (en) 2010-09-15

Family

ID=42725839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009202715662U Expired - Lifetime CN201583832U (en) 2009-11-13 2009-11-13 Novel portable PLC programming device

Country Status (1)

Country Link
CN (1) CN201583832U (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708081A (en) * 2012-04-27 2012-10-03 南大傲拓科技江苏有限公司 User programmable PLC (programmable logic controller) serial communication extension module
CN102854816A (en) * 2012-08-08 2013-01-02 楚丰 Integrated circuit programming system with wireless communication capability and realization method of integrated circuit programming system
CN101937205B (en) * 2009-11-13 2013-01-09 广西工学院 Novel portable PLC (Programmable Logic Controller) programming device
CN102920184A (en) * 2012-12-08 2013-02-13 姬志刚 Bookshelf with liquid crystal display screen
CN103634182A (en) * 2012-08-22 2014-03-12 成都爱斯顿测控技术有限公司 Industrial-grade communication information processing platform
CN105511815A (en) * 2015-12-14 2016-04-20 中国电子信息产业集团有限公司第六研究所 Segment table based PLC (programmable logic controller) runnable file storage and analysis method and storage system
CN105843633A (en) * 2015-01-16 2016-08-10 罗伯特·博世有限公司 System programming tool and alarm host equipped with system programming tool
CN106154969A (en) * 2016-08-31 2016-11-23 蒙宇 Broadcast monitoring management system based on WiFi technology
CN106980304A (en) * 2016-01-15 2017-07-25 施耐德电器工业公司 Programmer and programmed method for programmable controller
CN107357646A (en) * 2017-09-01 2017-11-17 长沙小卡机器人科技有限公司 The equipment of multitask sequential parallel operation

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937205B (en) * 2009-11-13 2013-01-09 广西工学院 Novel portable PLC (Programmable Logic Controller) programming device
CN102708081A (en) * 2012-04-27 2012-10-03 南大傲拓科技江苏有限公司 User programmable PLC (programmable logic controller) serial communication extension module
CN102708081B (en) * 2012-04-27 2014-10-22 南大傲拓科技江苏有限公司 User programmable PLC (programmable logic controller) serial communication extension module
CN102854816A (en) * 2012-08-08 2013-01-02 楚丰 Integrated circuit programming system with wireless communication capability and realization method of integrated circuit programming system
CN103634182A (en) * 2012-08-22 2014-03-12 成都爱斯顿测控技术有限公司 Industrial-grade communication information processing platform
CN102920184A (en) * 2012-12-08 2013-02-13 姬志刚 Bookshelf with liquid crystal display screen
CN105843633A (en) * 2015-01-16 2016-08-10 罗伯特·博世有限公司 System programming tool and alarm host equipped with system programming tool
CN105511815A (en) * 2015-12-14 2016-04-20 中国电子信息产业集团有限公司第六研究所 Segment table based PLC (programmable logic controller) runnable file storage and analysis method and storage system
CN106980304A (en) * 2016-01-15 2017-07-25 施耐德电器工业公司 Programmer and programmed method for programmable controller
CN106154969A (en) * 2016-08-31 2016-11-23 蒙宇 Broadcast monitoring management system based on WiFi technology
CN107357646A (en) * 2017-09-01 2017-11-17 长沙小卡机器人科技有限公司 The equipment of multitask sequential parallel operation

Similar Documents

Publication Publication Date Title
CN101937205B (en) Novel portable PLC (Programmable Logic Controller) programming device
CN201583832U (en) Novel portable PLC programming device
CN201689302U (en) Integrated intelligent servo driver
CN204667101U (en) A kind of frequency converter controller
CN101876825B (en) Human-computer interface device of small PLC
CN102621960A (en) Advanced RISC machine-Linux (ARM-Linux)-based compiled programmable automation control (PAC)
CN109507991B (en) Double-shaft servo control platform debugging system and method
CN201749350U (en) Human-machine interface device of small PLC
CN201548951U (en) Analog device for set-top-box interface
CN103092117B (en) A kind of intelligence doubling machine control unit
CN102621950A (en) Pure electric vehicle carload controller refreshing instrument and refreshing method
CN201084005Y (en) Embedded machine tool numerical control system based on ARM technology
CN102520655A (en) Marine engine room data acquisition and monitoring system based on OLE for process control (OPC) technology
CN202975687U (en) Servo system parameter calibration and state real-time monitoring device
CN217061428U (en) Chip burning device
CN201974664U (en) LCD (liquid crystal display) electronic manipulator of novel revolving door control system
CN201536406U (en) Handheld minitype serial port and 485 data transmit-receive device
CN211044204U (en) Mouse keyboard simulation equipment
CN102622937A (en) Robot demonstrator
CN204856474U (en) General man -machine interface device based on FPGA
CN102074078B (en) Electric energy meter intelligent display control device and control method thereof
CN202886924U (en) Miniature PLC controller
CN201937632U (en) Universal serial port-to-network interface converter
CN1655080A (en) Arm rack motion controller of concrete pump truck
CN201749323U (en) Program control computer of embedded paper cutter

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
AV01 Patent right actively abandoned

Granted publication date: 20100915

Effective date of abandoning: 20091113

AV01 Patent right actively abandoned

Granted publication date: 20100915

Effective date of abandoning: 20091113

RGAV Abandon patent right to avoid regrant