User's Manual
Table Of Contents
- Contents
- Overview
- Controller Notation
- Servo and Stepper Motor Notation:
- Command Descriptions
- Servo Update Rates
- Commands which are not Allowed when Operating in Fast Mode:
- #
- $
- & |
- ( )
- ;
- [ ]
- + - * /
- <, >, =, <=, >=, <>
- =
- AB
- @ABS[n]
- AC
- @ACOS[n]
- AD
- AF
- AI
- AL
- AM
- @AN[n]
- AO
- AP
- AR
- AS
- @ASIN[n]
- AT
- @ATAN[n]
- #AUTO
- #AUTOERR
- AV
- BA
- BB
- BC
- BD
- BG
- BI
- BK
- BL
- BM
- BN
- BO
- BP
- BS
- BV
- BZ
- CB
- CC
- CD
- CE
- CF
- CI
- CM
- #CMDERR
- CN
- CO
- @COM[n]
- #COMINT
- @COS[n]
- CR
- CS
- CW
- DA
- DC
- DE
- DL
- DM
- DP
- DT
- DV
- EA
- EB
- EC
- ED
- EG
- EI
- ELSE
- EM
- EN
- ENDIF
- EO
- EP
- EQ
- ER
- ES
- ET
- FA
- FE
- FI
- FL
- @FRAC[n]
- FV
- GA
- GN
- GM
- GR
- HM
- HX
- IA
- IF
- IH
- II
- IL
- IN
- @IN[n]
- #ININT
- @INT[n]
- IP
- IT
- IV
- JG
- JP
- JS
- KD
- KI
- KP
- KS
- LA
- LE
- _LF*
- LI
- #LIMSWI
- LL
- LM
- _LR*
- LS
- LV
- LZ
- MB
- MC
- #MCTIME
- MF
- MG
- MO
- MR
- MT
- NB
- NF
- NO
- NZ
- OB
- OC
- OE
- OF
- OP
- @OUT[n]
- P1CD P2CD
- P1CH P2CH
- P1NM P2NM
- P1ST P2ST
- #POSERR
- PA
- PF
- PR
- QD
- QR
- QU
- QZ
- RA
- RC
- RD
- RE
- REM
- RI
- RL
- @RND[n]
- RP
- RS
-
R S -
R V - SA
- SA n
- SB
- SC
- SH
- @SIN[n]
- SL
- SP
- @SQR[n]
- ST
- @TAN[n]
- TB
- TC
- #TCPERR
- TD
- TE
- TH
- TI
- TIME*
- TL
- TM
- TP
- TR
- TS
- TT
- TV
- TW
- UI
- UL
- VA
- VD
- VE
- VF
- VM
- VP
- VR
- VS
- VT
- WC
- WH
- WT
- XQ
- ZR
- ZS
- Index

140 ● MG DMC-1400 Series Command Reference
MG
FUNCTION: Message
DESCRIPTION:
The MG command sends data out the bus. This can be used to alert an operator, send
instructions or return a variable value.
ARGUMENTS: MG {Pn},{Ex},{U} "m", {^n}, V {Fm.n or $m,n} {N} {Sn}
"m" is a text message including letters, numbers, symbols or <ctrl>G. Make sure that
maximum line length is not exceeded (40 characters DMC-1410/1411/1412/1414, 80
characters DMC-1415/1416/1425).
{^n} is an ASCII character specified by the value n
V is a variable name or array element where the following specifiers can be used for
formatting:
{Fm.n} Display variable in decimal format with m digits to left of decimal, and n to the right.
{$m,n} Display variable in hexadecimal format with m digits to left of decimal, and n to the
right.
{Sn} Display variable as a string of length n where n is 1 thru 6
{N} Suppress carriage return line feed.
{Pn} (DMC-1412/1414 only) Specifies which serial port to send the message. 1 = main port,
2 = auxiliary port. Defaults to 1 if not specified.
{U} for USB port
{Ex}for Ethernet and ‘x’ specifies the Ethernet handle (A,B,C,D,E,F or H).
Note: Multiple text, variables, and ASCII characters may be used, each must be separated by
a comma.
Note: The order of arguments is not important.
USAGE:
While Moving Yes Default Value -
In a Program Yes Default Format Variable Format
Command Line Yes
Can be Interrogated No
Used as an Operand No
Controller Usage
ALL
EXAMPLES:
Case 1: Message command displays ASCII strings
MG "Good Morning" Displays the string
Case 2: Message command displays variables or arrays
MG "The Answer is", Total {F4.2} Displays the string with the content of variable
TOTAL in local format of 4 digits before and 2 digits after the decimal point.
Case 3: Message command sends any ASCII characters to the port.
MG {^13}, {^30}, {^37}, {N} Sends carriage return, characters 0 and 7 followed by no
carriage return line feed command to the port.