JVL MAC050 User Manual page 345

Integrated servo motors
Hide thumbs Also See for MAC050:
Table of Contents

Advertisement

5.11 Expansion Module MAC00-R1/R3/R4
5.11.36
Jump according to a comparison
Icon:
Dialogue:
Function:
JVL A/S - User Manual - Integrated Servo Motors MAC050 - 4500
Compares two registers to each other, before either jumping to another line in the program,
or moving on to the next line in the program. If the condition is met, the command jumps
to the specified program line. If the condition is not met, the program proceeds to execute
the next line in the program.
Any two registers can be compared to each other, but the command does not do anything
beyond comparing the register numerical values, as measured in native motor units. To
ensure comparisons are meaningful, it is preferable to compare registers that hold the
same type of information, in the same binary format.
In the example above, two position registers are compared. Both hold position information,
both measure position in encoder counts. Such a comparison will always yield meaningful,
predictable results.
341

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents