94
11.5.1 Reading a previously stored Macro
In order to read a macro the following commands must be sent in this specific
order – no other commands should be sent between these messages. The
CHA in these cases relate not to the source but to the macro we are reading.
Packet sent
Packet returned
SOP CMD CHA WIN OUT FUN PAY CS EOP
SOP CMD CHA WIN OUT FUN PAY
CS EOP
Read number of items currently stored in Preset 2 Returned packet indicates 4 items
available to read
F
84
01
42
00
F4
-
BB CR
F
44
01
42
00
F4
00002
FC CR
Read the Function for the first item in the preset /
macro
Payload is the Function stored – 86 = Zoom
F
84
01
42
00
F3
-
BA CR
F
44
01
42
00
F3
000086 ?80 CR
Read the Data for the first item in the preset /
macro
Payload is the data for the function – 100%
F
84
01
42
00
F2
-
B9 CR
F
44
01
42
00
F2
000064 5D CR
Read the Function for the second item in the
preset / macro
Payload is the Function stored – 87 = Shrink
F
84
01
42
00
F3
-
BA CR
F
44
01
42
00
F3
000087 81
CR
Read the Data for the second item in the preset /
macro
Payload is the data for the function – 100%
F
84
01
42
00
F2
-
B9 CR
F
44
01
42
00
F2
000064 5D CR
The above example shows the read for all the items within macro 0. The first
command reads the number of items available in the macro and resets the
read address. Then the following items read the function and then the data for
each of the items in the preset/macro. Following a read of the data for a
macro internally the next item in the macro is selected for reading so it is not
possible to read the same item twice without first re-reading the number of
items in the macro.
11.5.2 Writing to a macro
In order to read a preset / macro the following commands must be sent in this
specific order – no other commands should be sent between these messages.
Packet sent
Packet returned
SOP CMD CHA WIN OUT FUN PAY
CS EOP
SOP CMD CHA WIN OUT FUN PAY
CS EOP
Clear macro
F
04
02
42
00
F1
000001 3A CR
F
44
02
42
00
F1
000001 7A CR
Write the function for first item in macro 3 = Zoom
F
04
02
42
00
F3
000086 C1 CR
F
44
02
42
00
F3
000011 01 CR
Write data for the first item = 100
F
04
02
42
00
F2
000064 9E CR
F
44
02
42
00
F2
000011 DE CR
Write the function for the second = shrink
F
04
02
42
00
F3
000087 C2 CR
F
44
02
42
00
F2
000011 02 CR
Write the data for the second item = 100
F
04
02
42
00
F2
000064 9E CR
F
44
02
42
00
F3
000011 DE CR
Содержание C2-7100
Страница 150: ......