曝光台 注意防骗
网曝天猫店富美金盛家居专营店坑蒙拐骗欺诈消费者
4.3.2.8 Keystrokes and Procedure calls from Analogs
Analog potentiometers or pots, can generate keystrokes, link to EPL procedures
and have their response altered by rate curves. Below are the steps to take to
attach keystrokes and procedures to your pots.
First, open the Project window and double click the <project>.joy file.
Double click <project>.JOY from project manager Project tab.
Check “Use Analog Keys / EPL Procedure Links”, The “Keys” tab will appear.
34
35
Click “Keys” tab.
Note: Your selected output channel should be the “Input channel” in this window.
When the analog is going up the scroll bar and box will follow on the left side and
when going down will follow on the right side. To keep the analog from interfering
check “Disable Scanning”, if needed. Double click on the position to place the
keystroke, or procedure link you want sent when the analog reaches this position. If
the simulator functions you’re controlling with an analog has a present number of
positions, you can evenly distribute these the commands across those positions.
36
Select keyhit, then double click the “Data” box and select the key you wish to send.
37
In this case we wish to send an “A” whenever this position is reached.
38
Now whenever the analog is going in the up direction and hits this position a
“keyhit(A)” will be sent. To link to an EPL procedure, double click on the “Function”
for the position and select {label} , double click the “Data” box and a drop down of
your EPL procedures will appear, then select the procedure you wish to send when
this position is reached.
39
Now whenever this analog is going in the down direction and hits this position, EPL
procedure F_40 will be executed. Click “Ok” to save, Ok at rate curve save screen,
F9 to compile, F10 to load and then you’re ready to use your analogs.
4.3.3 EPL Commands
The following are explanations of the commands available to support your EPL
programming needs.
definebutton|defbtn(<button>, on|off, <label>)
This command associates a procedure block, <label>, with a specific button action
on|off. The <button> is the button being assigned and label must be a defined
label/procedure block or “RETURN”. This command can be in the formats:
MRB- Module,Row,bit ex: M1R3B2 module1 row3 bit2
MRM- Module,Row,Mask ex: M1R3M0xFF module1 row3 mask all bits
M1R3M0x0F module1 row3 include bits 0-3
40
After defining the button it can be used as follows:
void deviceName.buttonName.On(void) {.....} . The void(s) are optional at this
time; therefore, I use: Threat_Warn_Prime.Msl_Launch,On (press) or “.Off”
(release) <lable>. On|Off are the only two actions allowed in this command, and
<label> is the procedure block to execute when the action occurs.
keyhit|khit(<key>);
Tells EPIC to press and then release a <key>. All <key> must be a valid key
identified in the TOKENS.DOC and they must be capitalized. Please note that
although <key> is a capital letter such as “A”, a non capital letter will be sent i.e. ”a”.
Example:
Keyhit(A);// sends a
keypress|kpr(<key>);
Tells EPIC to press, but not release the <key>. All <key> must be a valid key
identified in the TOKENS.DOC and they must be capitalized.
keyrelease|krl(<key>);
Tells EPIC to release <key> without pressing it. All <key> must be a valid key,
identified in the TOKENS.DOC and they must be capitalized. The <key> should
have been previously “pressed” using the “keypress” command.
rawkey(<value>);
Tells EPIC to send <value> to the keyboard port. This can be used to send
extended codes to a program that handles them. Usually the value is 128 or
greater.
shifthit|shit(<key>);
Tells EPIC to press and then release <key> while holding down the shift key. All
<key> must be a valid key, identified in the TOKENS.DOC and they must be
capitalized. To press and/or release one of the shift keys by itself, use “keypress”
and “keyrelease”. Use shifthit <key> when you need to send a capitalized
character, or other shifted key.
ctrlhit|chit(<key>);
Tells EPIC to press and then release <key> while holding down the Control key. All
<key> must be a valid key, identified in the TOKENS.DOC and they must be
capitalized. To press and/or release the Control key by itself, use “keypress” and
中国航空网 www.aero.cn
航空翻译 www.aviation.cn
本文链接地址:
航空资料18(11)