
84
SM-Applications Modules & Motion Processors User Guide
Issue Number: 4
The Second Processor parameters are local and accessible only to the Second
Processor. These parameters provide access to additional features of the Second
Processor, and give faster access to some drive parameters.
7.4.1
Reading and Writing Parameters
Reading and writing parameters is achieved by using the # command. Parameters are
accessed in a Pr
xx.XX
format in the same way as they are accessed on the drive's
keypad.
For example, to read the speed feedback parameter (Pr
03.02
), use:
to write to a speed reference parameter (eg. Pr
01.22
), use:
Note that the leading zero in the menu/parameter field is optional. For example #3.02,
#03.02, #03.2 and #3.2 will access exactly the same parameter.
7.4.2
Fixed-point integer parameters
Dealing with fixed-point integer parameters can be quite a bit slower than for integer
parameters. In order to speed this up, a special command #INT can be used when
reading and writing parameters. When using this command with fixed-point integer the
decimal places will be automatically removed.
For example, parameter Pr
1.19
has a range of 0.000 - 0.099. Reading the parameter
using:
will return integer values between 0 and 99. When writing, the command:
will set the parameter to 0.045 (same as #1.19=0.045). The benefit of this is that the
DPL program can use integer variables (%) instead of floating-point, thus providing a
speed advantage.
7.5
Operators
DPL offers all the standard operators as follows:
The Second Processor always guarantees that the drive parameter database it uses
matches that of the host Unidrive SP. When a Second Processor is fitted to a Unidrive
SP for the first time and powered up the word “Loading” may appear on the drive display
for a few seconds. This indicates the Second Processor is synchronizing databases.
This will only occur the first time the module is fitted to the drive. Subsequent power-ups
will show “Loading” only for a very short time.
NOTE
Speed% = #3.02
#01.22 = 1500
Speed_Fine% = #INT1.19
#INT1.19 = 45
Table 7-3 Standard operators in precedence order
Operator Meaning
-
Arithmetic negation
!
Boolean negation (unary)
!(..., nbit)
Negation of
nbit
bits
*
Multiplication
/
Division
%
Modulo (remainder)
+
Addition
Summary of Contents for Digitax ST Indexer
Page 131: ......
Page 132: ...0471 0062 04...