Danfoss VLT 5000 Series Manual page 72

Synchronizing and positioning option onizing and positioning option
Hide thumbs Also See for VLT 5000 Series:
Table of Contents

Advertisement

Syntax-Example
NOWAIT ON //do not wait until position is reached
POSA 100000
WHILE (AXEND&2) DO
// as long as the positioning process is active,
// repeat loop
IF IN1 THEN
// if input 01 is set
VEL 100
// increase velocity
POSA 100000
WAIT IN1 OFF // Wait until input (key) is off
ENDIF
ENDWHILE
// position reached
Syntax-Example
IF (AXEND&64) THEN
/* set output 01, when axis controller is switched
off */
OUT 1 1
ELSE
OUT 1 0
ENDIF
Program sample
AXEND_01.M
72
VLT
®
5000 SyncPos option
I I I I I COMOPTGET
COMOPTGET reads from the Communication
option buffer the no words and writes them in the
array array, starting with the first element.
Summary
reads a Communication option telegram
Syntax
COMOPTGET no array
Parameter
array =
the name of an array which must be at
least the size of no
no =
number of words to be read
Portability
built-in Communication option card
Communication option function
Parameters: Read and write parameters is not
affected by the SyncPos option.
Control data:
The function of Control word (CTW) and Main Re-
ference (MRV) depends on the setting of parame-
ter 700; Status words (STW) and Main actual value
(MAV) is always active:
Parameter 700
"Enable SyncPos" "Disable SyncPos"
CTW/MRV Disabled
STW/MAV
Active
Process data:
PCD's 1 – 4 of PPO type 2/ 4 and PCD's 1 – 8 of
PPO type 5 are not assigned a parameter number
by parameter 915 and 916 but are used as a free
data area which can be used in a SyncPos
program.
The command COMOPTGET is copying the data
received on the communication option into an
array, where each array element contains one data
word (16 bit).
The command COMOPTSEND is copying data
from an array, where each array element contains
one data work (16 bit) into the send buffer on the
communication option, from where it is send via
the network to the master.
Command group
Communication option
MG.10.J4.02 – VLT is a registered Danfoss trade mark
Parameter 700
Active
Active

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents