How To Program; Programming The Mco With The Aposs Macro-Language; Basics - Danfoss MCO 305 Design Manual

Programmable motion controller
Hide thumbs Also See for MCO 305:
Table of Contents

Advertisement

MCO 305 Design Guide

How to Program

Programming the MCO with the APOSS Macro-language

The following chapters describe how to program the FC 300 with MCO 305 using APOSS. Beginners should
read the basic explanations on the programming language APOSS, i.e. program layout, command structure,
interrupt, elements of the programming language, and arithmetic. Experienced users should inform them-
selves about the APOSS-specific basic principles, e.g. user units, or parameters.
All commands are described in command groups including its syntax and parameters. Please see the
manual MCO 305 Command Reference for a detailed description as well as short examples. You can recon-
struct many programs with assistance of the information in the Program Samples in the online help.
See PC Software Interface for all programming tools from File, Edit, Development, etc. menu. It is particu-
larly easy to write a program by using the Command List menu. Once a command is selected, all the
necessary input fields are immediately presented. After entering the values, the syntax is automatically
formed and you can insert the entire command in your program. And in chapter Parameter Reference all the
parameters are described, first in general and then in detail.

Basics

Program Layout
Usually a program starts with the definitions of arrays, interrupts, and application parameters.
For example:
Next step is initializing:
setting parameters, flags, and variables.
For example:
DIM send[12], receive[12]
ON ERROR GOSUB errhandle
ON INT -1 GOSUB stopprog
ON PERIOD 500 GOSUB calc
ON TIME 10000 GOSUB break
SET POSERR 100000000
offset = 0
sync_flag = 0
VEL 100
ACC 100
DEC 100
®
MG.33.L5.02 – VLT
is a registered Danfoss trademark
// Array
// Interrupts
// Parameters
// Flags/variables
// System parameters
157

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents