Programming, 2 system flags – Lenze E94P PositionServo with MVOB User Manual

Page 45

Advertising
background image

PM94H201B_13xxxxxx_EN

L

43

Programming

Example:

AOUT=100 , AOUT will be assigned value of 10.

V0=236

VOUT=V0, VOUT will be assigned 10 and V0 will be unchanged.

2.8.2 System Flags

Flags don’t have an Index number assigned to them. They are the product of a BIT mask applied to a particular system
variable within the drive and are available to the programmer only from the User’s program. Table 12 lists the System
Flags with access rights and description.

Table 12: System Flags

Name

Access

Description

IN_A1-4, IN_B1-4, IN_C1-4

R

Digital inputs . TRUE if input active, FALSE otherwise

OUT1, OUT2, OUT3, OUT4, OUT5

W

Digital outputs OUTPUT1- OUTPUT5

F_ICONTROLOFF

R

Interface Control Status (ON/OFF) #27 in DSTATUS register

F_IN_POSITION

R

TRUE when Actual Position (APOS) is within limits set by INPOSLIM
variable and motion completed

F_ENABLED

R

Set when drive is enabled

F_EVENTSOFF

R

Events Disabled Status (ON/OFF) #30 in DSTATUS register

F_MCOMPLETE

R

Set when motion is completed and there are no motion commands
waiting in the Motion Queue

F_MQUEUE_FULL

R

Motion Queue full

F_MQUEUE_EMPTY

R

Motion Queue empty

F_FAULT

R

Set if any fault detected

F_ARITHMETIC_FLT

R

Arithmetic fault

F_REGISTRATION

R

Set when registration mark is detected. Contents of the RPOS
variable valid when this flag is active. Flag reset by any registration
moves MOVEPR, MOVEDR or by command REGISTRATION ON

F_MSUSPENDED

R

Set if motion suspended by statement MOTION SUSPEND

Flag logic is shown herein.

IF (TPOS-INPOSLIM < APOS) && (APOS < TPOS+INPOSLIM) && F_MCOMPLETE && F_MQUEUE_EMPTY

Out1 = 1

ELSE

Out1 = 0

ENDIF

For VELOCITY mode F_MCOMPLETE and F_MQUEUE_EMPTY flags are ignored and assumed TRUE.

Advertising