Kyocera TASKalfa 4501i PRESCRIBE Commands Technical Reference Manual - Rev. 4. - Page 65
Examples of Macros
View all Kyocera TASKalfa 4501i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 65 highlights
Examples of Macros Figure 3. 1. PRESCRIBE Macro Limitations Macro limitations are summarized as follows. Maximum number of macros downloadable to the printing system Maximum nesting levels Maximum length of macro name Maximum number of parameters Maximum length of CALL command PRESCRIBE commands that should not be contained within a macro definition Depends on the available printing system's memory 20 4 characters 19 255 bytes EXIT, LDFC, MCRO, DELM, DAM, RDMP, ENDD, ICCD, WRED, EPRM Examples of Macros Example 1 The following macro example draws a circle. It first names the macro that issues the PRESCRIBE commands for drawing a circle in the middle of a page. !R! MCRO CIR1; MZP 4, 5.5; CIR 1; ENDM; EXIT; When completed, this macro will draw a circle after it has been sent to the printing system. !R! CALL CIR1; EXIT; If you want circles of different sizes, you can make the radius into a so-called dummy parameter. Dummy parameters in macro definitions are denoted using percent symbols (%) as below: !R! MCRO CIRCLE; MZP 4, 5,5; CIR %1; ENDM; EXIT; After this definition: CALL CIRCLE, 1; draws a one-inch circle, CALL CIRCLE, 2; draws a two-inch circle, and so on. Note the commas are required to separate the macro name from the radius parameter in these CALL statements. 3-3