4.9
Expansion Module MAC00-R1/R3/R4
4.9.10.26 Jump according to a comparison
Icon:
Dialogue:
Function:
JVL Industri Elektronik A/S - User Manual - Integrated Servo Motors MAC050 - 800
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. For other
types of registers, consult section 5.6.
241