EasyManuals Logo

Moog SmartMotor User Manual

Moog SmartMotor
909 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #639 background imageLoading...
Page #639 background image
Part 2: Commands
Moog Animatics SmartMotor Developer's Guide,Rev. L
Page 639 of 909
l
Literal values for characters may be specified (one 8-bit character at a time): PRINT
(#32)
l
Binary data may be specified (one 8-bit character at a time): PRINT(#ab[0], #ab[1])
This is useful in data mode when communicating with non-ASCII mode systems.
Combinations of these methods are permitted:
PRINT("The value of a is: ",a,#13)
This prints the text, the actual value of variable "a" (as a decimal value in ASCII
text), and the newline with the #13.
PRINT() commands are typically entered in a user program to send output to a terminal for
display, communicate with third party devices, or send commands to other motors.
Raw ASCII code values are prefixed by the # sign as follows:
Character Format
space #32
tab #9
carriage return #13
line feed #10
CAUTION: Do not use a comment marker (') within PRINT(). It will cause a
compiler error.
PRINT() will wait to begin execution until previous commands have completed transmission
from the transmit buffer.
There is a practical difference between PRINT(a,b,c) and the sequence PRINT(a) PRINT(b)
PRINT(c). Executing from within a program PRINT(a,b,c) will output the values of a, b, and c
without the possibility of another command from the terminal interfering. However, executing
PRINT(a) PRINT(b) PRINT(c) from within a program while the host terminal is transmitting
GOSUB5 to the motor could lead to the GOSUB5 routine executing between the PRINT
commands, which would result in the PRINT sequence not outputting as desired.
Part 2: Commands: PRINT(...)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Moog SmartMotor and is the answer not in the manual?

Moog SmartMotor Specifications

General IconGeneral
BrandMoog
ModelSmartMotor
CategoryServo Drives
LanguageEnglish

Related product manuals