Chapter 7 Application Programming

76

Overview

76

Using the DOS Editor to Enter Programs (DMC-2000 only)

76

Edit Mode Commands

77

Example

77

Program Format

78

Using Labels in Programs

78

Special Labels

78

Commenting Programs

79

Executing Programs - Multitasking

80

Debugging Programs

81

Trace Commands ( DMC-2100/2200 only)

81

Error Code Command

82

Stop Code Command

82

RAM Memory Interrogation Commands

82

Operands

82

Example

82

Program Flow Commands

83

Event Triggers & Trippoints

83

Conditional Jumps

87

If, Else, and Endif

89

Subroutines

91

Stack Manipulation

91

Auto-Start Routine

91

Automatic Subroutines for Monitoring Conditions

92

Mathematical and Functional Expressions

97

Mathematical Operators

97

Bit-Wise Operators

97

Functions

99

Variables

99

Programmable Variables

100

Operands

101

Special Operands (Keywords)

101

Arrays

102

Defining Arrays

102

Assignment of Array Entries

102

Uploading and Downloading Arrays to On Board Memory

103

Automatic Data Capture into Arrays

103

Deallocating Array Space

105

Input of Data (Numeric and String)

105

Input of Data

105

Operator Data Entry Mode

106

Using Communication Interrupt

107

Output of Data (Numeric and String)

108

Sending Messages

109

Displaying Variables and Arrays

110

Interrogation Commands

110

Formatting Variables and Array Elements

112

Converting to User Units

113

Hardware I/O

113

Digital Outputs

113

Digital Inputs

114

The Auxiliary Encoder Inputs

115

Input Interrupt Function

115

Analog Inputs

116

DMC-2x00

Contentsy v

Page 7
Image 7
Galil DMC-2X00 user manual Application Programming