Download AMPERR Amplifier error automatic subroutine
Transcript
OPERAND ONLY
P2NM
Serial port 2 number
P2NM
Usage
variable= P2NM Holds a value
Operands P2NM
Operand has special meaning, see Remarks
Description
P2NM returns the last number (followed by carriage return) sent to auxiliary serial port (port 2).
Arguments
P2NM is an operand that holds a numerical value sent over the serial port. See Examples for use in code.
Remarks
Converts 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.
Examples
'Galil DMC Code Example
:^R^V
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, buttons were pushed
:MG x
123.0000
:
P2NM applies to DMC40x0,DMC42x0,DMC41x3,DMC500x0,DMC52xx0
©2015 Galil Motion Control. Corrections, Feedback: [email protected]
Galil Motion Control
P2NM
229/313