
6/16
EDIT
DATE
DESIG.
DESCRIPTION
CUST.
SHEET
TITLE
DRAW.NO.
FANUC Power Mate i-MODEL H
CONNECTION MANUAL(FUNCTION)
Custom Macro in the high response mode
B-63173EN-1/01-27
Add the following description after Add the following description after ““22.2 22.2 Auxiliary Auxiliary ffunctionunction in high response mode in high response mode””..
22.3 Custom Macro in the high response modeCustom Macro in the high response mode
When high speed response function is used, this function enables to use macro sentence and
macro system variable in motion program. The following macro sentence can be used.
Arithmetic command
Unconditional branch command (GO TO statement)
Conditional branch command (IF statement)
Reiterating command (WHILE statement)
Quotation of variable
22.3.1 Macro statementMacro statement
Arithmetic command
The following arithmetic commands can be used. (i, j, k: System variable,
n: Integer)
Function Format
Definition #i = #j, #i = n
Addition #i =#j + #k, #i = #j + n
Subtraction #i =#j – #k, #i = #j – n
Multiplication #i =#j*#k, #i = #j*n
Division #i = #j / #k, #i = #j / n
Absolute value #i =ABS[#j]
Logical or #i = #j OR #k, #i =#j OR n
Exclusive logical or #i =#j XOR #k, #i =#j XOR n
Logical and #i = #j AND #k, #i = #j AND n
NoteNote
The following functions apply to the variables that are described inThe following functions apply to the variables that are described in
the section 22.3.5 System variables.the section 22.3.5 System variables.