Documente Academic
Documente Profesional
Documente Cultură
Drive Inverters
Manual
IPOSplus®Positioning and Sequence Control
Edition 07/2000
10/262/97
C UL
®
UL
®
0919 1712 / 0700
Important Notes
Important Notes
• Read through this manual carefully before you start to install and commission
MOVIDRIVE® drive inverters with IPOSplus®.
This manual assumes that the user has access to and is familiar with the documentation on
the MOVIDRIVE® system, in particular the system manual and the operating instructions.
• Safety notes:
Always follow the safety and warning instructions contained in this manual!
Safety notes are marked as follows:
Important instructions for safe and fault-free operation of the driven machine/
system, e.g. pre-setting before commissioning.
• Each unit is manufactured and tested to current SEW-EURODRIVE technical standards and
specifications.
The manufacturer reserves the right to make changes to the technical data and designs as
well as the user interface herein described, which are in the interest of technical progress.
A requirement of fault-free operation and fulfillment of any rights to claim under guarantee is
that this information is observed.
• We are only discussing the MX_SHELL user interface in this manual. All functions displayed
in this document can also be performed in IPOSplus® ASSEMBLER MOVITOOLS.
Revisions of the preceding edition 02/99 are indicated by a gray line in the margin.
2 MOVIDRIVE®IPOSplus®
Contents
Contents
1 System Description ............................................................................. 4
1.1 General information ...............................................................................................4
1.2 Characteristics of the IPOSplus® sequence and positioning control system ...........4
1.3 Options in conjunction with IPOSplus®..................................................................................... 4
1.4 Control of the MOVIDRIVE® inverter......................................................................5
1.5 Setpoint selection ..................................................................................................5
1.6 Technical data........................................................................................................5
2 Position detection and positioning........................................................... 6
2.1 Encoder evaluation.................................................................................................6
2.2 Encoder combinations ...........................................................................................7
3 Creating, Activating, Storing and Loading Programs ..................................... 9
3.1 Creating programs .................................................................................................9
3.2 Saving/loading programs.....................................................................................11
3.3 Starting/stopping programs.................................................................................12
4 IPOSplus® Programming ..................................................................... 13
4.1 Basic information.................................................................................................13
4.2 Digital inputs/outputs ..........................................................................................15
4.3 Analog inputs/outputs..........................................................................................18
4.4 Brief introduction to IPOSplus® programming by way of examples ......................19
4.5 Task 1 and task 2.................................................................................................21
5 IPOSplus® Parameters ........................................................................ 23
5.1 Setting the user travel units .................................................................................23
5.2 P90_ IPOS reference travel..................................................................................24
5.3 P91_ IPOS travel parameters...............................................................................29
5.4 P92_ IPOS monitoring.........................................................................................31
5.5 P93_ IPOS special functions................................................................................32
5.6 P94_ IPOS variables ............................................................................................32
5.7 P95_ DIP .............................................................................................................33
6 IPOSplus® with Options ....................................................................... 34
6.1 External encoder ..................................................................................................34
6.2 IPOSplus® and Fieldbus ........................................................................................39
6.3 IPOSplus® and Synchronous Operation ................................................................44
7 Command Set ................................................................................. 53
7.1 Overview of commands .......................................................................................53
7.2 Arithmetic commands..........................................................................................55
7.3 Bit commands......................................................................................................56
7.4 Communication commands .................................................................................57
7.5 Positioning commands ........................................................................................66
7.6 Program commands ............................................................................................69
7.7 Set commands.....................................................................................................72
7.8 Special unit commands .......................................................................................78
7.9 Comparison commands.......................................................................................82
8 Survey of System Variables ................................................................. 83
9 Sample Programs............................................................................. 87
9.1 General information .............................................................................................87
9.2 Sample program "Hoist".......................................................................................89
9.3 Sample program "Jog mode" ...............................................................................96
9.4 Sample program "Table positioning" ..................................................................100
10 Fault Messages .............................................................................. 105
10.1 Processing.........................................................................................................105
10.2 List of faults.......................................................................................................106
11 Index ........................................................................................... 112
MOVIDRIVE® IPOSplus® 3
1 System Description
1 System Description
1.1 General information
The IPOSplus® positioning and sequence control system is integrated into every MOVIDRIVE®
inverter as standard. With IPOSplus®, control functions and positioning tasks can be performed
either simultaneously or independently of one another.
The IPOSplus® sequence control system makes it possible to run a user program, irrespective of
any encoder feedback or the selected control modes (VFC, CFC, SERVO).
In conjunction with encoder feedback, the IPOSplus® positioning control provides a high-perfor-
mance point-to-point positioning capability.
Programs for IPOSplus® are written exclusively using the MX_SHELL PC user interface. Commis-
sioning the inverter, accessing parameters and editing variables are possible either with the
MX_SHELL PC interface or the DBG11A operator panel. (Note: The DBG11A can only be used for
commissioning in VFC mode.)
4 MOVIDRIVE®IPOSplus®
System Description 1
MOVIDRIVE® IPOSplus® 5
2 Position detection and
positioning
All connected encoders will always be evaluated independent of the operating mode (P700). Opera-
ting modes with positioning mode (VFC-n-Reg. & IPOS, CFC & IPOS, SERVO & IPOS) always
require a motor encoder at X15. The actual positions can be evaluated with the touch-probe
function.
Absolute encoder Incremental encoder Incremental encoder /
at DIP11A reconstruction Resolver
Encoder type
P941: Absolute encoder P941: External encoder P941: Motor encoder
(DIP) (X14) (X15)
Connection X62 / DIP11A X14 / Basic unit X15 / Basic unit
Actual value on variable H509 / ACTPOS. ABS H510 / ACTPOS. EXT H511 / ACTPOS. MOT
Resolution Absolute position after conver- Actual encoder bar number always 4096 inc./motor
sion with: (with quadruple evaluation) rotation, independent of
zero point offset (P954), actual encoder resolution
position offset (P953),
counting direction (P951)
Edge at DI02 H503 / TP. POS1ABS H506 / TP. POS1EXT H507 / TP. POS1MOT
Touch-
Edge an DI03 H502 / TP. POS2ABS H504 / TP. POS2EXT H505 / TP. POS2MOT
probe
max. delay time 1 ms < 100 s < 100 s
The position values are always available to the IPOSplus® control in variables H509 to 511. Enco-
ders connected to X14 and X15 can always be detected and processed further in the IPOSplus® pro-
gram, even if the positioning is not done with IPOSplus®. Positioning with the IPOSplus® commands
(GO...) always requires a motor encoder. The motor encoder submits a high-quality speed signal to
the MOVIDRIVE® unit.
6 MOVIDRIVE®IPOSplus®
Position detection and 2
positioning
M
02742AEN
GO Wait ...
- • There is an automatic slip compensation between incre-
Profile + Position +
generator control n control mental encoder / resolver of the motor and the absolute
-
IPOSplus®
encoder.
nact.
program • Positioning commands, e.g. "GOA ..." , are executed in
M IPOSplus® in reference to the source actual position
(here: absolute encoder (DIP)).
01886AEN
• The actual control dynamic that can be accomplished
depends on the properties and the mechanical installa-
tion of the absolute encoder as well as the position
resolution..
• see “Positioning with DIP11A absolute encoder“
manual
MOVIDRIVE® IPOSplus® 7
2 Position detection and
positioning
8 MOVIDRIVE®IPOSplus®
Creating, Activating, Storing 3
and Loading Programs
À
Á
Ã
Â
01357BEN
Fig. 1: Program window
The program header ④ comprises the first three lines of the "Program" window. The values for the
user travel units NUMERATOR, DENOMINATOR and DIMENSION are entered in the first two lines
( Sec. 5.1). The values in the program header can be selected with the tab key in order to be
edited. The changes are then confirmed by pressing the enter key.
The third line displays the operating states of the task 1 and task 2 user programs:
• START (program is running);
• P-STOP (program execution stopped);
• BREAK (program is only processed as far as the selected line);
• STEP (program is processed line-by-line by pressing the F7 key).
MOVIDRIVE® IPOSplus® 9
3 Creating, Activating, Storing
and Loading Programs
01358AEN
Fig. 2: Selection window for commands
An input screen opens when you select a command. Press the tab key to jump from text box to text
box. Navigate within these text boxes by pressing the arrow keys. Press the enter key to transfer
the selected arguments into the command. Numbers are entered using the number keys.
Once all arguments have been entered into the command, the command line is added to the user
program by pressing the enter key. The line is added above the line which is selected. Press the
delete key to delete selected command lines.
01359AEN
Fig. 3: Input screen for commands
10 MOVIDRIVE®IPOSplus®
Creating, Activating, Storing 3
and Loading Programs
Program
window MX_SHELL
Copy
MDX
d
--
(P807 > DBG
loa
E Q
Up
)
d
lo a
Copy
F3
DBG
wn
-->
Communication: offline
Save to new file
Save file
DBG11A (P806 MDX
Do
Load file
) ter e
F2
i n ver offlin
t o n :
ve tio
Sa unica er
m ert
EEPROM
Co
m
d inv
a
Save to inverter Lo
EEPROM
Communication:
online simulta-
neous Load file
Load inverter Communication: online
selectable Save file
Save to new file
Inverter
MOVIDRIVE® File
01336BEN
Fig. 4: Saving and loading IPOSplus® programs
A user program programmed using IPOSplus® only runs on a MOVIDRIVE® inverter. To do so, it
must be transferred to the inverter first. Once the program has been transferred successfully (a
window with a transfer bar appears briefly), it is immediately stored in the non-volatile memory of
the inverter.
IPOS programs can also be transferred from one MOVIDRIVE® to another MOVIDRIVE® using the
DBG11A operator panel. This is done using parameters P807 (Copy MDX DBG) and P806 (Copy
DBG MDX).
Note: Remark lines in the user program are not saved in the inverter. Therefore, the recommended
course is to save the user program to a PC first.
MOVIDRIVE® IPOSplus® 11
3 Creating, Activating, Storing
and Loading Programs
12 MOVIDRIVE®IPOSplus®
IPOSplus® Programming 4
4 IPOSplus® Programming
4.1 Basic information
Programs are entered via screens (see Sec. 3). Entry of IPOSplus® user programs is exclusively
possible with the MX_SHELL user interface.
The user program can be up to 800 program lines long.
Program header:
It is only necessary to define user travel units in the program header of user programs in which
positioning commands are used ( Sec. 5.1).
Task 1 / Task 2:
The IPOSplus® positioning and sequence control permits a user program to be split into 2 sub-
routines (task 1 and task 2) which can run in parallel and independently of one other.
( Sec. 4.5).
Remarks:
Remarks can be inserted anywhere in the user program, like command lines.
Remarks can only be saved on the PC; they are discarded when downloaded to the inverter.
Program branches:
Program branches are possible with jump flags (Mxx) in conjunction with jump commands
(JMPxx Mxx). Jump flags can be inserted in front of any command line. As a result, there is no
need to number the program lines.
Subroutine system:
Subroutines can be called up with a CALL command (CALL Mxx). The corresponding jump
flags (Mxx) are inserted in front of the first command in the subroutine. A subroutine ends with
a return command (RET). The return command causes program processing to jump back to the
line below the CALL command. The subsequent program lines are then processed. Nested sub-
routines are possible, but nesting depth should not exceed 16.
Safety note:
Subroutines must never be exited with a jump into a main program or into another subroutine.
Conditional exiting of the subroutine must be performed by jumping to the end (RET) of the
subroutine.
Program loops:
Program loops consist of a loop beginning (LOOPB) and a loop end (LOOPE). The number of
times the loop is processed is defined in the argument of the LOOPB command. Nested loops
are possible, but nesting depth should not exceed 16.
Safety note:
Program loops must never be exited with a jump command. Jump commands are allowed
within a program loop.
MOVIDRIVE® IPOSplus® 13
4 IPOSplus® Programming
Positioning commands:
The IPOSplus® positioning control permits point-to-point positioning of the MOVIDRIVE® drive.
The IPOSplus® positioning control automatically generates a travel profile and monitors travel
performance when a travel command is being processed.
Variables:
All variables (H0 – H511) can be read and written. The variables have a range of values from -231
– +231 - 1. Variables H0 – H127 are stored in the non-volatile memory if they are entered in the
variable list (via PC, DBG11A operator panel or fieldbus), or if they are saved in the IPOS program
with the "MEM" command. Variables H458 – H511 contain frequently used unit values which are
updated cyclically (every ms). These variables are referred to below as system variables and are
explained in more detail in Sec. 8.
Be careful when writing system variables! The effects are described in Sec. 8.
14 MOVIDRIVE®IPOSplus®
IPOSplus® Programming 4
Direct interrogation
The terminal level of digital inputs can be interrogated in the IPOSplus®program by means of jump
commands. When doing this, it is necessary to select the terminal level (HI/LO) in the input screen
which should lead to the jump command being performed. Terminals which are going to be used
for this function must be identified with a "1" in the terminal mask. All defined terminals must have
the selected terminal level in order to fulfill the jump condition for the jump command.
jump target
DI00
DI05
DI10
DI17
level
01361AEN
Fig. 6: Input screen for a jump command dependent on input terminals
Example:
Jump if the signals at inputs DI03 and DI04 are high (1), otherwise the following command line is
processed:
Digital inputs Binary inputs option DIO11A/DIP11A Binary inputs, basic unit
Terminal X... 22:8 22:7 22:6 22:5 22:4 22:3 22:2 22:1 13:6 13:5 13:4 13:3 13:2 13:1
60:8 60:7 60:6 60:5 60:4 60:3 60:2 60:1
Terminal designation DI17 DI16 DI15 DI14 DI13 DI12 DI11 DI10 DI05 DI04 DI03 DI02 DI01 DI00
Bits of H483 system variable 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Significance 213 212 211 2 10
29 28 27 26 25 24 23 22 21 20
Table 4: Assignment of H483 system variable to digital input terminals
MOVIDRIVE® IPOSplus® 15
4 IPOSplus® Programming
The digital inputs in the IPOSplus® program can be interrogated through the value of variable
H483. This is useful for interrogating inputs via which a binary-coded value is to be transferred,
e.g. for selecting a table position ( example in Table 5).
Example: Read inputs Binary inputs, basic unit
Terminal X... 13:6 13:5 13:4 13:3 13:2 13:1
Terminal designation DI05 DI04 DI03 DI02 DI01 DI00
Significance 25 24 23 22 21 20
Terminal level 1 0 0 0 1 1
Weighting 1 25 0 24 0 23 0 22 1 21 1 20
Variable value H483 32 + 0 + 0 + 0 + 2 + 1 = 35*
* If all input terminals of the DIO11A/DIP11A are at 0 level.
Table 5: Example of transmitting a binary coded value via input terminals
If only particular inputs are to be evaluated, e.g. the first input of the DIO11A option, one way of
achieving this is to combine the BMOV and JMP commands ( Sec. 4.2.2 for additional expla-
natory information).
The individual terminal levels of digital outputs can be evaluated with the BMOV command in the
IPOSplus®program. The BMOV command copies a bit from system variable H482 (OUTPUT LVL)
to any bit position (significance) of another variable. The terminal level of output DO02 is inter-
rogated using the following sample program. To do this, bit 2 of system variable H482 is copied
to bit 0 (significance 20) of H200. This makes it easy to interrogate (0 or 1) the terminal level
with a JMP command.
SET H200 = 0
BMOV H200.0 = H482.2
JMP H200 == 1 ,Mxx
Alternatively, individual or several terminal levels of digital outputs can be filtered out by a logical
operation with system variable H482 (OUTPUT LVL) ( Sec. 7.2 AND command). The terminal
level of output DO02 is interrogated using the following sample program:
M1 :SET H200 = 4
AND H200 & H482
JMP H200 == 4 ,M1
16 MOVIDRIVE®IPOSplus®
IPOSplus® Programming 4
MOVIDRIVE® IPOSplus® 17
4 IPOSplus® Programming
Example:
Outputting table position number 11 via DIO11A ("11" requires 4 outputs so outputs DO10 –
DO13 are needed):
SET H480 = 11
All digital outputs whose parameters are set to "IPOS OUTPUT" are reset by writing "0" to
system variables H480 and H481.
SET H480 = 0 Reset the outputs of the DIO11A option
SETH481 = 0 Reset the outputs of the basic unit
Analog inputs AI1 and AI2 are differential inputs. The inputs/outputs can either be used as
voltage or current inputs/outputs ( MOVIDRIVE® System Manual).
The assignment of value range to variable value for analog outputs is only valid if the scaling
factor is set to 1.
18 MOVIDRIVE®IPOSplus®
IPOSplus® Programming 4
Quick-start (example):
Pre-requisites:
Mains connection and/or 24 V supply (backup voltage terminals X10:9 (+24 V / VI24) and X10:10
(0 V / DGND)) connected; no need to connect the motor and encoder (no motor movement).
1. There is no need to start up the speed control.
2. Set the parameters of the inputs/outputs:
P621 Binary output DOØ2
IPOS OUTPUT
3. Open/activate the "Program" window and enter the sample program "Output DOØ2 (X13:3)
flash" ( Sec. 3.1).
Program header
Start of program
Comment
Comment
Comment
Set output DOØ2 (X13:3) low
Wait 2 seconds
Set output DOØ2 (X13:3) high
Wait 2 seconds
End of program / jump to start of program
01338BEN
Fig. 9
4. Download the sample program from the program window (PC) to the program memory in the
inverter:
Press "F2" whilst the program window is active ( Sec. 3.2).
5. Start the sample program:
Press "F9" whilst the program window is active ( Sec. 3.3).
6. Check the user program:
– The task 1 display in the program header changes from P-STOP to START.
– The program pointer moves in the program window.
– The level of output terminal DOØ2 in display parameter P052 changes between 1 and 0
every two seconds.
MOVIDRIVE® IPOSplus® 19
4 IPOSplus® Programming
Quick-start (example):
Pre-requisites:
• Inverter / motor/ encoder connected.
• Inverter started up in accordance with the MOVIDRIVE® System Manual in VFC-n-CTRL& IPOS,
CFC & IPOS or SERVO & IPOS (P700) operating mode.
• Check the hardware limit switches of the EMERGENCY OFF circuit.
1. Parameter setting:
NUMERATOR (program header)
4096 (Sec. 5.1)
DENOMINATOR (program header) 1
DIMENSION (program header) rev.
P600 Binary input DI01
ENABLE / STOP
P601 Binary input DI02
NO FUNCTION
P602 Binary input DI03
NO FUNCTION
P603 Binary input DI04
/LIM. SWITCH CW
P604 Binary input DI05
/LIM. SWITCH CCW
P700 Operating mode
VFC-n-CTRL& IPOS / CFC & IPOS / SERVO & IPOS
2. Enter sample program "10 motor revolutions forwards and backwards" ( Sec. 3.1).
Program header
Start of program
Comment
Comment
Comment
Travel relative 10 motor revs. CW
Wait 2 seconds
Travel relative 10 motor revs. CCW
Wait 2 seconds
End of subroutine
End of program / jump to start of program
01339BEN
Fig. 10: Sample program "10 motor revolutions forwards and backwards"
20 MOVIDRIVE®IPOSplus®
IPOSplus® Programming 4
Task 1:
• Command processing time 1 ms/command
• Start address always line 1
• Program start with F9 START; program stop with F8 P-STOP or F5 A/P-STOP
• Diagnosis options in single step mode (F7 STEP), processing up to the selected line (F4
GOTO CURSOR) and program pointer display
• Programmable interrupt, to be triggered by a fault, touch probe, timer and cyclically
Task 2:
• Command processing time 0.5 ms/command
• The start address is defined in task 1 using the TASK2 START Mxx command
• Processing of task 2 can only be started and stopped in task 2 using the TASK2 START
“jump flag“ in Task 1. Task 2 can be stopped in Task 1 or Task 2. Both tasks will be stopped
via the function keys F5 A/P-STOP or F8 P-STOP.
• No interrupt possible
A user program should be divided between task 1 and task 2 in accordance with the following
criteria:
Task 1:
• Initialization of variables and parameters (because task 1 starts first and from line 1)
• Program sections which are less time-critical, e.g. positioning commands extended with
WAIT
• Program sections which are processed depending on events, e.g. response to a unit fault,
touch probe signal, terminal level, etc.
Task 2:
• Time-critical program sections
• Program sections which are to be processed cyclically
• Program sections which are to be processed in parallel with and independently of task 1
MOVIDRIVE® IPOSplus® 21
4 IPOSplus® Programming
01746AEN
Fig. 11: Left: Test program with CALL / Right: Final program with task 2
22 MOVIDRIVE®IPOSplus®
IPOSplus® Parameters 5
5 IPOSplus® Parameters
The default setting is printed in bold type in the setting range.
Internally, IPOSplus® always calculates with 4096 increments/motor revolution. The user may wish to
program travel commands in user units other than increments/motor revolution (e.g. mm, revs., ft.).
In this case, the "NUMERATOR" and "DENOMINATOR" travel distance factors must be set as described
below. One exception to this is travel commands involving variables which are not supported by
numerator/denominator factors. These can only be specified in increments/motor revolution.
Note:
If the numerator or denominator are non-integer values, the conversion can be made more accu-
rate if both numerator and denominator are multiplied by the same expansion factor (e.g. 10, 100,
1000, etc.). This expansion does not limit the maximum travel range.
Example:
The units listed below are to be used for programming the following drive:
a) mm on the linear axis
b) Increments
c) Output shaft revolutions
MD0064AD
Fig. 12
MOVIDRIVE® IPOSplus® 23
5 IPOSplus® Parameters
The travel distance factor DENOMINATOR is not a whole number, i.e. accuracy of conversion can
be increased by means of an expansion factor. The expansion factor should be as large as possible,
although the result may not exceed adjustment range (expansion factor in this example: 100,000).
b) Increments
Travel distance factor NUMERATOR = 1
Travel distance factor DENOMINATOR = 1
c) Drive revolutions
Travel distance factor NUMERATOR = Inc./motor rev. × gear ratio i = 4096 × 4 = 16384
Travel distance factor DENOMINATOR = 1
Practical information for determining the travel distance factor during commissioning
For example, setting the user travel units in mm
1. Set both the travel distance factors NUMERATOR and DENOMINATOR to the value 1:
User travel units = Increments
2. In manual mode, move any number of user travel units (in this case, increments), e.g.
100,000 increments.
3. Measure the distance covered on the system in point 2, e.g.:
Starting position = 1000 mm,
Target position = 1453 mm,
Distance covered = 453 mm.
4. Enter the travel distance factors in the machine parameters:
Travel distance factor NUMERATOR = 100000,
Travel distance factor DENOMINATOR= 453.
5.1.2 UNIT
All travel distance information is displayed with the same designator in the "Program" window.
This designator can be entered in the program header for UNIT. It can be up to five characters in
length.
Note: This entry is purely symbolic and does not have any effect on the function of the drive.
24 MOVIDRIVE®IPOSplus®
IPOSplus® Parameters 5
To evaluate the signal of the reference cam, a binary input of the MOVIDRIVE® has to be pro-
grammed with the "REFERENCE CAM" function. The length of the reference cam and the reference
speeds must be selected so the drive can reliably decelerate to the slower reference speed (refer-
ence speed 2) on the reference cam. The end of the reference cam or the closest zero pulse of the
encoder system can be used as the reference point. The drive stops when it reaches the reference
position and is subject to position control.
Reference position: End of the reference cam or the closest zero pulse of the encoder system
• It is recommended that the zero pulse of the encoder system be selected as the reference posi-
tion if the reference cam is not precise as a result of age and wear or switching hysteresis.
• If the zero pulse is used and it is located exactly at the end of the reference cam, the switching
transition of the reference cam may be detected either before or after the zero pulse (switching
hysteresis). The result may be a reference position which varies by a motor revolution from one
occasion to the next. The situation can be remedied by shifting the reference cam (by about half
a motor revolution).
• There are applications in which the zero pulse of the encoder is unfavorable for use as a refer-
ence point for system-specific reasons. With uni-directional drives in one direction (e.g. a rotary
table) with non-integer reduction ratios, there is no fixed relationship between the reference cam
and the zero pulse of the encoder. As a result, the end of the reference cam should be selected
as the reference position in this case.
Reference travel can be started either by a programmable input terminal (REF. TRAVEL START) or
by a GO0 command in the user program. The argument of the GO0 command can be used for
specifying the different variants.
Once started, reference travel will be completed, even if the request for reference travel is revoked.
The 7-segment display changes to "c" at the start of reference travel and returns to "A" (position-
ing) when the reference travel is completed. An output which has been parameterized to "IPOS
REFERENCE" remains set for as long as the axis has not lost the machine zero (voltage OFF).
The reference travel can be interrupted with “/controller inhibit,“ while a new enable command will
continue the reference travel. Activating the reference travel as a waiting command (GO0.., W, ..)
during interrupt with “/controller inhibit“ will result in error message F39 (reference travel).
MOVIDRIVE® IPOSplus® 25
5 IPOSplus® Parameters
Reference position cam: Movement to this position takes place when the argument of the GO0 ref-
erence travel command contains CAM.
Reference position zero pulse: Movement to this position takes place when the argument of the
GO0 reference travel command contains ZP (zero pulse).
Type 0: Reference travel on zero pulse, reference position is the current position (CAM) or
the zero pulse to the left of the current position (ZP)
(no reference cam is necessary)
Machine zero = CCW zero pulse of the current position + reference offset
3
2
VRef1 1
*2
VRef2 reference offset
*1 actual drive
position
machine reference
CCW LS position ZP CW LS
zero point
s
01254BEN
Fig. 13: Reference travel type 0
Type 1: The reference position is the left-hand end of the reference cam (CAM) or the first
zero pulse to the left of the reference cam (ZP)
Machine zero = Reference point + Reference offset
3
VRef1
2 1
*2
}
reference
VRef2
offset
}
*1 reference
position CAM
machine zero
point reference
LS CCW Refcam LS CW
position ZP
01255BEN
Fig. 14: Reference travel type 1
26 MOVIDRIVE®IPOSplus®
IPOSplus® Parameters 5
Type 2: The reference position is the right-hand end of the reference cam (CAM) or the first
zero pulse to the right of the reference cam (ZP)
Machine zero = Reference point + Reference offset
1
VRef1
3 2
*2
}}
reference
VRef2
offset
reference *1
position CAM
machine zero
reference point
LS CCW Refcam position ZP LS CW
01256BEN
Fig. 15: Reference travel type 2
Type 3: The reference point is the first zero pulse CCW of the CW limit switch (ZP, no reference
cam is necessary. The CAM argument must not be set in the GO0 command because the
drive might be located in the switching hysteresis of the limit switches.)
Machine zero = Reference point + Reference offset
1
2
VRef1 3
VRef2 *1
}
reference
offset
reference
LS CCW machine zero point position ZP LS CW
s
01257BEN
Fig. 16: Reference travel type 3
Type 4: The reference point is the first zero pulse CW of the CCW limit switch (ZP, no reference
cam is necessary. The CAM argument must not be set in the GO0 command because the
drive might be located in the switching hysteresis of the limit switches.)
Machine zero = Reference point + Reference offset
3
2
VRef1 1
VRef2 *1
}
reference
offset
01258BEN
Fig. 17: Reference travel type 4
MOVIDRIVE® IPOSplus® 27
5 IPOSplus® Parameters
Type 5: No reference travel, the reference position is the current position (CAM, ZP)
Machine zero = current position (no reference to zero pulse) + reference offset
3
2
reference offset 1
VRef1 *1
s
00018CEN
Fig. 18: Reference travel type 5
Type 6: The reference position is the left-hand end of the reference cam (CAM) or the first
zero pulse to the left of the reference cam (ZP),
the reference cam and the CW hardware limit switch must be flush or overlapping
to guarantee that no contact is made with the hardware limit switch during reference travel.
Machine zero = Reference point + Reference offset
3 2
VRef1
}*2
reference
VRef2
offset
}
*1 reference
position CAM
reference
LS CCW machine zero position ZP Refcam LS CW
point
s
01466BEN
Fig. 19: Reference travel type 6
Type 7: The reference position is the right-hand end of the reference cam (CAM) or the first
zero pulse to the right of the reference cam (ZP),
the reference cam and the CCW hardware limit switch must be flush or overlapping
to guarantee that no contact is made with the hardware limit switch during reference travel.
Machine zero = Reference point + Reference offset
2 1
VRef1
*2
}
reference
VRef2
offset
reference
}
position CAM *1
28 MOVIDRIVE®IPOSplus®
IPOSplus® Parameters 5
MOVIDRIVE® IPOSplus® 29
5 IPOSplus® Parameters
v 100 %
< 100 %
t 01748AXX
Fig. 21: Effects of parameter 915 (speed feedforward)
30 MOVIDRIVE®IPOSplus®
IPOSplus® Parameters 5
Caution:
After F78 (IPOS software limit switches) has been reset, the reference point is defined. The soft-
ware limit switches are not re-activated until the drive has been referenced again!
Deactivation:
Set parameters P920 and P921 to 0 (e.g. for uni-directional operation) to deactivate the software
limit switches.
MOVIDRIVE® IPOSplus® 31
5 IPOSplus® Parameters
32 MOVIDRIVE®IPOSplus®
IPOSplus® Parameters 5
MOVIDRIVE® IPOSplus® 33
6 IPOSplus® with Options
The counter of the external encoder (H510) is “0 Increments” after the power has been turned on.
After reference travel, the counter will display the value of parameter 900, reference offset, and
depending on direction of rotation, the distance of the brake ramp (emergency stop ramp) until
standstill.
34 MOVIDRIVE®IPOSplus®
IPOSplus® with Options 6
Caution! The calculation of P210 (P-gain hold controller) during startup/commissioning has been
optimized for P941 = motor encoder. The value may have to be decreased somewhat when using
external or absolute encoders.
The following statements apply to position sensing with external encoder on X14:
Variable H510 indicates the actual position of the position control ACTPOS. EXT
Variable H506 indicates the touch-probe position 1 TP. POS1EXT
Variable H504 indicates the touch-probe position 2 TP. POS2EXT
IPOSplus® positioning:
IPOSplus® positioning is only available with a motor encoder and is connected to X15. The parame-
ter P941 SOURCE ACTUAL POSITION must be set to “external encoder.“ The travel commands of
the IPOSplus® control (GO commands) refer to position information of the external encoder con-
nected to X14. The actual position is available in variable H510 ACTPOS EXT.
MOVIDRIVE® IPOSplus® 35
6 IPOSplus® with Options
The factory setting does not have to be performed. If a factory setting is called up, the MOVIDRIVE®
parameters will be reset to a basic setting. This step will also affect the terminal assignment feature
and may have to be corrected to get the desired settings.
MOVITOOLS makes it possible to have a guided startup, i.e. dialog windows will prompt you to
enter the necessary data and perform the required actions. You will have to start the MOVITOOLS
manager and establish a connection with the inverter by selecting the appropriate interface and unit
address. Run the SHELL program and begin start-up via the menu [Inbetriebnahme] / [Inbetrieb-
nahme für / DIP]. Any further details will be explained in the dialog windows.
Only the “source actual position“ ( Page 38) will have to be indicated after startup with
MOVITOOLS.
You have the option to startup the DIP11A option gradually as described below. If the fault
message F92 “DIP sensing report“ occurs, confirm it with a reset and continue with start-up
procedure. This message should not occur after successfully executing the startup process.
36 MOVIDRIVE®IPOSplus®
IPOSplus® with Options 6
difference
Quotient Q = H511 -
-----------------------------------------------------
H509 difference
Set parameter ENCODER SCALING (P955) to the value closest to the calculated ratio Q prefe-
rably to the smaller value.
MOVIDRIVE® IPOSplus® 37
6 IPOSplus® with Options
Caution: The closed-loop gain for the positioning control of the IPOSplus®, parameter 910 "gain
X-controller", was preset during startup of the speed control system. The presetting is based on
having the position control assigned to the motor encoder. The difference between encoder
resolution or the time behavior of the absolute encoder (e.g. laser distance measuring device)
may require a smaller set value.
Set half the value of the calculated presetting. Start an IPOSplus® program with one positioning
between two valid points with moderate speed. Reduce or increase the parameter 910 "gain
X-controller" gradually until the best travel and positioning behavior has been set.
The position value from the absolute encoder is available in variable H509 (ACTPOS. ABS). The
position value can be processed with the internal IPOSplus® control and without direct posi-
tioning.
38 MOVIDRIVE®IPOSplus®
IPOSplus® with Options 6
IPOS variables:
IPOSplus-Programm:
***************************
Copy position setpoint of PO
data to new target position
***************************
...
1 SET H492 = H499
...
END
02727AEN
Fig. 22: Incremental position preset
The unit of the destination and actual position is indicated in increments in this example. The set
position transmitted via fieldbus is automatically copied to variable H499 SP.POS.BUS. It can be
used to generate a travel command by copying variable H499 into variable H492 TARGET POS
(SET H492 = H499). The actual position of the drive can also be fed back into the control. You will
have to set the parameters for process input and output data to position high/low.
The actual position of the drive is transmitted to the control in case the parameters for process
input data P874 have been set to PE2: POSITION HI and P875 PE3: POSITION LO.
MOVIDRIVE® IPOSplus® 39
6 IPOSplus® with Options
IPOS variables:
02728AEN
Fig. 23: Scaling of position setpoint
40 MOVIDRIVE®IPOSplus®
IPOSplus® with Options 6
Control word 2
02729AEN
Fig. 24: Virtual terminals
If there is also one of the DIO11A or DIP11A option cards installed in the MOVIDRIVE® unit in addi-
tion to the fieldbus, the same settings of parameter P61_ apply to the physically present terminals.
Thus, all terminal-dependent commands (e.g. JMP LO/HI xxxx xxxx xxxx xxxx) apply only to the
hardware inputs and not to the control bits 8-15 in control word 2.
The upper byte of control word 2 will have to be entered with a GETSYS (PO data) command to still
make use of it. A decoding of the upper 8 bits will subsequently take place in the IPOS program.
The variable created with this step can be used as a jump distributor (JMP Hxxx == value, Mxx) or
an input terminal function selected by copying individual bits (BMOV H484.x Hxxx.x) in H484
CTRL. WORD.
15 14 13 12 11 10 9 8 0
Control word 2
480 OPT.OUT IP
...
...
1 483 INPUT LVL
IPOSplus program:
02730AEN
Fig. 25: Use of the upper bytes of control word 2
MOVIDRIVE® IPOSplus® 41
6 IPOSplus® with Options
It is always possible to place and read terminals with variables, regardless of any additional
option that may be used with a fieldbus interface.
If a fieldbus interface is used together with a DIP11A option, the virtual fieldbus terminals are
only available in IPOSplus® via reading of the process output data (GETSYS Hxxx PO-DATA).
42 MOVIDRIVE®IPOSplus®
IPOSplus® with Options 6
IPOS variables:
02731AEN
Fig. 26: Transmission of 10 process data words
One process data word is copied in one variable, with control word and status word each counting
as one process data word. The process data word is written in bits 0 to 15 of an IPOS variable, the
bits 16 to 31 of the IPOS variables are set to 0.
MOVIDRIVE® IPOSplus® 43
6 IPOSplus® with Options
A detailed description of synchronous operation can be found in the “Synchronous Operation Card
Type DRS11A“ manual.
The control of the DRS11A synchronous operation card within the IPOSplus® program can take
place in several different ways:
• by programming the DRS control and monitoring variables
DRS CTRL. (H476) and DRS STATUS (H477)
• by programming of the IPOSplus® CTRL. WORD (H484)
• by programming individual parameters via MOVLINK command.
44 MOVIDRIVE®IPOSplus®
IPOSplus® with Options 6
02961AEN
Fig. 27: Free-wheeling function
MOVIDRIVE® IPOSplus® 45
6 IPOSplus® with Options
Prerequisites:
The DRS11A can be switched to free-wheeling via IPOSplus® and a cable connection from terminal
X40:9 (OUTP0) to X40:1 (free-wheeling).
Command sequence:
BSET H476.0 = 1 Setting OUTP0 and thus the DRS input “Free-wheeling”:
red LED illuminated!
BCLR H476.0 = 0 Reset to synchronous operation function:
red LED extinguished
Command sequence:
BSET H484.22 = 1 Setting of DRS11A to function ’Setting of zero point’
WAIT 15 ms DRS-specific waiting period of 15 ms
BCLR H484.22 = 0 Reset to synchronous operation function with
deleted angle error; green LED extinguished.
DRS
X40:
1 INPØ
2 INP1
3 INP2
Control signal 4 INP3
5 INP4
Set DRS zero point LED SYNC / OFF 6 INP5
7 DCOM
8 VO24
31 22 13 12 11 10 9 8 0 9 OUTPØ
10 OUTP1
H484: CTRL_WORD 11 DGND
LED SYNC / OFF
The green LED is illuminated
in case of angle error X41: Incremental
IPOS variables: between master and slave. encoder
Input
H476: DRS_Ctrl synchronous
H477: DRS_Status
encoder
...
H484: CTRL_WORD
…
X42: Incremental
encoder
Input
master
IPOSplus program:
encoder
BSET H484.22 = 1 // Set zero point, angle error deleted
// green LED extinguished
WAIT 15 ms // DRS-specific waiting period for signal run time X43: Incremental
BCLR H484.22 = 0 // Reset to synchronous operation function encoder
... Output
…
02962AEN
Fig. 28: Setting zero point
46 MOVIDRIVE®IPOSplus®
IPOSplus® with Options 6
Control sample:
• The drive is to be switched to free-wheeling mode via input DI10.
The input DI10 ... DI17 can be physical terminals on DIO11A or DIP11A option or virtual termi-
nals in the fieldbus control word 2.
DI10 = 1 Free-wheeling activated
DI10 = 0 Free-wheeling deactivated, drive operates in synchronous mode
• The actual offset angle is deleted (DRS setting zero point) via the virtual input DI11.
/*=======================================================================================
Subroutines
=========================================================================================*/
Freewheeling_On()
{
/* The free-wheeling mode is activated by setting the external jumper between X40:9 and X40:0 and
by deleting of output X40:9. */
/*=======================================================================================*/
Freewheeling_Off ()
{
/* The free-wheeling mode is deactivated by setting the external jumper between X40:9 and X40:0 and by
deleting of ouptut X40:9. */
/*=======================================================================================*/
DRS_zeropoint()
{
_BitSet( ControlWord, _DRS_Setzeropoint ); // Set zeropoint via Control Word
_Wait( 15 ); // Response time in ms
_BitClear( ControlWord, _DRS_Setzeropoint ); // Delete bit once again
}
/*=======================================================================================
Main function (IPOS entry function)
=========================================================================================*/
main()
{
if( E_Freewheeling ) // The input E_Freewheeling (here DI10)
Freewheeling_On(); // causes the switch between
else // freewheeling and synchronous operation
Freilauf_Aus();
MOVIDRIVE® IPOSplus® 47
6 IPOSplus® with Options
02963AEN
Fig. 29: Offset function
Prerequisite:
A position offset can be injected via IPOSplus® and a cable connection of terminal X40:10 to X40:2
(Offset1).
Command sequence:
BSET H476.1 = 1 Set drive to “Offset1” function
Slave drive shifts its position to master by Offset1 value.
BCLR H476.1 = 0 Reset of output terminal
Slave drive returns to previous position in relation to master.
48 MOVIDRIVE®IPOSplus®
IPOSplus® with Options 6
6.3.4 Sample program for switch between positioning and synchronous operation
The “free-wheeling“ function provides the option of a speed-controlled interruption of the synchro-
nous operation mode. However, the drive cannot travel in a position-controlled manner to a fixed
position in this function.
This step requires a change to the positioning (IPOS) operating mode.
IPOS variables:
H200: Operating
mode
...
H484: CTRL_WORD
…
IPOSp l u s
program:
02964AEN
Fig. 30: Switching
It is possible to switch between the operating modes synchronous operation and positioning via
input terminal DI12.
Observe the following important peripheral condition:
Switching from synchronous operation to positioning while the drive is operating can only be
accomplished in CFC or SERVO operating mode.
The following sample program deals with the change between the operating modes
CFC & IPOS and CFC & SYNC.
Applicable rules:
• DI10 = 0 no free-wheeling
• DI10 = 1 free-wheeling, if set to CFC & SYNC operating mode
• DI11 = 0 no function
• DI11 = 1 set DRS zero point (pulse)
• DI12 = 1 positioning, CFC & IPOS operating mode
• DI12 = 0 synchronous operation, CFC & SYNC operating mode
The switch between the operating modes is executed with the following command
_SetSys(SS_OPMODE, H)
where the value of variable H has the following meaning:
SS_OPMODE: Setting of operating mode
H = 11: CFC operating mode (speed control),
H = 12: CFC operating mode & torque control,
H = 13: CFC operating mode & IPOS (positioning),
H = 14: CFC operating mode & synchronous operation (DRS11A),
MOVIDRIVE® IPOSplus® 49
6 IPOSplus® with Options
/*=======================================================================================
IPOS Source File
=========================================================================================*/
#include <const.h>
#include <io.h>
/*----- Definition variables for switching between positioning and synchronous operation ---*/
#define operating mode H300
#define destination position H0
#define CFC_and_IPOS 13 // CFC operating mode & IPOS
#define CFC_and_SYNC 14 // CFC & synchronous operation
/*=======================================================================================
Subroutines
=========================================================================================*/
Free-wheeling_On()
{
/* Free-wheeling activated by setting the external jumper between X40:9 and X40:0
and by setting output X40:9. */
/*=======================================================================================*/
Free-wheeling_Off ()
{
/* Free-wheeling is deactivated via external jumper between X40:9 and X40:0 by deleting the
output X40:9. */
/*=======================================================================================*/
DRS_Zeropoint()
{
_BitSet( ControlWord, _DRS_Setzeropoint); // Set zero point via control word
_Wait( 15 ); // Response time in ms
_BitClear( ControlWord, _DRS_Setzeropoint ); // Delete Bit
}
/*=======================================================================================*/
Activate_synchronousoperation()
{
Operating mode = CFC_and_SYNC;
_SetSys( SS_OPMODE,operating mode ); // Switch operating mode
DRS_zeropoint(); // Delete angle error
}
/*=======================================================================================*/
Activate_IPOS()
{
Operating mode = CFC_and_IPOS;
_SetSys( SS_OPMODE,operating mode );
}
/*=======================================================================================
Main function (IPOS-Input function)
=========================================================================================*/
main()
{
if( E_Free-wheeling )
Free-wheeling_On();
else
Free-wheeling_Off();
if( E_Setzeropoint )
DRS_zeropoint();
if( E_Switchover_Pos_Sync )
{
Activate_IPOS();
_GoAbs( GO_NOWAIT,Final position );
}
else if ( !E_Free-wheeling )
Activate_synchronousoperation();
}
50 MOVIDRIVE®IPOSplus®
IPOSplus® with Options 6
------------------------------------------
SEW
Date: 24 June 97
******************************************
******************************************
Initalisation and declaration of
variables.
Binary Inputs:
----------------
DI00 = Controller inhibit
DI04 = Change P221 "Master Gear Unit i
DI04 = Ipos input
******************************************
******************************************
Initialisation of communication service
******************************************
SET H200 = 5
SET H201 = 0
SET H202 = 0
SET H203 = 3
SET H204 = 8502
SET H205 = 210
******************************************
List factors for "Master Getriebe i".
******************************************
SET H0 = 100
SET H1 = 200
MOVIDRIVE® IPOSplus® 51
6 IPOSplus® with Options
******************************************
Read input terminal Di04
******************************************
JMP HI I0000000000010000, M1
JMP LO I0000000000010000, M2
******************************************
Write new value to "Master Gear Unit i."
******************************************
M1 :SET H210 = H0
JMP UNCONDITIONED , M3
M2 :SET H210 = H1
M3 :SET H203 = 3
SET H204 = 8502
M4 :MOVLNK H200
NOP
Repeat until Return Code ok.
JMP H206 != 0 , M4
******************************************
End of program.
******************************************
END
52 MOVIDRIVE®IPOSplus®
Command Set 7
7 Command Set
General information
• The result of the calculation operation is always assigned to the left-hand argument (always a
variable). The second argument (variable or constant) always remains unchanged.
• The bit positions in the variables and constants are numbered 0 – 31. The least significant bit is
number 0.
Bit commands
Contains commands for changing individual bits within one variable. These are:
– Set/clear/move bits
BCLR / BIT CLEAR (H.Bit = 0).......................................... pg. 56 BMOVN / BIT MOVE NEGATE (H.Bit = NOT (H.Bit)) ........ pg. 56
BMOV / BIT MOVE (H.Bit = H.Bit) .................................... pg. 56 BSET / BIT SET (H.Bit = 1) .............................................. pg. 56
Communication commands
Contains commands for data exchange from/to other units via interfaces.
MOVLNK / MOVILINK SCOMON / SYSTEM BUS COMMUNICATION ON
(Process and/or parameter data exchange) ..................... pg. 57 (Start of cyclical transmission) ....................................... pg. 62
SCOM / SYSTEM BUS COMMUNICATION
(Definition of a cyclical variable)...................................... pg. 62
Positioning commands
This command group lists the following positioning commands:
– Reference travel
– Position absolute/relative/with touch probe
GO0 / GO POSITION 0 (Executes a reference travel) ....... pg. 66 GOR / GO RELATIVE (Go relative, constant) ................... pg. 67
GOA / GO ABSOLUTE (Go absolute, constant) ................ pg. 67 GOR / GO RELATIVE (Go relative, variable)..................... pg. 67
GOA / GO ABSOLUTE (Go absolute, variable).................. pg. 67 GOR / GO RELATIVE
GOA / GO ABSOLUTE (Go relative, variable, indirect) ........................................ pg. 67
(Go absolute, variable, indirect)....................................... pg. 67
MOVIDRIVE® IPOSplus® 53
7 Command Set
Program commands
Contains commands for program control. These are:
– Loop commands
– Subroutine calls
– Control of task 2
– Program branching commands
– Wait commands
CALL (Calls a subroutine) ............................................... pg. 69 LOOPE / LOOP END (Program loop, end) ........................pg. 71
JMP / JUMP (Jump, input terminals).............................. pg. 69 NOP / NO OPERATION (No operation) .............................pg. 71
JMP / JUMP (Jump, H <=> 0) ......................................... pg. 70 REM / REMARK (Remark) ...............................................pg. 71
JMP / JUMP (Jump, H <=> H)......................................... pg. 70 RET / RETURN (End of a subroutine)...............................pg. 71
JMP / JUMP (Jump, H <=> K)......................................... pg. 70 TASK2 (Sets the start address of task 2) .........................pg. 71
JMP / JUMP (System conditioned jump) ........................ pg. 70 WAIT (Waits for a specified period) .................................pg. 71
LOOPB / LOOP BEGIN (Program loop, begin) ................. pg. 71
Set commands
Contains commands for
– Setting variables
– Fault response
– Loading system values into variables
– Writing system values into system variables
– Initializing the interrupt routines
COPY (Block-by-block copying of variables) ................... pg. 72 SETI / SET INDIRECT ([H] = H)........................................pg. 75
GETSYS / GET SYSTEM VALUE (H = System value) ....... pg. 72 SETI / SET INDIRECT (H = [H])........................................pg. 75
SET (H = H) ..................................................................... pg. 74 SETINT / SET INTERRUPT (Sets start address of
SET (H = K) ..................................................................... pg. 74 interrupt routine) .............................................................pg. 75
SETFR / SET FAULT REACTION (Set fault response)....... pg. 74 SETSYS / SET SYSTEM VALUE (System value = H) ........pg. 76
Comparison commands
Contains commands for comparing variables and constants.
ANDL / LOGICAL AND (H = H && H)............................... pg. 82 CPLE / COMPARE LESS OR EQUAL (H = H <= K) ............pg. 82
CPEQ / COMPARE EQUAL (H = H == H) .......................... pg. 82 CPLT / COMPARE LESS THAN (H = H < H)......................pg. 82
CPEQ / COMPARE EQUAL (H = H == K) .......................... pg. 82 CPLT / COMPARE LESS THAN (H = H < K)......................pg. 82
CPGE / COMPARE GREATER OR EQUAL (H = H >= H).... pg. 82 CPNE / COMPARE NOT EQUAL (H = H != H) ...................pg. 82
CPGE / COMPARE GREATER OR EQUAL (H = H >= K).... pg. 82 CPNE / COMPARE NOT EQUAL (H = H != K)....................pg. 82
CPGT / COMPARE GREATER THAN (H = H > H) ............. pg. 82 NOTL / LOGICAL NOT (H = NOT(H)) ................................pg. 82
CPGT / COMPARE GREATER THAN (H = H > K).............. pg. 82 ORL / LOGICAL OR (H = H || H) .......................................pg. 82
CPLE / COMPARE LESS EQUAL (H = H <= H) ................. pg. 82
54 MOVIDRIVE®IPOSplus®
Command Set 7
MOVIDRIVE® IPOSplus® 55
7 Command Set
56 MOVIDRIVE®IPOSplus®
Command Set 7
The following settings are required on the sender and receiver in sender/receiver mode:
Sender Receiver
• IPOSplus® program with MOVLNK Hxx command • Parameter setting with PD (+)
• Setting the communication parameters using vari- and PARAM (#):
ables • + / # Serial communication
• SBus baud rate (P816) (P810 – P819)
• + Setpoint source (P100)
• + Control signal source (P101)
• + Process data description
(P870 – P876)
1) A more detailed description is contained in the "Fieldbus Unit Profile" manual (setting via P870).
2) All parameters can be addressed via an index number (see "Fieldbus Unit Profile" manual).
3) Several of the connected units can start communicating
Sender setting
IPOSplus® program with MOVLNK Hxx command
A one-time data transfer takes place when the MOVLNK command is called up once. The MOVLNK com-
mand must be called up cyclically for a cyclical data transfer.
Setting the communication parameters using variables
All information required for communication must be entered into a command structure (7 successive
variables) in the variable range. The start of this command structure is defined by the argument (Hxx) of
the MOVLNK command.
Depending on the type of communication (parameter and/or process data exchange), the result is a data
structure the start of which is defined using variable H + 5.
Command structure:
H+0 Bus type (interface)
0= Reserved
1= Interface TERMINAL (RS-485#1)
USS11A (TERMINAL) – Do not use!
2= Interface S1 (RS-485#2), e.g. activation of MOVIMOT®
3= Reserved
4= Reserved
5= SBus, e.g. axis-to-axis communication
MOVIDRIVE® IPOSplus® 57
7 Command Set
58 MOVIDRIVE®IPOSplus®
Command Set 7
Safety note:
When using the MOVLNK command, avoid cyclical writing to the variables which can be stored in the
non-volatile memory (H0 – 127) and to all parameters with communication service = 2. This is because
the number of storage operations with the storage medium used (EEPROM) is restricted to 105 storage
operations.
* increase input value for target addresses by 100 when using group address
MOVIDRIVE® IPOSplus® 59
7 Command Set
60 MOVIDRIVE®IPOSplus®
Command Set 7
The MOVIMOT® must be commissioned in accordance with the MOVIMOT® operating instructions.
Communication with MOVIMOT® is only possible via RS-485. Control is only possible via the process
data channel with 2PD or 3PD (min. control word and speed).
In the following example, the MOVIMOT® is controlled using 3 items of process output data (control
word 1, speed and ramp). The values for these should be entered in variable H012 to H014.
01834AEN
PO1
PO2
PO3
PI1
PI2
PI3
MOVIDRIVE® IPOSplus® 61
7 Command Set
The following settings are required on the sender and receiver in sender/receiver mode:
Sender Receiver
• IPOSplus® program with command: • IPOSplus® program with command:
– SCOM TRANSMIT CYCLIC H – SCOM RECEIVE H
SCOMON and/or SCOMON
– SCOM TRANSMIT ACYCLIC H
• Setting the communication parameters
• Setting the communication parameters using variables
using variables
• SBus baud rate (P816), identical on sender and receiver
TRANSMIT CYCLIC
The range of variables used for specifying a data object (communication and user data) is deter-
mined using variable H of the SCOM TRANSMIT CYCLIC H command.
Cyclical data transfer must be started with the SCOMON command. Cyclical data exchange runs in
the background once it has been started, irrespective of the current command processing in the
IPOSplus® program. F5 stops the data transfer. Changes to the data object are not adopted until
after the IPOSplus® program has been restarted (F5 A/P-STOP F9 P-Start or power supply (24 V
backup mode) off and on again).
A maximum of one data object can be set up with each SCOM TRANSMIT... command. It is neces-
sary to send additional SCOM TRANSMIT commands if additional data objects are to be set up.
Only one SCOMON command is required following several SCOM TRANSMIT commands. No addi-
tional SCOM TRANSMIT commands will be accepted after the first SCOMON command.
The number of objects which can be set up depends on the cycle time (max. 5 objects at 1 – 9 ms,
max. 10 objects at 10 – 65530 ms, i.e. 15 objects in total).
The structure of the object is as follows:
H+0 Object number: The object number is used for addressing the data object. The object num-
ber can only be assigned once in a bus system. The object numbers of the sender (TRANS-
MIT) and receiver (RECEIVE) must be the same for the data exchange. Object numbers >
1024 – 2048 must be set in order to avoid a data clash whenever MOVLNK commands are
also used via the SBus.
H+1 Cycle time [ms], specifies the time interval after which the data are sent again (the transfer
time for a data object is 0.25 ms)
1, 2 – 9 ms
10, 20 – 65530 ms
62 MOVIDRIVE®IPOSplus®
Command Set 7
SBus DATA
H+2 Offset [ms], used for distributing the bus load when several SCOM TRANSMIT... com-
mands are used.
t1 t2 t1 t2
b jec bjec b jec bjec
o ro o o
fer fe fer fer
r a ns rans r a ns rans
t t t t
01806AEN
0, 1, 2 – 65534 ms for cycle times 10 ms
0, 10, 20 – 65530 ms for cycle times 10 ms
H+3 Number of data bytes and data format
Bit Value Function
0–3 0–8 Number of data bytes
4–7 0 Reserved
8 0–1 0 = MOTOROLA format
1 = INTEL format
The format of the sender and receiver
must be the same!
9 – 31 0 Reserved
H+4 Number of the variable H' where the data to be transmitted start
H+5 Result (return code) of the SCOM command
0 Bus utilization in % (percentage = unused bus capacity)
-1 Incorrect cycle time
-2 Too many objects set up
-3 Bus overload
TRANSMIT ACYCLIC
The range of variables used for specifying a data object (communication and user data) is deter-
mined using variable H of the SCOM TRANSMIT ACYCLIC H command. The data are sent immedi-
ately (without the need for a SCOMON command) after the SCOM TRANSMIT ACYCLIC H
command is called. The data are sent only once.
It is possible to send several variables with only one SCOM TRANSMIT ACYCLIC H command by
setting the variable pointer (H+2) accordingly in the IPOS plus® program every time before the com-
mand is called.
MOVIDRIVE® IPOSplus® 63
7 Command Set
RECEIVE
The variable in the argument of the SCOM RECEIVE command contains the variable number that
marks the beginning of the reception data storage. No additional SCOM RECEIVE commands will
be accepted after the first SCOMON command.
The reading in of data must be started with the SCOMON command. The reading in of data runs in
the background once it has been started, irrespective of the current command processing in the
IPOSplus® program. Changes to the data object are not adopted until after the IPOSplus® program
has been restarted (F5 A/P-STOP F9 P-Start or power supply (24 V backup mode) off and on
again).
Max. 32 data objects can be set up for reading in data.
The structure of the object is as follows:
H+0 Object number: The object number is used for addressing the data object. The object num-
bers of the sender (TRANSMIT) and receiver (RECEIVE) must be the same for the data
exchange. Object numbers > 1024 – 2048 must be set in order to avoid a data clash when-
ever MOVLNK commands are also used via the SBus.
H+1 Number of data bytes and data format
Bit Value Function
0–3 0–8 Number of data bytes
4–7 0 Reserved
8 0–1 0 = MOTOROLA format
1 = INTEL format
The format of the sender and receiver
must be the same!
9 – 31 0 Reserved
H+2 Number of the variable H' from which point the received data are stored
Differences in the user data format between the MOTOROLA and INTEL format:
MOTOROLA format INTEL format
CAN data byte 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
Variable H’+1 H’ H’ H’+1
Variable byte 3 2 1 0 3 2 1 0 0 1 2 3 0 1 2 3
64 MOVIDRIVE®IPOSplus®
Command Set 7
Safety note:
When using the SCOM command, remember that even the variables which can be stored in the
permanent memory (H0 - H127) as well as all the parameters are only written in the non-perma-
nent memory.
Example Transmission of two variable values (H008 and H009) with the SCOM command from the sender
to the receiver to variables H005 and H006.
Sender setting
01835BEN
Receiver setting
01836BEN
MOVIDRIVE® IPOSplus® 65
7 Command Set
01837ADE
66 MOVIDRIVE®IPOSplus®
Command Set 7
Infinite positioning
The absolute travel range of IPOSplus® is limited to values in the range -231 – 0 –
231- 1. With the "relative" travel command, it is possible to add a max. travel distance
of 231 to any target position (see figure below, number circle).
An example of infinite positioning is shown in the JOG mode sample program (
Sec. 9.3).
The GOR command always relates to the target position H492. For example, if the
GOR 1000 incr. command is sent 100 times in a program, the target position is set
internally to 100 x 1000 increments. The position setpoint may "migrate" away from
the actual position of the motor if the command is called up cyclically. The IPOS con-
trol may then fail from a critical value 231/2 onwards.
2x
0 number circle 2 31 -1
plus®
-1 IPOS -2 31
-2 x
01812AEN
MOVIDRIVE® IPOSplus® 67
7 Command Set
3000 rpm
0 100 s
rev..
01813AEN
Program
sample
Example 2) The program listed below causes movement to take place between the positions 0
and 409600 increments. A waiting period of 1 second elapses when a position is
reached. The speed is increased from 100 rpm to 3000 rpm when the drive moves
beyond position 40960. The entire return travel takes place at 3000 rpm.
n (t )
3000 rpm
100 rpm
0 40960 409600 s
incr .
01814AEN
Program
sample to
demonstrate
the function.
Not to be used
for applicati-
ons without
changes/
modification.
68 MOVIDRIVE®IPOSplus®
Command Set 7
Safety note:
Subroutines must never be exited with a jump into a main program or into another
subroutine. Conditional exiting of the subroutine must be performed by jumping to
the end of the subroutine.
Example The main program positions the drive 10 revs. CCW, after which there is a subrou-
tine call (CALL M1). Here, 2 outputs of the basic unit are set for 1 ms (the output
parameters must be set to "IPOS-OUTPUT"). The jump back to the main program
(RET) takes place next and the GOR WAIT #10 positioning command is processed.
01840AEN
MOVIDRIVE® IPOSplus® 69
7 Command Set
70 MOVIDRIVE®IPOSplus®
Command Set 7
Safety note:
Program loops must never be exited with a jump command. Jump commands are
allowed within a program loop.
Example In the example below, variable H0 is incremented from 0 to the value 5 in 5 run-
throughs of the loop. Program processing starts again with the SET H0 = 0 com-
mand after the loop has been run through 5 times.
01844AEN
REM The REM command adds a remark line to the program. Remark lines can only be
saved onto a diskette or on the PC. All remark lines are lost after DOWNLOAD of the
program followed by an UPLOAD.
RET The RET command (RETURN) terminates a subroutine (see the CALL command) and
initiates a jump back to the program from which the subroutine was called. In the
main program, the RET command initiates a jump to the start of the main program.
TASK2 This command is used for defining the start address of TASK2 and for starting or
TASK2 START stopping TASK2 depending on the argument 1 (START/STOP). TASK2 is deactivated
TASK2 STOP when the power is switched on.
01845AEN
WAIT The wait command prevents further processing of the program until the specified
command has elapsed.
Adjustment range: 0 – 32767 ms
MOVIDRIVE® IPOSplus® 71
7 Command Set
72 MOVIDRIVE®IPOSplus®
Command Set 7
01846AEN
MOVIDRIVE® IPOSplus® 73
7 Command Set
Set commands variable SET / Fault resp. SETFR / Indir. address. SETI / Interrupt SETINT / System values SETSYS
SET The SET command loads argument 1 (variable) with the contents of argument 2
SET (H=H) (variable H or constant K). The result is written to argument 1, argument 2 remains
SET (H=K) unchanged.
SETFR The SETFR command defines the response to a unit fault. The fault number in ques-
SETFR tion is entered in argument 1 of the command (List of faults, Sec. 10.2 or MX_SHELL
(argument 1) = (argument 2) help text). The response to a unit fault is selected using argument 2. The selected
fault response is only performed if the SETFR command was processed first. The
SETFR most recently selected fault response (call of the SETFR command or changes in
Fault # = Fault response P83_ "Fault response") is the one in effect.
fault number
01829AEN
NO RESPONSE No response (no fault is displayed either)
DISPLAY No response, the fault is only displayed (the terminal level of
FAULT an output programmed to "/FAULT" is set from 1 0).
SWITCH OFF, The output stage is inhibited, the brake is activated
FAULT Following a reset: Response as for power off/on, the IPOSplus®
program, reference point, outputs and variables are reset (pro-
gram starts from line 1).
E-STOP, The drive is stopped with the emergency stop ramp
FAULT
Following a reset: Response SWITCH OFF, FAULT.
RAPID STOP, The drive is stopped with the rapid stop ramp
FAULT
Following a reset: Response SWITCH OFF, FAULT.
SWITCH OFF Output stage inhibit
WARNING IPOSplus®program keeps running, reference point, outputs and
variables are maintained.*
E-STOP, The drive is stopped with the emergency stop ramp
WARNING
IPOSplus® program keeps running, SWITCH OFF, WARN-
ING.*
RAPID STOP, The drive is stopped with the rapid stop ramp
WARING
IPOSplus® program keeps running, SWITCH OFF, WARN-
ING.*
* Even after acknowledgment of the fault.
74 MOVIDRIVE®IPOSplus®
Command Set 7
Set commands variable SET / Fault resp. SETFR / Indir. address. SETI / Interrupt SETINT / System values SETSYS
SETI All variables can be addressed indirectly with the SETI [H]=H or SETI H=[H] com-
SET INDIRECT ([H]=H) mand. This makes it possible to write to variables automatically, for example by
SET INDIRECT (H=[H]) incrementing the variable in brackets in the program.
With SETI [H]=H, the value of the variable in brackets specifies the address of the
variable which is written to with argument 2.
With SETI H=[H], the value of the variable in brackets specifies the address of the
variable which is written to with argument 1.
H01=10
IPOSplus Program H02=666
.. H10=xxx
...
SET[H01]=H02
...
H01=10
H02=666
H10=666
01847AEN
SETINT If the interrupt command (SETINT) is called once, the following events result in an
SETINT (argument 1) Mxx interrupt routine being performed. The jump flag for the interrupt routine is specified
in the SETINT command. The interrupt routine must be completed with a RET com-
mand.
A jump to the interrupt routine takes place immediately, no matter which line in the
main program is being processed at the time. If the interrupt routine ends with the
RET command, processing of the program continues from the point where the inter-
ruption occurred (processing of an interrupted "wait command" is continued).
The SETINT command is only in effect in task 1 and processing of task 1 is inter-
rupted whilst the interrupt is being processed.
It is only possible to process one interrupt at any one time, although an interrupt
with a higher priority can interrupt the processing of another interrupt. ERROR has
the highest priority in this respect, followed by TOUCH PROBE and then TIMER 0.
An interrupt only has to be initialized once using SETINT.
MOVIDRIVE® IPOSplus® 75
7 Command Set
Set commands variable SET / Fault resp. SETFR / Indir. address. SETI / Interrupt SETINT / System values SETSYS
TIMER 0 Triggers an interrupt when the time set in Timer 0 has elapsed.
An "autoreload" with the system variable H485 takes place after
Timer 0 has elapsed. This reload value determines the cyclical
time period of the interrupt routine.
TOUCH PROBE Triggers an interrupt when there is a change of signal level on
the touch probe terminal DI02, if the touch probe was activated
for terminal DI02 (parameter P601 = IPOS INPUT) and the
TOUCHP command was transmitted.
01849AEN
SETSYS The system values listed below can have variables written to them using the SETSYS
command. The first argument selects the system value to be written whilst the sec-
ond argument contains the number of the (first) source variable.
The system values are reset to their original values when the system is switched off
(mains and 24 V power).
Safety note:
By writing to system values, it is possible to alter unit settings which have been
adapted to the application during startup. In particular, changes to positioning ramps
and the maximum current must be adapted to the features of the system in order to
preclude the risk of damage and hazards (e.g. due to mechanical overload).
Argument 2 =
number of
Argument 1 =
the (first)
selectable
source
system value
variable
01848AEN
76 MOVIDRIVE®IPOSplus®
Command Set 7
Set commands variable SET / Fault resp. SETFR / Indir. address. SETI / Interrupt SETINT / System values SETSYS
OP. MODE Setting the operating mode. The operating mode can only be
altered within the same control procedure (CFC or SERVO)
(even whilst movement is in progress if there is no controller
inhibit).
11 CFC (speed control)
12 CFC & torque control
13 CFC & IPOS (positioning)
14 CFC & synchronous operation (DRS11A)
16 SERVO (speed control)
17 SERVO & torque control
18 SERVO & IPOS (positioning)
19 SERVO & synchronous operation (DRS11A)
IMAX Setting the maximum current (only parameter set 1) as a per-
centage of the unit's rated current
(Adjustment range: 0.1 – 150 %, in 0.1 % steps);
adjustment is also possible during movement.
POS. RAMP Positioning ramps (up/down), adjustment is also possible dur-
ing movement. Setting in ms with reference value 3000 rpm.
H Positioning ramp 1 (up)
H+1 Positioning ramp 2 (down)
POS. SPEED Positioning speed (CW/CCW), adjustment is also possible dur-
ing movement. Setting in 0.1 rpm.
H Positioning speed CW
H+1 Positioning speed CCW
OVERRIDE ON Switching the override on/off, adjustment is also possible dur-
ing movement.
H=0 Off
H0 On
BRAKE FUNC. Switching the brake function on/off (Pxxx)
ON H=0 Off
H=1 On
RAMP TYPE It is not a good idea to adjust this during movement (torque
shocks!). ( Sec. 5.3, P916)
H=0 Linear
H=1 Sine
H=2 Squared
RESET ERROR Resetting a unit fault
ACT. POSITION Setting the motor encoder actual position ACTPOS.MOT
(H511)
Argument 2: Number of the (first) source variable
MOVIDRIVE® IPOSplus® 77
7 Command Set
01850AXX
Argument
RAPID STOP Braking with the rapid stop ramp followed by speed con-
trol. The last target position (H492) to have been transmit-
ted is retained. Inhibit via control word (the ASTOP (IPOS
ENABLE) command is required with the subsequent travel
command). The brake is applied when the brake function
is activated.
HOLD Braking with the ramp of the basic unit (P131/P133) fol-
CONTROL lowed by position control. The last target position (H412)
to have been transmitted is retained. Inhibit via control
word (the ASTOP (IPOS ENABLE) command is required
with the subsequent travel command). The brake is not
applied when the brake function is activated.
TARGET Positioning stop with the positioning ramp (P911/P912)
POSITION and calculated “STOP” target position (only possible in
positioning mode) followed by position control. The last
target position (H492) to have been transmitted is over-
written by the stop position. No inhibit via control word
(no ASTOP (IPOS ENABLE) command is required with the
subsequent travel command). The brake is not applied
when the brake function is activated.
IPOS ENABLE The inhibit is revoked using the IPOS control word.
MEM The MEM command makes it possible to save (load) IPOSplus® programs and/or
variables in (from) the non-volatile memory on (to) the unit. The action is specified
by the argument.
Safety note:
When using the MOVLNK command, avoid cyclical writing to the variables which can
be stored in the non-volatile memory (H0 – 127) and to all parameters with commu-
nication service = 2. This is because the number of storage operations with the stor-
age medium used (EEPROM) is restricted to 105 storage operations.
01851AXX
78 MOVIDRIVE®IPOSplus®
Command Set 7
TOUCHP The TOUCHP command enables or inhibits a touch probe input. The touch probe
function is always assigned to input terminals DI02 and/or DI03. Inputs used for the
touch probe function should be set to "NO FUNCTION" in order to prevent them being
allocated twice.
If there is a change of signal level at a touch probe input after the TOUCHP command
has been carried out, the current actual positions (H511, H510, H509) are stored in
the variables intended for this purpose (H502 – H507). It takes 200 s to store the
touch probe positions, irrespective of ongoing program processing. The terminal
level must be altered for at least 200 s in order to be reliably detected. With this
argument, you can select the flange change leading to touch probe
01852CXX
MOVIDRIVE® IPOSplus® 79
7 Command Set
Example 1) In the program, the drive travels between the absolute positions of 0 revs. and 100
revs. If there is a change of signal level at touch probe input DI03 whilst the drive is
moving to the target position of 100 revs., a further 10 revs. (40960 incr.) is traveled
from precisely this touch probe position. The touch probe function is deactivated
with the DISABLE2 command for the return to the 0 revs. position.
01853AEN
01854AEN
80 MOVIDRIVE®IPOSplus®
Command Set 7
WDOFF Time monitoring is activated with WDON. TASK1 and TASK2 are halted and the drive
WDON is stopped with fault 41 if the time specified in the argument elapses before the mon-
itoring function is switched off using the WDOFF command. (When the drive is
stopped, the output stage is inhibited and the brake is applied. The drive coasts to a
halt if there is no brake.)
In the sample program, the drive moves for as long as the level at DI05 = 1 ("high").
The "watchdog" function ensures that the drive does not travel for more than 10 sec.
The drive is stopped if it travels for more than 10 sec.
01856AEN
MOVIDRIVE® IPOSplus® 81
7 Command Set
82 MOVIDRIVE®IPOSplus®
Survey of System Variables 8
Variables marked "reserved" are used for internal functions and must not be utilized.
Editing variables: Sec. 4.2.2, 7.1 and 7.2
No. Name Description
473 STAT.WORD The operating status of the inverter can be queried using the status word.
Bit Function with level "1" Bit Function with level "1"
0 No function 13 Imax signal
1 /Fault 14 /Motor utilization 1
2 Ready 15 /Motor utilization 2
3 Output stage on 16 /DRS prewarning
4 Rotating field on 17 /DRS lag fault
5 Brake released 18 DRS slave in position
6 Brake applied 19 IPOS in position
7 Motor stationary 20 IPOS referenced
8 Parameter set 21 Reserved
9 Speed reference 22 /IPOS fault
10 Speed window 23..31 Reserved
11 Set/act. comparison
12 Current reference
474 SCOPE 474
Variables for display using MX_SCOPE
475 SCOPE 475
476 DRS CTRL. Signal level of the binary outputs of the synchronous operation board type DRS11A READ and
SET.
Bit Terminal level
0 X40.9 OUTP0
1 X40.10 OUTP1
3..14 Reserved
15 Set hardware fault DRS (fault 48)
16..31 Reserved
477 DRS STATUS Signal level of the binary inputs and status signals of the synchronous operation board type
DRS11A READ.
Bit Terminal level / Status signals
0 X40.5 INP4 Free input 1
1 X40.6 INP5 Free input 2
2 /DRS prewarning
3 /DRS lag error
4 DRS slave in position
5 Master stand still
6..31 Reserved
478 Reserved
479 ANA.OUT IP Analog outputs of the terminal expansion board type DIO11A SET only.
Analog inputs/outputs, page 18
Value of variable Physical output Output terminal assignment
-10000..0..10000 AOV1/AOC1 (X21:1/X21:2) P640 analog output AO1 = IPOS-OUTPUT
-10000..0..10000 AOV2/AOC2 (X21:4/X21:5) P643 analog output AO2 = IPOS-OUTPUT
480 OPT.OUT IP Binary outputs of the terminal expansion board type DIO11A/DIP11A SET only.
Digital outputs, page 16
Bit Physical output Output terminal assignment
0 DO10 (X23:1) P630 binary output DO10 = IPOS-OUTPUT
1 DO11 (X23:2) P631 binary output DO11 = IPOS-OUTPUT
2 DO12 (X23:3) P632 binary output DO12 = IPOS-OUTPUT
3 DO13 (X23:4) P633 binary output DO13 = IPOS-OUTPUT
4 DO14 (X23:5) P634 binary output DO14 = IPOS-OUTPUT
5 DO15 (X23:6) P635 binary output DO15 = IPOS-OUTPUT
6 DO16 (X23:7) P636 binary output DO16 = IPOS-OUTPUT
7 DO17 (X23:8) P637 binary output DO17 = IPOS-OUTPUT
8..31 Reserved
MOVIDRIVE® IPOSplus® 83
8 Survey of System Variables
84 MOVIDRIVE®IPOSplus®
Survey of System Variables 8
The user timer 0 counts down to 0. An interrupt branch is performed when the timer value
reaches 0 if the SET INTERRUPT (SETINT) command is being used ( SETINT command
description in Sec. 7.6). The cycle time can be specified with the T0 RELOAD variable (H485) if a
user timer is to be used cyclically with the SET INTERRUPT (SETINT) command.
Value range: 0 – 231 - 1 ms.
490 WD.TIMER Time for the user watchdog READ and SET.
The watchdog timer counts down to 0. The WATCHDOG ON (WDON) command activates the
timer and defines the cycle time.
Value range: 0 – 231 - 1 ms.
491 SETP.POS. Current setpoint position READ.
The setpoint position always has the following unit, irrespective of the encoder pulse count per
revolution:
1
------------
4096
Motor revolutions
------------------------------------------
Inc.
The current setpoint position represents the absolute position which is currently valid for posi-
tion control in the travel job which is in progress. The changes in the setpoint position over time
result from the calculated travel profile with regard for the positioning ramp, travel speed, ramp
shape, etc. The value of H491 is the same as H492 after the travel job has been completed and the
drive is stopped.
Value range: -231 – 0 – 231...1 inc.
492 TARGET POS Current target position READ and SET.
The target position always has the following unit, irrespective of the encoder pulse count per rev-
olution:
1
------------
4096
Motor revolutions
------------------------------------------
Inc.
This variable represents the current target position of the travel job which is currently in progress.
The position is represented in H492 in absolute terms.
Example:
1. Current drive position: 50000 inc.
2. GOR NOWAIT #–8000 inc
3. Current target position: 42000 inc.
Value range: -231 – 0 – 231...1 inc.
493 POS.WINDOW Position window READ and SET.
The position window defines a distance range around the target position (H492) of a travel or
stop command (GOx or ASTOP TARGET POSITION). The "IPOS IN POSITION" signal is generated
as soon as the drive moves into the position window ( P922 Position window, page 31).
Value range: 0 – 215...1 inc.
494 LAG WINDOW Lag window READ and SET.
The lag error window defines the maximum permitted difference between the setpoint and actual
positions. Lag monitoring is deactivated when the value is set to 0 ( P923 Lag error window,
page 32).
Value range: 0 – 231...1 inc.
495 LAG DISTAN Lag distance READ.
Value of the current lag distance in positioning (difference between setpoint and actual position).
Value range: 0 – 231...1 inc.
MOVIDRIVE® IPOSplus® 85
8 Survey of System Variables
of the software limit switches is only active if the drive is referenced. Monitoring is deactivated if
both the CCW and the CW limit switches are set to 0 ( P920 SW limit switch CW, page 31).
Value range: -231 – 0 – 231...1.
497 SLS LEFT Software limit switch CCW READ and SET.
Limits the travel range in the CCW direction. The value is stated in user travel units. The monitor-
ing of the software limit switches is only active if the drive is referenced. Monitoring is deactivated
if both the CCW and the CW limit switches are set to 0 ( P921 SW limit switch CCW, page 31).
Value range: -231 – 0 – 231...1.
498 REF.OFFSET Reference offset READ and SET.
Reference offset makes it possible to move the machine zero without physically altering the posi-
tion of the reference position. Utilization of the reference offset is dependent on the reference
travel type (P903) ( P900 Reference offset, page 25).
The reference offset always has the following unit, irrespective of the encoder pulse count per
revolution:
1
------------
4096
Motor revolutions
------------------------------------------
Inc.
The actual position 3 is determined via the signals which are active on connector X62 (DIP11A
option).
510 ACTPOS EXT Current actual position motor encoder READ.
The actual position 2 is determined via the track signals which are active on connector X14.
The determination of the position (actual position 2) is only carried out if connector X14 is used
as an encoder input.
511 ACTPOS MOT Current actual position motor encoder READ.
The actual position 1 always has the following unit, irrespective of the encoder pulse count per
revolution:
1
------------
4096
Motor revolutions
------------------------------------------
Inc.
86 MOVIDRIVE®IPOSplus®
Sample Programs 9
9 Sample Programs
9.1 General information
Introduction
The sample programs are intended to display the basic procedure involved in writing an IPOSplus®
program. The first sample program (hoist) deals with fundamental aspects such as wiring, param-
eterization and limit switch settings. The other two sample programs (jog mode, table positioning)
represent frequently used functions. They can be employed as building blocks for other programs.
These two sample programs are modular (no overlapping input/output assignments, variables or
jump flags) which means they can be combined by copying them together ( Sec. 3.1).
Pre-requisites / procedure
• Motor with encoder feedback, MOVIDRIVE® MDV60A / MDS60A with DIO11A input/output
option or fieldbus interface option.
• Wire up the signals needed for activating the unit functions and evaluating the signals.
• Test the function of the drive in the "Manual" operating mode of MX_SHELL prior to creating a
program. When doing this, check whether the process values are within the permitted limits
(speed, current, etc.).
• Although programs may seem "theoretically" flawless, it is often the case that the first practical
test reveals weak points or even errors. Consequently, the recommended course of action is to
test the function of the procedure with low dynamic forces, at a slow speed and – if possible –
without a connected load. Safety precautions may have to be taken depending on the system
and the application (e.g. emergency shut-off, connecting hardware limits switches) in order to
eliminate any risk of damaging the machine or injuring anyone.
• All parameters of the drive inverter and the IPOSplus® program as well as variables H000 – H127
are automatically saved in the non-volatile memory of the drive inverter after being transferred
to it. Save the program to the PC hard disk in order to avoid losing any remark lines which you
may have inserted (these are not saved in the inverter!).
Program structure
• 1st part: Remarks
It is important to document individual program sections in order to make the program more eas-
ily comprehensible. You should insert a program header as a remark at the start of the program.
It should include the following points:
- Customer's project name
- File name
- Functional description
- Assignment of binary inputs and outputs
- Declaration of the variables used
- Date and author of the program
MOVIDRIVE® IPOSplus® 87
9 Sample Programs
• "Enable" input
A "0" signal at the "Enable" input brings the drive to a halt subject to speed control by means of
the rapid stop ramp (P136/P146).
• "/Lim. switch CW" input (clockwise limit switch) and "/Lim. switch CCW" input (counterclockwise
limit switch)
To ensure the safety of the system, the permitted travel range should be safeguarded with hard-
ware limit switches as well as software limit switches ( Sec. 5.4). These should be configured
as NC contacts and wired up to the "/Lim. switch CW" and "Lim. switch CCW" binary inputs. The
drive is stopped using the emergency stop ramp (P137/P147) if it passes the hardware limit
switch. The output stage is then inhibited. Movement to the "/Lim. switch CW" and "Lim. switch
CCW" only takes place in regular operation when reference travel is performed. A "braking dis-
tance" is required for bringing the drive to a controlled halt when one of the limit switches is
reached. The drive must not move beyond the trip cam of the limit switch as it covers this dis-
tance. The trip cam of the limit switch must therefore be set to an appropriate length.
88 MOVIDRIVE®IPOSplus®
Sample Programs 9
• IPOS input
The structure of your program defines the significance of various input and output terminals for
your application. The terminals used in the program must be programmed to "IPOS input" or
"IPOS output".
• "Reset" input
The "Reset" input makes it possible to use the control for acknowledging a unit fault that has
been displayed. The drive is automatically moved away from a hardware limit switch if it comes
into contact with one ( Fault Messages, Sec. 10).
• Settings:
The detailed configuration of the inputs/outputs (see below) and the variables used in the pro-
gram is documented in the remark section of the program source code.
MOVIDRIVE® IPOSplus® 89
9 Sample Programs
Schematic structure:
d = 50 mm
i=5 Motor
Carriage
2000
Reference cam
500
Machine zero
100
CCW software limit switch
Stopping distance 100 CCW hardware limit switch
01870AEN
Fig. 31: Schematic structure of the hoist with IPOSplus®
90 MOVIDRIVE®IPOSplus®
Sample Programs 9
Terminal wiring:
01367CEN
Fig. 32: IPOS wiring diagram
MOVIDRIVE® IPOSplus® 91
9 Sample Programs
30.Limits
302 Maximum speed 1 [rpm] 1500
350 Change direction of rotation 1 OFF
9..IPOS parameters
900 Reference offset [mm] 500
901 Reference speed 1 [rpm] 200
902 Reference speed 2 [rpm] 50
903 Reference travel type 1
910 Gain X controller 2.8
911 Positioning ramp 1 [s] 1
912 Positioning ramp 2 [s] 1
913 Travel speed CW [rpm] 1350
914 Travel speed CCW [rpm] 1350
915 Speed feedforward [%] 100
916 Ramp type SINE
920 SW limit switch CW [mm] 2100
921 SW limit switch CCW [mm] -100
922 Position window [Inc] 50
923 Lag error window [Inc] 5000
930 Override OFF
92 MOVIDRIVE®IPOSplus®
Sample Programs 9
MOVIDRIVE® IPOSplus® 93
9 Sample Programs
File: Hubwerk
Author: SEW/AWT
Date: 01.06.98
Modified: 14.08.98
94 MOVIDRIVE®IPOSplus®
Sample Programs 9
MOVIDRIVE® IPOSplus® 95
9 Sample Programs
• Settings:
The detailed configuration of the inputs/outputs and the variables used in the program is docu-
mented in the remark section of the program source code.
96 MOVIDRIVE®IPOSplus®
Sample Programs 9
Variables used:--------------------
H310 = Velocity jog mode (1/10 rpm)
H311 = "CCW"
H312 = Acceleration ramp (ms)
H313 = Not active
= Deceleration ramp = P911/P912
H316 - H319 = Auxiliary jog variables
******************************************
------------------------------------------
Program start
==========================================
Initialization
------------------------------------------
SET H310 = 5000 Set speed and acceleration values for jog mode (see
SET H311 = 5000 remarks)
SET H312 = 2000
SET H313 = 2000
------------------------------------------
MOVIDRIVE® IPOSplus® 97
9 Sample Programs
98 MOVIDRIVE®IPOSplus®
Sample Programs 9
------------------------------------------
Jog + Jog CW
------------------------------------------
M30 : JMP LO I0000010000000000, M31 Move for as long asDI14 = 1 and
JMP HI I0000100000000000, M31 DI15 = 0,
CALL M35 interrogate: Is software limit switch active?
JMP H319 == 1 , M32
GETSYS H317 = ACT.POSITION Add 1000 motor revolutions to current actual position and
ADD H317 + 4096000 move to result as new target position
M32 : ASTOP IPOS ENABLE
GOA NOWAIT H317
JMP UNCONDITIONED , M30
M31 : ASTOP TARGET POSITION
RET
------------------------------------------
Jog - Jog CCW
------------------------------------------
M40 : JMP LO I0000100000000000, M41 Move for as long asDI14 = 0 and
JMP HI I0000010000000000, M41 DI15 = 1,
CALL M35 interrogate: Is software limit switch active?
JMP H319 == 1 , M42
GETSYS H318 = ACT.POSITION Add 1000 motor revolutions to current actual position and
SUB H318 - 4096000 move to result as new target position
M42 : ASTOP IPOS ENABLE
GOA NOWAIT H318
JMP UNCONDITIONED , M40
M41 : ASTOP TARGET POSITION
RET
------------------------------------------
End of Jog mode
------------------------------------------
END
MOVIDRIVE® IPOSplus® 99
9 Sample Programs
• Settings:
The detailed configuration of the inputs/outputs (see below) and the variables used in the pro-
gram is documented in the remark section of the program source code.
The table positions must be written into the variables (H00 – H15) with the MX_SHELL PC user
interface, the keypad or via a bus system. This means the variables are stored in the non-volatile
memory.
Notes:
The user travel units numerator and denominator in the position window header are not relevant
here because the position values of travel variables are always evaluated in increments (4096
increments/motor revolution).
100 MOVIDRIVE®IPOSplus®
Sample Programs 9
Variables used:--------------------
H300 = Travel speed CW (1/10 rpm)
H301 = Travel speed CCW (1/10 rpm)
H302 = Acceleration ramp CW (ms)
H303 = Deceleration ramp CCW (linear)
H320 - H324 = Auxiliary variables
******************************************
------------------------------------------
Program start
==========================================
Initialization
------------------------------------------ Set speed and acceleration values for table positioning (see vari-
SET H300 = 15000 able description in the remarks for the program source code)
SET H301 = 15000
SET H302 = 1000
SET H303 = 1000
------------------------------------------
102 MOVIDRIVE®IPOSplus®
Sample Programs 9
104 MOVIDRIVE®IPOSplus®
Fault Messages 10
10 Fault Messages
10.1 Processing
The fault memory (P080) stores the last five fault messages (faults t-0 – t-4). The fault message of
longest standing is deleted whenever more than five fault messages have occurred. The following
information is stored when a malfunction takes place:
Fault • Status of the binary inputs/outputs • Operating status of the inverter • Inverter status • Heat
sink temperature • Speed • Output current • Active current • Unit utilization • DC link voltage • ON
hours • Enable hours • Parameter set • Motor utilization.
There are three shut-off responses depending on the fault; the inverter is inhibited when in fault
status.
• Instant disconnection:
The unit can no longer brake the drive; the output stage goes to high resistance in the event of a
fault and the brake is applied (DBØØ "/Brake" = "0").
• Rapid stop:
The drive is braked with the stop ramp t13/t23. Once the stop speed is reached, the output stage
goes to high resistance and the brake is applied (DBØØ "/Brake" = "0").
• Emergency stop:
The drive is braked with the emergency stop ramp t14/t24. Once the stop speed is reached, the
output stage goes to high resistance and the brake is applied (DBØØ "/Brake" = "0").
The drive's response after RESET depends on the type of fault (FAULT or WARNING), as fol-
lows:
FAULT After a fault reset: Reaction as for power off, IPOSplus® program; reference position,
outputs, parameters set by IPOSplus® (SETSYS command) and variables are reset
(program starts in line 1).
WARNING Also after a fault reset: IPOSplus® program; reference position, outputs, parameters
set by IPOSplus® (SETSYS command) and variables are retained (program resumes).
106 MOVIDRIVE®IPOSplus®
Fault Messages 10
108 MOVIDRIVE®IPOSplus®
Fault Messages 10
110 MOVIDRIVE®IPOSplus®
Fault Messages 10
Table 13
11 Index CPGE 82
CPGT 82
A CPLE 82
Absolute positioning GOA 67 CPLT 82
Absolutwertgeber 6 CPNE 82
Analog inputs 18 D
Reading 18 DIV 55
Analog outputs 18 DIVISION 55
Reading 18 E
Setting 18 EXCLUSIVE OR 55
Arithmetic commands 55 G
Auxiliary arithemthical operations GETSYS 72
MOD 55 GO0 66
NOT 55 GOA 67
GOR 67
B J
Binary inputs JMP 69
Controller inhibit 88 JUMP 69
Lim. switch CCW 88 L
Lim. switch CW 88 LOGICAL AND 82
Reference cam 88 LOGICAL NOT 82
Reference travel 88 LOGICAL OR 82
Reset 89 LOOP 71
Binary outputs LOOPB 71
Fault 89 LOOPE 71
IPOS in position 89 M
Ready 89 MOD 55
Bit commands 56 MODULO 55
BCLR 56 MOVLNK 57
BMOV 56 MUL 55
BMOVN 56 MULTIPLY 55
BSET 56 N
NO OPERATION 71
Command set NOP 71
A NOT 55
ADD 55 NOTL 82
AND 55 O
ANDL 82 OR 55
ARITHMETIC SHIFT RIGHT 56 ORL 82
ASHR 56 R
B
REM 71
BCLR 56 REMARK 71
BIT CLEAR 56 RET 71
BIT MOVE 56 RETURN 71
BIT MOVE NEG. 56 S
BIT SET 56 SCOM 62
BMOV 56 SET 74
BMOVN 56 SET FAULT REACTION 74
BSET 56 SET INDIRECT 75
C
SET INTERRUPT 75
CALL 69 SETFR 74
COMPARE EQUAL 82 SETI 75
COMPARE GREATER OR EQUAL 82 SETINT 75
COMPARE GREATER THAN 82 SHIFT LEFT 56
COMPARE LESS OR EQUAL 82 SHIFT RIGHT 56
COMPARE LESS THAN 82 SHL 56
COMPARE NOT EQUAL 82 SHR 56
COPY 72 SUB 55
CPEQ 82
SUBTRACT 55 J
T Jump commands JMP 69
TASK2 71
W L
WAIT 71 Lag error window 32
X Logic operations
XOR 55 AND 55
Communication commands 57 ANDL 82
Comparison operations NOTL 82
CPGE 82 OR 55
CPGT 82 ORL 82
CPLE 82 XOR 55
CPLET 82 Loop commands LOOP 71
CPNE 82
Comparison operations CPEQ 82 M
Copy variables COPY 72 Machine zero 24
CTRL. WORD 44 Monitoring 31
MOVLINK 51
D
Data exchange via SCOM system bus 62 N
Data/parameter exchange via MOVLNK 57 No operation NOP 71
Diagnosis options 12
O
Digital inputs 15
Offset 48
Digital outputs 16
Reading 16 P
Setting 17 Parameters
DRS_Ctrl 45 Access to ... 14
DRS_Status 45 Position window 31
DRS11A Nullpunkt setzen 46 Positioning commands 14, 66
Positioning ramp 29
E
PROFIBUS 43
Editing variables 32
Program branches 13
externer Geber 34
Program commands 69
F Program header 13
Feldbus 39 Program line 14
Feldbus und DIO11A 41 Program loops 13
Feldbus und DIP11A 41 Programs
Freilauf 45 Creating 9
Fundamental arithmetical operations Loading 11
ADD 55 Saving 11
DIV 55 Starting/stopping 12
MUL 55 Prozessdaten, anwenderspezifische Codierung 40
SUB 55
R
G Ramp type 30
Gain X controller 29 Read system values GETSYS 72
Geberauswertung 6 REF. TRAVEL START 25
REFERENCE CAM 25
I Reference offset 25
Inkrementalgeber 6 Reference speed 25
Inkrementalgebernachbildung 6 Reference travel 24
inkrementelle Positionsvorgabe 39 Reference travel GO0 66
IPOS IN POSITION 31 Reference travel type 26
IPOS input 89 Relative positioning GOR 67
IPOS output 89 Remark REM 71
IPOS REFERENCE 25 Remarks 13
IPOS-OUTPUT 17 Resolver 6
IPOSplus control 4 Return RET 71
S T0 RELOAD 84
Slip compensation 34 TARGET POS 85
Set commands 72 Target position 85
Fault response SETFR 74 TIMER 0 85
Indirect addressing SETI 74 Timer 0 reload 84
Interrupt SETINT 74 TIMER 1 85
System values SETSYS 74 Watchdog timer 85
Set commands variable SET 74 WD.TIMER 85
Setpoint selection 5 C
SHIFT commands Control word 44
ASHR 56 CTRL.WORD 44
SHL 56 D
SHR 56 DRS Control 45
Software limit switch 31 DRS CTRL. 45
Speed feedforward 29 DRS STATUS 45
Subroutine call CALL 69 S
Subroutines 13 SCOPE 474 83
Synchronlauf 44 SCOPE 475 83
System description 4 STAT.WORD 83
System values Status word 83
Access to ... 14 T
Touch Probe Position X/Y 86
System variable TP.POS.X/Y 86
System variable
ACT.POS 1 86 T
ACT.POS 2 86 Task 1 21
Actual position 1 86 Task 1 / task 2 13
Actual position 2 86 Creating a program 22
ANA.OUT IP 83 Differences 21
Analog output 83 Division 21
Control word 84 Task 2 21
CTRL.WORD 84 TASK2 71
DRS control 83 Technical data 5
DRS CTRL. 83 Travel distance factor DENOMINATOR 23
DRS STATUS 83 Travel distance factor NUMERATOR 23
Input level 84 Travel parameters 29
INPUT LVL 84 Travel speed 29
LAG DISTAN 85
Lag distance 85 U
LAG WINDOW 85 UNIT 24
OPT.OUT IP 83 Unit commands
Option output IPOSplus 83 ASTOP 78
Output level 84 MEM 78
OUTPUT LVL 84 TOUCHP 78
POS.WINDOW 85 WDOFF 78
Position window 85 WDON 78
REF.OFFSET 86 User travel units 23
Reference offset 86
SETP.POS. 85 V
Setpoint position 85 Variables 14
Setpoint position bus 86
W
SLS LEFT 86
Wait WAIT 71
SLS RIGHT 86
Watchdog function 81
Software limit switch CCW 86
Software limit switch CW 86
SP.POS.BUS 86
Standard output IPOSplus 84
STD.OUT IP 84
SEW-EURODRIVE right around the globe is transmission with manufacturing and assem-
your competent partner in matters of power bly plants in most major industrial countries.