15 of 24
The complete example below shows how variables and conditi ons can be used to perform status tracking of
events.
desc = “EPSON EB-535W to NEX NP-M302WA (mute example)”;
var mute = 0;
command {
desc = “Set Mute ON”;
source_cmd = “4D 55 54 45 20 4F 4E 0D”;
target_cmd = “02 10 00 00 00 12”;
reply {
desc = “Reply Mute ON OK”;
target_reply = “22 10 01 20 00 53”;
source_reply = “3a”;
set mute = 1;
}
}
command {
desc = “Set Mute OFF”;
source_cmd = “4D 55 54 45 20 4F 46 46 0D”;
target_cmd = “02 11 00 00 00 13”;
reply {
desc = “Reply Mute OFF OK”;
target_reply = “22 11 01 20 00 54”;
source_reply = “3a”;
set mute = 0;
}
}
command {
desc = “Get Mute status”;
source_cmd = “4d 55 54 45 3f 0D”;
reply {
desc = “Variable based reply, off”;
source_reply = “4d 55 54 45 3d 4f 46 46 3a”;
flag = conditional;
if (mute == 0);
}
reply {
desc = “Variable based reply, on”;
source_reply = “4d 55 54 45 3d 4f 4e 3a”;
flag = conditional;
if (mute == 1);
}
}
end
Содержание cmdBridge
Страница 1: ...cmdBridge Harkwood Services Ltd Reference Manual Intelligent command protocol translation...
Страница 23: ...23 of 24 quoted_string printable character...
Страница 24: ...24 of 24...