Defer macro call
Delayed call of an auxiliary program depending on the specified time. There are three modes of macro operation:
- run a specified program until a certain time
- run a specified program after a certain time
- run a given program several times over a given period of time
All attributes except those used by this macro can be passed to the launched
program.
This can be useful when testing various systems when a program must be
called cyclically.
You can make it as a custom G-code on your machine, see other macros.
[!NOTE] Specify the G-coda number for the simplified form of the cycle call. For example G232.
Call Format
G65 P_ A_ B[_] C[_] D[_] E[_] F[_] H[_] I[_] J[_] K[_] M[_] Q[_] R[_] S[_] T[_] U[_] V[_] W[_] X[_] Y[_] Z[_]
G232 A_ B[_] C[_] D[_] E[_] F[_] H[_] I[_] J[_] K[_] M_ Q[_] R[_] S[_] T[_] U[_] V[_] W[_] X[_] Y[_] Z[_]
Attributes
- P – name of the subroutine. O9013. Defaults to the position before the loop starts
- A - program number to be called
- *T - type of work (T1 - will run the program until a certain date and time; T2 - will run the program after a certain date and time; T3 - will run the program over a certain period of time), default T3
- *C - will run the auxiliary program only once if you specify C1, works only with T1 and T2
- *D - specified date (for T1 and T2 modes) or number of days (for T3 mode)
- *H - specified time in hours (for T1 and T2 modes) or number of hours (for T3 mode)
-
*M - specified time in minutes (in T1 and T2 modes) or number of minutes
(in T3 mode)
* – optional attributes, but date or time must be specified
Examples
Example 1: launch of the O700 auxiliary program until 15:30.
G232 A700 H15 M30 T1
Example 2: launch of the O700 auxiliary program after 15:30.
G232 A700 H15 M30 T2
Example 3: Run the O700 utility program multiple times over a period of 30 minutes.
G232 A700 M30
Example 4: One-time start of the O700 auxiliary program after 15:30.
G232 A700 C1 H15 M30 T2
Defined Variables
- #191 - year
- #192 - month
- #193 - day
- #194 - hours
- #195 - minutes
- #196 - seconds
- #197 - launch type
System Variables Used
- #3000 - Macro alarm
- #3011 - Current date
- #3012 - Current time
Compatibility
- Milling - FANUC Series Oi-MODEL F
- Turning - FANUC Series Oi-MODEL F
- Milling - HAAS
[!WARNING] Before starting the makras, do not forget to check all the system variables used, they may differ on some machines.