beautypg.com

Macro file editing rules, Macro file syntax – Sony Multi Interface Shoe Adapter User Manual

Page 813

background image

813

Macro File Editing Rules

A

ppen

dix
(V
ol

ume 2)

Macro File Editing Rules

When editing a macro file, follow the rules described below.

Macro File Syntax

The macro file syntax is as follows.

File format

The file is in CSV (comma-separated value) format.

Newline code

CR (ASCII code 0D), LF (ASCII code 0A), or CRLF may be used.

Statement syntax

There are four types of statement, each terminated by a newline code.

File header:

This must always appear as the first line of the file. It comprises

28 characters, as follows.
Example: PNL (space) 0001PNL_rrrr.PMRnnnnnnnn
rrrr: macro register number (0001 to 0099)
nnnnnnnn: In a file created on the switcher, this is a register name
automatically set by the switcher.
When creating a new file, it is recommended to set this to be the same as
the file name

(see page 815)

.

The name is limited to eight characters.
The following characters may not be used.

space, \, /, :, ;, , (comma), . (dot), <, >, *, ?, “ ”

Comment:

Begins with “#”. The content of the line following the “#” up to the

next newline has no effect on macro execution, and can be used as a
comment.

Note

You can only use comments in files saved to the hard disk or a memory
card. When you load a macro file into a register, the comments are
discarded.

Event statement:

Begins with “Event?”, and defines the macro event.

(See

next item, “Syntax of Event and Continue Statements.”)

Continue statement:

Begins with “Continue?”, and defines the macro event.

(See next item, “Syntax of Event and Continue Statements.”)