You are on page 1of 13

H-Series USB Functionality

Page 1 (13) PREN1111 2009-01

DOWNLOAD/UPLOAD APPLICATION VIA AN EXTERNAL MEMORY CARD ....................................................................2


DOWNLOAD/UPDATE APPLICATION............................................................................................................................................2
UPLOAD/BACKUP OF APPLICATION ...........................................................................................................................................3
DOWNLOAD APPLICATION AUTOMATICALLY ................................................................................................................................3
VIRTUAL PRINTER .................................................................................................................................................................4

BACKUP OF LOGGING BUFFERS .........................................................................................................................................7

BACKUP OF ALARMS .............................................................................................................................................................9

LOAD/SAVE RECIPE FROM/TO EXTERNAL MEMORY CARD ..........................................................................................10

TRIGGER BACKUPS FROM THE PLC..................................................................................................................................11


ECB EXTENDED CONTROL BLOCK.........................................................................................................................................12
ESB EXTENDED STATUS BLOCK ............................................................................................................................................13
Article template, Oct. 2006

Head Office Subsidiary Subsidiary Subsidiary


Beijer Electronics Products AB Beijer Electronics GmbH Beijer Electronics Inc. Hitech Electronics Corp.
Box 426 Zettachring 2A 939 N. Plum Grove Road, Suite F 4F, No. 501-15 Chung-Cheng Road
SE-201 24 Malm, Sweden 705 67 Stuttgart, Germany Schaumburg, IL 601 73, USA Shin-Tien,Taipei Shien, Taiwan, R.O.C.
Tel: +46 40 35 86 00 Tel:+49 711 327 599-0 Tel: +1 847 619 6068 Tel: +886-2-2218-3600
Fax: +46 40 93 23 01 Fax: +46 711 327 599-10 Fax: +1 847 619 6674 Fax: +886-2-2218-9547

Internet www.beijerelectronics.com E-mail info@beijerelectronics.com VAT reg no SE556701432801


H-Series USB Functionality
Page 2 (13)

Download/upload application via an external memory card


An Action Button can be used to trigger an upload/download of an application from a memory card (USB-
stick or CF-card).

Download/update application
Add an Action Button to a screen, select action Update Application Data from File and choose if a
USB memory stick or CF card should be used. Type the desired name of the file.

Compile the application and copy the *.c64 and *.fw6 files to the memory card. When the operator
presses the Action Button the application will be updated.
H-Series USB Functionality
Page 3 (13)

Upload/Backup of application
Add an Action Button to a screen, select action Write Application Data to File and choose if a USB
memory stick or CF card should be used. Finally select the name of the file.

When the operator presses the Action Button the application will be stored on the external memory
card

Download application automatically


Its also possible to download an application without using an Action Button. When the application has been
compiled the *.c64 and *.fw6 files will need to be renamed to "app_main.c64" and "app_main.fw6". Then
copy/paste the files to the USB memory stick or CF Card, the HMI will automatically detect the files and
ask if it should download the application or not.
H-Series USB Functionality
Page 4 (13)

Virtual printer
The virtual printer allows the HMI to generate a screen shot of the currently opened screen and store this
screen shot as a bitmap (BMP) on the memory card. The screen shot can be triggered from either an action
button or via the control block (Hard Copy Flag).
H-Series USB Functionality
Page 5 (13)

Triggered by an Action Button

Triggered from Command Block


H-Series USB Functionality
Page 6 (13)

Each time a print-out is triggered a BMP-file will be stored on the memory card. The files will be located in a
folder named V_PRT. Below is an example of how a screen shot may look:
H-Series USB Functionality
Page 7 (13)

Backup of logging buffers


Logging buffers can be saved as backup-files on a memory card. This file is comma-separated and therefore
its simple to import the data to Microsoft Excel and create charts displaying the different logging buffers.

Example: Backup of logging buffer:

1. Enable Auto Copy and select either USB memory stick or CF card. Click on the Edit button.
H-Series USB Functionality
Page 8 (13)

2. Write some names (= the name of the columns)

3. Download the application. Each time 1 kb has been saved in the memory the HMI will make a
backup copy and store it on the memory card. The name of the folder will be LB_X. X is the HMI
ID, this means that the same USB/CF-card can be used to backup files from several terminals (since
the folder name will be unique for each terminal). A new backup file will be generated every day.

If the file is opened in MS Excel it will look like in the picture below:
H-Series USB Functionality
Page 9 (13)

Backup of Alarms
The alarm list can be backed up on a memory card. This file is comma-separated and therefore its simple to
import the data to Microsoft Excel.

Example: Backup of alarm list

1. Select either USB Memory Stick or CF Card as Backup Save Device.

2. Download the application. Each time 1 kb has been saved in the memory the HMI will make a
backup copy and store it I on the memory card. The name of the folder will be OA_X. X is the HMI
ID, this means that the same USB/CF-card can be used to backup files from several terminals (since
the folder name will be unique for each terminal). A new backup file will be generated every day.

If the file is opened in MS Excel it will look like in the picture below:
H-Series USB Functionality
Page 10 (13)

Load/Save recipe from/to external memory card


The recipe file can be stored on a memory card. This means that the recipes can be modified on a PC and
then downloaded back to the HMI. These two functions are triggered with an Action Button.
Load Recipe from memory card

Save Recipe to memory card


H-Series USB Functionality
Page 11 (13)

Trigger backups from the PLC


To trigger backups from the PLC the Extended Control Block (ECB) will need to be used. ECB is a 5-word
register block in the PLC. The first word of the ECB is the command word named CW. The other 4 words
of the ECB are parameter words and are named PW1, PW2, PW3, and PW4. To command the HMI to do a
job, the PLC stores parameter values in the parameter words first and then set the command word to the job
number. The PLC is responsible to reset the command word to zero after the job is done. The HMI will not
be ready to perform another job until it detects that the command word is 0. The PLC can read the status of
the current job from the ESB (Extended Status Block). The Extended Control Block and Status blocks are
explained below:
H-Series USB Functionality
Page 12 (13)

ECB Extended Control Block


Job number/CW: 64
Job description: Saving records of unsaved logging buffer to a file in CF card or USB Memory Stick

Job parameters:
PW1: Logging Buffer number
PW2: Not used
PW3: Not used
PW4: Not used

Job number/ CW: 65


Job description: Saving unsaved alarm history buffer to a file in CF card or USB Memory Stick

Job parameters:
PW1: Not used
PW2: Not used
PW3: Not used
PW4: Not used

Job number/ CW: 66


Job description: Saving recipe data to a file in CF card or USB Memory Stick
Job parameters:
PW1: File Number
PW2: Device: when 1, save to USB Memory Stick; when 0, save to CF Card;
PW3: Not used
PW4: Not used

Job number/ CW: 67


Job description: Read recipe data from a file in CF card or USB Memory Stick
Job parameters:
PW1: File Number
PW2: Device: when 1, read from USB Memory Stick; when 0, read from CF Card;
PW3: Not used
PW4: Not used
H-Series USB Functionality
Page 13 (13)

ESB Extended Status Block


ESB is a 5-word register block in the PLC. The five status words are named SW0, SW1, SW2, SW3, and SW4.

The HMI updates the ESB every second.

SW0 Bit 1-0: (reserved)


Bit 2: Back Light Status (0:off 1:on)
Bit 3-5: Current Language (001-101)
Bit 7-6: (reserved)
Bit 11-8 Current User Level (0000-1001)
Bit 12 0- Auto Saving Okay
1- Auto Saving Error
Bit 14-13 Job Processor (00-Ready, 01-Busy, 10-Complete, 11-Error)
10- Saving or Reading Recipe, Alarm or Logging through Extended Control
Block - Okay
11- Saving or Reading Recipe, Alarm or Logging Buffer when using Extended
Control Block - Error
Bit 15 Validity of SW0 (0-invalid, 1-valid)

SW1 Reserved

SW2 Bit 15-0 Free Space in CF Card (MB)

SW3 Bit 15-0 Free Space in USB Memory Stick (MB)

SW4 Reserved

You might also like