EasyManuals Logo

Nidec SM-Applications Series User Manual

Nidec SM-Applications Series
132 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 #121 background imageLoading...
Page #121 background image
SM-Applications Modules & Motion Processors User Guide 121
Issue Number: 4
Safety
Information
Introduction Installation
Getting
Started
Parameters
DPL
Programming
Communications
Freeze and
Marker
CTSync
Inter-option
Synchronization
Diagnostics
Migration
Guide
Quick
Reference
Index
12.3 General Features
12.3.1 DPL Language
DPL remains backwardly compatible. The following enhancements have been made
though:
Addition of new constructs such as FOR...LOOP and SELECT...CASE.
Nesting: The stack size is now allocated on a per-task basis and is larger than that
of the UD70, so more nesting is allowed.
New data type of single-precision floating point has been added that offers a small
execution time advantage over double-precision (which remain the default). Single
or double precision is specified as a global program option using the new $FLT
SINGLE directive in the program header.
12.3.2 Maths
Expression complexity is now greatly improved in that on the UD70 you were limited
to how much you could do in one expression. Now you can create expressions with
much greater complexity.
A new casting operator TRUNC has been added. This provides a float to integer
conversion, truncating rather than rounding the result.
Floating point comparison: With the UD70 a rather imprecise and unpredictable
fuzzy compare was used for comparing floating point values. Now the SM-
Applications Modules & Motion Processors uses a standard comparison method, as
used in other programming languages, that is not fuzzy. However this may lead to a
unexpected side effect. For example,
If checking for equality or not equality, use a range. For example:
12.3.3 Tasks
The tasks have been changed.
The ENCODER and SPEED tasks are no longer used. Instead the POS0 and POS1
tasks have been added. Also, the CLOCK task can be used as a replacement for
the ENCODER task. The POS0, POS1 and CLOCK tasks run synchronously to the
drive (like the SPEED task did), but you can now specify a multiple of that time -
from 250 µs to 8 ms for the POS0 and POS1 and 5 ms to 200 ms for the CLOCK
task. Users may still use the names ENCODER and SPEED since they are aliases
The single-precision data type is not a direct replacement for double-precision and users
should make sure that the single precision type offers sufficient precision for their
application.
NOTE
f = 1.2 * 3
IF f = 3.6 THEN
// This would not yield true.
ENDIF
f = 1.2 * 3
IF f > 3.59 or f < 3.61 THEN
// This would yield true.
ENDIF

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Nidec SM-Applications Series and is the answer not in the manual?

Nidec SM-Applications Series Specifications

General IconGeneral
BrandNidec
ModelSM-Applications Series
CategoryControl Unit
LanguageEnglish

Related product manuals