beautypg.com

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

Page 443

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__

: Data logger
ID

Save Logged Alarms (.txt)

AL__

Save Alarm Counts (.txt) AC__

Save Recipe Data (.txt)

RB.txt

: Recipe block
ID

Save Recipe Data (.prd)

RB.prd

: Recipe block
ID

Print Screen to File
(256-color .bmp)

S__

: Screen
number

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

S__

: Screen
number

Save Logged Operations (.txt) OL__

Save Logged Data (.ldf)

DL__

: Data logger
ID

Take Picture (.bmp)

CAM__

USB camera ID

Take Picture (.jpg)

CAM__

USB camera ID

Note:
: The date when saving the data.