Please enable JavaScript to view this site.

Function that performs the axis zero cycle.

Syntax

i32 mva_zc (i32 start, stru_mvzc stru [, i32 nDef=1] [, i32 holdFlag=0] [, real fr=1])

start

Flag to enable data re-acknowledgement (only if axes stopped).

The flag is reset by RTE when the data is taken

stru

Structure of type stru_mvzc containing motion-related parameters

nDef

Size of the information array (number of axes involved). (optional, default 1)

holdFlag

Flag to command HOLD status to the mission. (optional, default 0)

fr

Speed reduction value (0-1). (optional, default 1)

See fr

Result

Variable containing information about the status of the function (see returns codes).

Value

Description

-5 [M_ILLEGAL_ARGS]

Illegal parameter

-6 [M_IN_ALARM]

Alarm (ip axis already set)

6 [M_REACHED]

Zero cycle successfully terminated

7 [M_HOMING]

Zero cycle in execution

Validity

Rule

Note

If n axes are specified, the movements are simultaneous.

It is RTE's responsibility to update the predefined variable c0_done if the zero cycle execution is terminated successfully.

You can increase the diagnostics in the report via the predefined variable sys_flag.14

NOTE: The micro channel index should be specified in the project configurator -> axes -> transducer, it can be overridden via the predefined variable u0_channel.

NOTE: From RTE 34.23.5, the position preset value can be changed until it is actually used. Which means that the preset value set will be the last value written into the instruction parameters.

hmtoggle_plus0  Diagnostics

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC