Reference – Lenze PM94P01C User Manual

Page 93

Advertising
background image

PM94P01C

91

Reference

Table 39: HOME

HOME

Execute homing routine

Statement

Purpose

Used to initiate homing.

Syntax

HOME

Remarks

This statement is convenient when writing event driven programs.

See Also

Example:

{Statements…}
HOME

;initiate homing routine

Table 40: ICONTROL ON/OFF

ICONTROL

ON/OFF

Enables interface control

Statement

Purpose

Enables/Disables interface control. Effects bit #27 in DSTATUS register and system flag F_ICONTROLOFF.
All interface motion commands and commands changing any outputs will be disabled. See Host interface
commands manual for details. This command is useful when the program is processing critical states
(example limit switches) and can’t be disturbed by the interface.

Syntax

ICONTROL ON
ICONTROL OFF

Enables Interface control
Disables interface control

Remarks

After reset interface control is enabled by default.

See Also

Example:

EVENT LimitSwitch IN_A1 RISE

;limit switch event

Jump LimitSwitchHandler

;jump to process limit switch

ENDEVENT
V0=0

;V0 will be used to indicate fault condition

EVENT LimitSwitch ON

;Turn on event to detect limit switch activation

Again:
HALT

;system controlled by interface

LimitSwitchHandler:
EVENTS OFF

;turn off all events

ICONTROL OFF

;disable interface control

STOP MOTION QUICK
DISABLE

;DISABLE

V0=1

;indicate fault condition to the interface

ICONTROL ON

;Enable Interface Control

EVENTS ON

;turn on events turned off by ‘EVENTS OFF’

GOTO AGAIN

Advertising