The man-machine interface of integrated PLC function and CAN bus communication ability
Technical field
The utility model relates to man-machine interface, the man-machine interface of particularly a kind of integrated PLC function and CAN bus communication ability.
Background technology
Man-machine interface HMI (Human-Machine Interface) can connect industrial control equipments such as frequency converter, DC speed regulator, transmitter, sensor, programmable controller (PLC), instrument, utilize display screen to show, write running parameter or input operation order by input block (as touch-screen, keyboard, mouse etc.), realize people and the mutual digital device of machine information, be widely used in occasions such as industrial automation control machinery, as the demonstration on industry spot display terminal and the middle-size and small-size automatic machinery/control integrated terminal.
Programmable logic controller PLC (Programmable Logic Controller) is that a kind of aiming in industrial environment used and the control system of design.It comprises central processor CPU, by reading command, interpretive order and execution command, removes to control the relevant control circuit of execution.
And the CAN bus, be that controller area network (CAN-CONTROLLERAREANETWORK) is a kind of many main frames local area network, because advantages such as its high-performance, high reliability, real-time now have been widely used in numerous departments such as industrial automation, various control equipment, the vehicles, Medical Instruments and building, environment control.
Tradition HMI possesses any control ability hardly, however the develop rapidly of current industry control technology, and in some occasion control being required is not under the very high situation, has proposed the control requirement to HMI, uses this HMI can reduce cost significantly.Adopting the CAN bus to come expansion I/O to count, is abandoned so I/O counts in theory; Adopt the communications protocol of general opening, therefore the buying to the I/O module need not be confined to certain several producer, can be digital quantity, also can be analog quantity, also can meet topworks on bus.But, also find no the man-machine interface of integrated PLC function and CAN bus communication ability on the market.
Summary of the invention
For realizing above-mentioned technical purpose, the utility model adopts following technical scheme, the man-machine interface HMI of a kind of integrated PLC function and CAN bus communication ability, comprise, processor unit, display unit, input block, storage unit, communication interface, wherein, display unit and input block, constitute the man-machine interface HMI of peripheral hardware, provide operation, information to show to the user;
Processor unit, mainly do by display unit, input block and user man-machine mutual, the controlled variable that obtains, reflection control procedure; Obtain input quantity by communication interface, export the continuous all types of industries equipment of controlling after treatment and by communication interface;
Storage unit is used to provide system to move needed storage space, and provides the space of preserving data to the user;
Communication interface is used for connection processing device unit and all types of industries equipment, and Data transmission;
Its difference is, comprises the CAN bus interface in the communication interface, to connect all kinds of field bus devices.
For further realizing above-mentioned technical purpose, the NHPXA270C5 processor that described processor unit adopts marvell company to produce; This processor comprises Ethernet interface, audio interface, serial line interface, CAN bus interface; Described display unit adopts LCD LCD; Described input block adopts touch-screen; Described storage unit adopts 64M internal memory, 32M flash memory Flash.
For further realizing above-mentioned technical purpose, the SJA1000 that described CAN bus interface controller adopts the Philip to produce.
For further realizing above-mentioned technical purpose between NHPXA270C5 processor and SJA1000, being provided with a change-over circuit.Because the address wire of SJA1000 and data line are multiplexing, and the address wire of NHPXA270C5 processor, data line are independent the uses, so it is adaptive to need an extra circuit.The address port of SJA1000 is 14000008H, the address of FPDP is 1400004H, chip selection signal nCS5 from the NHPXA270C5 processor, data line MD0-MD7, address wire MA2-MA3, read signal nOE, write signal nWE, handle through logical circuit, produce the required function signal of SJA1000.
In the utility model, touch-screen and LCD LCD constitute the interface of HMI, and the interface of operation, information demonstration is provided to the user.The CAN bus interface is mainly used in and connects various industrial modules, as I/O module, servo module etc.The USB host of NHPXA270C5 processor can connect keyboard, mouse, USB flash disk, or other USB device.USB Client is mainly used in the data sync between WindowsCE and the PC, promptly mutual transfer files.Ethernet interface can be used for connecting INTERNET.Audio interface provides voice output, input.SD card expansion interface is used for external SD card.
Compare traditional HMI, function of this programme and price have great advantage: PXA270 dominant frequency 520MHz, can satisfy big exhausted most data computation tasks, and have an abundant peripheral hardware: USB HOST, USB CLIENT, audio frequency, 100M Ethernet, SD card expansion etc., make HMI that good extensibility be arranged, and the control function of SoftPLC is provided.Add a large amount of holding circuits in addition in the hardware design of this programme, more a step is strengthened to make its antijamming capability.Therefore adopt the HMI of this structure can give the wide application space of user.Under the situation that has good performance, its price is compared with traditional HMI and is had bigger competitive power.
Description of drawings
Fig. 1 is construction module figure of the present utility model
Fig. 2 is the construction module figure of the utility model preferred embodiment.
Fig. 3 is a use synoptic diagram of the present utility model.
Fig. 4 is the line transfer circuit diagram of the utility model preferred embodiment.
Fig. 5 is the line transfer circuit diagram of the utility model preferred embodiment.
Fig. 6 is touch, the audio interface expanded circuit of the utility model preferred embodiment.
Fig. 7 is the Ethernet interface expanded circuit of the utility model preferred embodiment.
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
Below in conjunction with accompanying drawing the technical solution of the utility model is further explained and sets forth.
Shown in Figure 1, the man-machine interface HMI of integrated PLC function of the utility model and CAN bus communication ability comprises processor unit, display unit, input block, storage unit, communication interface also comprises the CAN bus interface in the communication interface, can connect all kinds of field bus devices.
Fig. 2 is the construction module figure of the utility model preferred embodiment.Center section is processor unit 100 and storage unit 200, is provided with multiple interfaces outward.The NHPXA270C5 processor that processor unit 100 adopts based on the ARMV5TE kernel; This processor comprise USB host101, USB Client102, Ethernet interface 103, audio interface 105, SD expansion interface 106; USB host101 can connect keyboard, mouse, USB flash disk, USB printer etc.; USB Client102 is mainly used in the data sync between WindowsCE and the PC, promptly mutual transfer files; Ethernet interface 103 can be used for being connected with ERP system by INTERNET; Audio interface 105 provides voice output, input.Storage unit 200 adopts 64MB internal memory SDRAM201, and 32M NOR FLASH202 can expand 2G SD card by SD card expansion interface 106.Touch-screen 300 and LCD LCD400 constitute the HMI of peripheral hardware, and the interface of operation, information demonstration is provided to the user.CAN bus interface 104 is mainly used in and connects various field bus devices, as I/O module, servo module etc.Serial line interface 107 is used to connect all kinds of non-bus type field apparatuss.
The utility model is the man-machine interface HMI of a kind of integrated PLC function and CAN bus communication ability, needs the support of software can realize its basic function.Fig. 3 is a use synoptic diagram of the present utility model.Previously described is that hardware is formed basically, and software is mainly by WindowsCE operating system, HMI system.The utility model preferred embodiment adopts WindowsCE5.0 operating system, only BSP (plate level support package) need be done relevant transplanting work to the hardware of this programme, operating system can operate as normal,, no longer introduces not in the discussion scope of this paper about the transplanting of BSP.HMI software then can adopt the HMI software of external maturation, and this system is made of programing system and operational system.The group that programing system is used for finishing HMI and is write the PLC control program very much, and operational system is responsible for the management of total system and the execution of application programs.The HMI configuration software can provide the common function of traditional HMI, as pilot lamp, button, literal, figure, curve, data, literal input operation, printout, factory formula storage, device fabrication data recording, simple logic with numerical operation, can be connected multiple industrial control equipment networking.HMI software has the function of SoftPLC simultaneously.
In the utility model preferred embodiment, the SJA1000 that the CAN bus interface controller adopts the Philip to produce, because the address wire of SJA1000 and data line are multiplexing, and the address wire of NHPXA270C5 processor, data line are independent the uses, so it is adaptive to need an extra circuit.Between NHPXA270C5 processor and SJA1000, be provided with a change-over circuit.Fig. 4, Fig. 5 are the line transfer circuit diagrams of the utility model preferred embodiment: the address port of SJA1000 is 14000008H, the address of FPDP is 1400004H, chip selection signal nCS5 from the NHPXA270C5 processor, data line MD0-MD7, address wire MA2-MA3, read signal nOE, write signal nWE, handle through logical circuit, produce the required function signal of SJA1000.To the read-write of SJA1000 at twice the I/O operation finish, send into the element address of address value toward address port 14000008H for the first time as SJA1000.At this moment, sheet selects CS not have gating, and data latching is on the AD0-AD7 bus.During back-call FPDP 14000004H, SJA1000 is selected, under the effect of ale signal negative edge primary address value is write SJA1000, and CPU carries out read/write operation to SJA1000.
In preferred embodiment of the present utility model, PXA270 has very high integrated level, the integrated a lot of peripheral hardwares of CPU self, as USB HOST, USB CLIENT, SD card expansion etc., therefore peripheral expanded circuit is not a lot, only need expansion: Ethernet interface, touch, audio interface, CAN bus interface.
Fig. 6 is touch, the audio interface expanded circuit of the utility model preferred embodiment.This interface comprises touch, audio frequency output driving circuit: UCB1400 is a audio coding decoding chip of Philip, and integrated touch-screen driver module, adopt AC ' 97Rev.2.1 interface with being connected between the CPU, audio frequency output passing through C110, C114 directly exports after straight; The RC that the four-wire type touch pad constitutes by R102, R103, R104, R105, C119, C120, C121, C122 is input to UCB1400 after considering the filtering of ripple device, after UCB1400 carries out analog-to-digital conversion, obtain the coordinate figure of X, Y both direction, just obtain pixel coordinates by touching the calculating that drives.
Fig. 7 is that the Ethernet interface expanded circuit of the utility model preferred embodiment: DM9000 is a ethernet controller of DAVICOM, and the MD0 of CPU ~ MD15 connects on 16 data lines of DM9000, and MA2 is connected to the CMD of DM9000.To the read-write of DM9000 register at twice the I/O operation finish, send into address value toward address port 04000000 for the first time, during back-call FPDP 04000004, CMD is 1, just DM9000 is carried out read/write operation.
More than be preferred forms of the present utility model, according to the disclosed content of the utility model, some identical, replacement schemes that those of ordinary skill in the art can expect apparently all should fall into protection domain of the present utility model.