Please enable JavaScript to view this site.

This function is used to check if mva_follow2_m() can be executed with the specified data. The function if results in failure, returns an error code; otherwise, if ok, it can also return the maximum synchronism duration time.

Syntax

i32 check_mva_follow2 (stru_follow2_sm stru, real masterSpe, real syncTime)

stru

Structure of type stru_follow2_sm containing motion-related parameters

masterSpe

Speed of the master at steady state

syncTime

Variable in which the maximum sync duration will be written

Result

Returns:

Value

Description

-5

Invalid axis number

-1

masterSpe <= 0

0

Operation performed successfully. You can execute mva_follow2_m(), in syncTime you can read the maximum sync duration

1

Maximum acceleration of the slave <= 0

2

Start space (sync position / park position) or braking space are <= 0

3

kSlaveMaster <= 0

4

Rotary slave -> insufficient start master space + braking space

5

Rotary slave -> master space available to the slave to reach the next synchronism is insufficient

Linear slave -> the master space available to the slave to go back is insufficient

6

masterCycle <= 0

21

The slave exceeds the maximum speed while moving from the parking position to the synchronous position

22

The slave exceeds the maximum acceleration while moving from the parking position to the synchronism position

31

Linear slave -> slave exceeds maximum speed while braking after synchronism

32

Linear slave -> the slave exceeds maximum acceleration while braking after synchronism

41

Linear slave -> the slave exceeds the maximum speed while returning to the initial position

42

Linear slave -> the slave exceeds the maximum acceleration while returning to the initial position

51

Rotary slave -> the slave exceeds the maximum speed while moving to the parking position after synchronism

52

Rotary slave -> the slave exceeds maximum acceleration while moving to the parking position after synchronism

61

Rotary slave -> slave exceeds maximum speed while moving from the current synchronism position to the next, slave stops to wait for the required master space

62

Rotary slave -> slave exceeds maximum acceleration while moving from the current synchronism position to the next, slave stops to wait for the necessary master space

71

Rotary slave -> slave exceeds maximum speed as it moves from the current synchronization position to the next

72

Rotary slave -> slave exceeds maximum acceleration while moving from the current synchronism position to the next

Validity

Rule, Task

Note


 

  

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