Danfoss MCO 305 Design Manual page 159

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

Advertisement

MCO 305 Design Guide
Or it could look like:
Function definitions can also be anywhere in the program code as well as variable declarations or function
declarations.
Sequential Command Processing
In general a command is processed to the end before a new command is begun. This means that for
position commands the program waits until the target position has been reached.
Exception: If NOWAIT has been set to ON.
Command Run Times
Timing of the GETVLT and SETVLT commands is dependent on the reading and writing capability of the
FC 300. The GETVLT commands are typically 20 ms or faster. The SETVLT command can be rather slow and
timing depends on what is going on in the FC 300.
It is not possible to give a maximum time for a read or write command concerning FC 300 parameters. (It
may take up to 100, or 500 ms, or even more.)
If the command execution times are critical in an application it is possible to measure the run times of a
command sequence under the different operating conditions using the command TIME.
Tips for Increasing Program Readability
Use of capital and small initial letters (i.e. all commands capital letters, all variables small).
Placement of spacing between command parts.
Place comments in your program. The comments are between
/* ... */ or after //...
/* Begin COMMENT End */ or
// Begin COMMENT End
Inadmissible is: Nesting comments (/* ... /*...*/ ... */)
Use of line identification within the loop.
__ How to Program __
DIM statement
pragmas
...
variable declarations
...
function definitions
...
program code
...
SUBMAINPROG
subprogram definitions
...
ENDPROG
®
MG.33.L5.02 – VLT
is a registered Danfoss trademark
159

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents