Pm designer operation manual, File operation – B&B Electronics WOP-2121V-N4AE - Manual User Manual

Page 443

Advertising
background image

14

PM Designer Operation Manual

14-34

CHAPTER 14 USING MACROS


14.4.15. File Operation

FILE_IO

Format

P1

= FILE_IO(P2,P3 )

Data Type

U

Function

Performs the file operation specified by P2 and P3 using

default filename

and saves the

completion code in P1.

P1 (I)

The word to receive the completion code of the operation. If the completion code is 0, the
operation succeeded; otherwise the operation failed.

P2,P3 (I/C)

P2 specifies the type of file operation. P3 specifies the ID of the data source. The following table
describes how to set P2 and P3.

File Operation

P2

P3

Save Logged Data (.txt)

1

Data logger ID (0~15)

Save Logged Alarms (.txt)

2

0

Save Alarm Counts (.txt)

3

0

Save Recipe Data (.txt)

4

Recipe block ID (0~15)

Save Recipe Data (.prd)

5

Recipe block ID (0~15)

Print Screen to File (256-color .bmp)

6

Screen number (1~7999)

Print Screen to File (64K-color .bmp)

7

Screen number (1~7999)

Save Logged Operations (.txt)

9

0

Save Logged Data (.ldf)

10

Data logger ID (0~15)

Take Picture (.bmp)

12

USB camera ID (0~3)

Take Picture (.jpg)

13

USB camera ID (0~3)


Default Filename:

File Operation

Filename Format

Remark

Save Logged Data (.txt)

DL<ID>_<Date>_<Time>.txt

<ID>: Data logger
ID

Save Logged Alarms (.txt)

AL_<Date>_<Time>.txt

Save Alarm Counts (.txt) AC_<Date>_<Time>.txt

Save Recipe Data (.txt)

RB<ID>.txt

<ID>: Recipe block
ID

Save Recipe Data (.prd)

RB<ID>.prd

<ID>: Recipe block
ID

Print Screen to File
(256-color .bmp)

S<ID>_<Date>_<Time>.bmp

<ID>: Screen
number

Print Screen to File
(64K-color .bmp)

S<ID>_<Date>_<Time>.bmp

<ID>: Screen
number

Save Logged Operations (.txt) OL_<Date>_<Time>.txt

Save Logged Data (.ldf)

DL<ID>_<Date>_<Time>.ldf

<ID>: Data logger
ID

Take Picture (.bmp)

CAM<ID>_<Date>_<Time>.bmp

USB camera ID

Take Picture (.jpg)

CAM<ID>_<Date>_<Time>.jpg

USB camera ID

Note:
<Date>: The date when saving the data.
<Time>: The time when saving the data.
You can select the formats of <Date> and <Time> on the Custom page in the General Setup
dialog box.

Advertising