曝光台 注意防骗
网曝天猫店富美金盛家居专营店坑蒙拐骗欺诈消费者
SendRawData16(<mod>,<row>,<data>);
This command sends 16 bit <data> to <mod> <row> and <mod> <row>+1 (no
image update)
deviceName.outputRowName.pointName = on;
This command turns “on” the output bit defined by <deviceName.output
RowName.pointName>.
deviceName.outputRowName.pointName = off;
This command turns “off” the output bit defined by <deviceName.output
RowName.pointName>.
deviceName.outputRowName ^= bits; or
deviceName.outputRowName.pointName ^= on;
This command turns “flips” the output bit defined by <deviceName.output
RowName> or <deviceName.output RowName.pointName>..
DISPLAY MODULE COMMANDS
display(<name>, <module>, <start_digit>, <format>,<DP control flag>);
This command, defined in the device descriptor section, defines the format of an
output module. The <name> is the name of the display; <module> is the module it
is connected to; <start_digit> is the starting digit after loading downloading code to
EPIC; <format> defines the number of digits and the use of a sign (+/-) and decimal
point; and the <DP control flag>. Example:
device(Display)
{
display(one, 2, 0, "0000", true); //a 4 digit display with no decimal //point, and
leading 0 fill. Module 2 start digit=0
//DP control is true for Module 2 type //displays.
display(two, 2, 3, "999.99", true); // a 5 digit display with a DP at digit
// two. Leading 0 blanking. Module 2
// starting digit = 3.
display(three,2,8,”-000.0”,true); //a 4 digit display with zero fill and sign digit
display(four,2,16,”-9999”,true); //a signed 4 digit display will leading zero
blanking
}
example:
Display.one = 123; will show 0123 on the display
Display.two = 1; will show 1.00 on the display because the left two digits are
zero and blanked
Display.two = 0; will show 0.00 on the display
46
Display.two =123.4 will show 123.40
Display.three = -5; will show -005.0
Display.three = 5; will show 005.0
Display.four = -5; will show - 5
Display.four = 5; will show 5
timer(<10 MS INTERVALS>)
This command should be used for critical timing only. For general-purpose timing,
use the “delay” command.
example-
:loop1sec{
timer(100);
keyhit(A);
if(timing) jump loop1sec;}
This code will send an “a” at exactly 1 second intervals. It is preferable that you use
the following code instead:
:loop1sec{
delay(50);
keyhit(a);
if(timing) jump loop1sec;}
This code will send an “a” at approximately 1 second intervals.
ph <pigeon hole name> (<PH#){
<byte/word> <element name>; //element0
…code to be executed at PH load time….
};
Pigeonholes are memory locations that can hold data for either a PC program or
EPIC to use. EPIC can send dat to or read data form a Pigeonhole and a PC
program can do the same. This command defines a pigeonhole to allocates
memory space for a PC program to load data into. The total <byte> or <word>
definitions can total no more than 4 bytes (a word equals 2-bytes). Valid
<byte/word> combinations for this command are:
<byte>, <byte>, <byte>, <byte>
<byte>, <word>, <byte>
<byte>, <byte>, <word>
<word> , <word>
<word>, <byte>, <byte>
Example:
byte testByte;
ph TestPH (5){
word el0;
byte el1;
byte el2;
testByte = TestPH.el2;
47
};
defineqproc/defqp(<index #>,<EPL procedure>)
Qprocs are a means for a PC program to direct EPIC to execute a set procedure
based on a given <index #> (range 0-1023). Once <index#> is assigned by the PC
programmer, the appropriate EPL procedure will be executed whenever the PC
program sends <index#>. Example:
PC programmer has defined index #20 as turn on nose gear lamp
and 21 as turn nose gear lamp off.
#define nose_gear_led 2,0,0b00000001 //nose gear led at
//module 2 row 0 bit 0
defineqproc(20,nose_led_on)
defineqproc(21,nose_led_off)
:nose_led_on{setpoint(nose_gear_led);}
:nose_led_off{clearpoint(nose_gear_led);}
DEBUG
breakpoint( );
For debugging purposes, this command puts a code of 0008 in the backtrace buffer
and freezes logging.
gendebugtrap(1);
For debugging purposes, this command freezes the DEBUG buffer and appended a
code of 0008 to the DEBUG buffer.
中国航空网 www.aero.cn
航空翻译 www.aviation.cn
本文链接地址:
航空资料18(14)