Galil DMC-1400 用户手册
DMC-1400 Series Command Reference P1NM
P2NM
● 157
P1NM P2NM
FUNCTION: Serial port 1 or serial port 2 number
DESCRIPTION:
P1NM and P2NM convert from ASCII (e.g. “1234”) to binary so that a number can be stored
into a variable and math can be performed on it. Numbers from -2147483648 to
2147483647 can be processed.
2147483647 can be processed.
P1NM returns the last number (followed by carriage return) sent to the serial port when in the
operator data entry mode (CI,1)
P2NM returns the last number (followed by carriage return) sent to auxiliary serial port (port
2)
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
DMC-1412 / 4 ONLY
RELATED COMMANDS:
Serial port 1/2 code
Serial port 1/2 character
Serial port 1/2 string
Configure #COMINT (and set operator data entry mode)
Configure serial port 2
Communication interrupt automatic subroutine
EXAMPLES:
:^R^V
DMC2240 Rev 1.0o
:^R^S
:CC 9600,0,0,0
:MG
DMC2240 Rev 1.0o
:^R^S
:CC 9600,0,0,0
:MG
"TEST"
{P2} ;
'send a message to the hand
terminal
:x = P2NM ;
'the 1, 2, 3, <enter> buttons were pushed
:MG x
123.0000
123.0000
: