NORD Drivesystems BU0000 User Manual
Page 58
NORD CON Manual
58
BU 0000 GB
Name
Description
Var1 =
Device 00
Status word
// Assign to the variable the value of the status word
Note:
An assignment of desired values can be implemented only within an instruction for
block.
Jump mark The instruction defines a jump mark in macro. With the help of the function „Goto" you can jump to
the place of the jump mark. According to standard the line is inserted in the example 1. The
parameters of the function can be changed in the view „Properies". The name of the jump marks are
to be changed in any case, as double names causes problems. The generator always jumps to the
first branch mark in the macro.
Example
:
Label1:
// Defined the label „Label1"
·
or
Start:
// Defined the label „Start"
Sleep
The instruction produces a break in the expiration macros. The time base is in „ms ". According to
standard the instruction is inserted in the example 1. The time can be changed in the view
„Properties".
Example:
Sleep
1000
ms
// Wait 1s
or
Sleep
500
ms
// Wait 0,5s
Goto
The instruction generates a jump in the macro. After activation of this instruction the generator jumps
into the line of the jump mark with the contained name. If the generator does not find a label with the
name, the line is ignored. Still if no label is defined in the macro, the menu entry is deactivated.
According to standard the first label is always registered. The names of the label can be changed in
the view „Properties".
Example:
Goto Start
// goto jump mark „Start"
Condition
The instruction produces a conditioned jump in the macro. If the condition is true then the generator
jumps into the line of the jump mark with the name. According to standard the line is inserted in the
example 1. The instruction can be changed in the view „Properties"
Example:
if
Device 00
Controlword ==
047F hex
then
// Status word is of value 1150
Goto Start
// then go to jump mark „Start"
Block
The instruction makes it possible to increases assignments in an instruction to implement. These
assignments are limited to the objects „control word" and set point values". Depending upon
configuration of the device and intended purpose the user can select between „control word with 1
set point value" , „control word with 2 set point values" or „control word with 3 set point values ".
Example: ·
Block
Device 00
Controlword =
1151
// assign to control word the value 1150
Device 00
Setpoint1 =
20,0
// assign to setpoint 1 the value 20
Mathematic
s and logic
These instructions realize some simple mathematical and logical operations of objects. The
computed value is assigned afterwards to an object. The instruction can be changed in the view