Danaher Motion
06/2005
Table of Contents
M-SS-005-03 Rev
E
i
Table of Contents
1.
OVERVIEW ................................................................................................................................ 1
1. 1
SYSTEM HARDWARE ......................................................................................................... 2
1. 2
OPERATING SYSTEM......................................................................................................... 2
1. 3
MC-BASIC LANGUAGE COMPILER................................................................................. 2
1. 4
I/O......................................................................................................................................... 3
1. 5
SERCOS ............................................................................................................................... 3
1. 6
API........................................................................................................................................ 4
1. 7
MULTI-TASKING ................................................................................................................ 4
1. 8
USER COMMUNICATION.................................................................................................. 4
1.8.1.
S
ERIAL
C
OMMUNICATION
.................................................................................. 5
1.8.2.
TCP/IP C
OMMUNICATION
.................................................................................. 6
1.8.3.
S
END
/R
ECEIVE
D
ATA
........................................................................................ 8
2.
BASIC MOVES DEVELOPMENT STUDIO........................................................................ 11
2. 1
COMMUNICATION .......................................................................................................... 11
2. 2
MC-BASIC.......................................................................................................................... 11
2.2.1.
I
NSTRUCTIONS
.................................................................................................. 12
2.2.2.
T
YPE
................................................................................................................. 12
2.2.3.
C
ONSTANTS AND
V
ARIABLES
.......................................................................... 14
2.2.4.
D
ATA
T
YPES
..................................................................................................... 16
2.2.5.
S
YSTEM
E
LEMENTS
.......................................................................................... 19
2.2.6.
U
NITS
................................................................................................................ 20
2.2.7.
E
XPRESSIONS
.................................................................................................... 20
2.2.8.
A
UTOMATIC
C
ONVERSION OF
D
ATA
T
YPES
.................................................... 20
2.2.9.
M
ATH
F
UNCTIONS
............................................................................................ 23
2.2.10.
S
TRING
F
UNCTIONS
.......................................................................................... 24
2.2.11.
S
YSTEM
C
OMMANDS
........................................................................................ 25
2.2.12.
P
RINTING
.......................................................................................................... 28
2.2.13.
F
LOW
C
ONTROL
............................................................................................... 30
2. 3
PROGRAM DECLARATIONS ........................................................................................... 36
2.3.1.
P
ROGRAM
......................................................................................................... 36
2.3.2.
S
UBROUTINE
..................................................................................................... 36
2.3.3.
U
SER
-D
EFINED
F
UNCTIONS
............................................................................. 37
2. 4
LIBRARIES......................................................................................................................... 38
2.4.1.
G
LOBAL
L
IBRARIES
.......................................................................................... 40