Macros
9-22 Chapter 9
%!
Enables all ports 0 → 4 to process received data.
0%! Enables the front panel keypad.
1%! Enables comm port 1 to process received data.
-%!
Disables all ports 0 → 4 for processing received data.
-0%! Disables the front panel keypad.
-1%! Disables comm port 1 for processing received data.
Use caution when disabling the keypad with the 0%! command. Since the keypad will be
disabled, it will not be possible to invoke a macro from the keypad to re-enable it! Make
provisions to re-enable the keypad by some other means. Use caution when disabling the
keypad with the 0%! command. Since the keypad will be disabled, it will not be possible to
invoke a macro from the keypad to re-enable it! Make provisions to re-enable the keypad by
some other means.
Enable / Disable Comm Port Transmit
[ - ] T [ comm ] %!
Disabling the comm port transmit inhibits new data from being transmitted out a specified comm port. Any
data already in the transmit buffer will still be transmitted. Subsequent transmission requests will be ignored
and transmit data will not be buffered.
T%!
Enables all ports 1 → 4 to transmit data.
T1%! Enables comm port 1 to transmit data.
T%!
Disables all ports 1 → 4 for transmitting data.
T1%! Disables comm port 1 for transmitting data.
%
%
”
”
S
S
E
E
L
L
E
E
C
C
T
T
C
C
O
O
M
M
M
M
P
P
O
O
R
R
T
T
Syntax Select Comm Port
< comm > %"
Arguments
Comm Communication port (1 → 4; 5 for LCD).
See Also %$ Send Text
$& Send Control Code
%U Transmit Buffer
Select Comm Port
Used in conjunction with the %$ and %& macro commands to specify which port macro text and control
codes will be transmitted from. The port specified by the %" command will remain in effect until changed by
another %" command. Comm port 1 is automatically selected upon power-up. Specify comm port 5 to
address the 8X40 or 16X40 LCD.
Example:
Selecting A Comm Port
Enter ID# ?%G get entry
=80.5P%o save entry
1%” select comm1
Operator# %$ send text
80.5P%o%$ send VAR#5
13,10%& send <CR><LF>
2%” select comm2
Operator# %$ send text
80.5P%o%$ send VAR#5
Example:
Enabling Only Comm Port 2
-%! disable all ports
2%! enable port 2
Enter ID#?%G get entry (from comm2)
=80.4P%o store entry
A%) clear all receive buffers
%! enable all ports