Kyocera KM-6230 PRESCRIBE Commands Technical Reference Manual - Rev. 4.7 - Page 66
Example 2, Macros
View all Kyocera KM-6230 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 66 highlights
Chapter 3 Macros Example 2 The next file presents a more ambitious project. It makes the graph-drawing commands in the preceding section into a pair of macros to draw multiple graphs. This file may help you to better understand the macro creating process. The DAM command in the first line is a safety precaution that clears any previous macros out of memory. !R! RES; UNITC; DAM; MCRO LOCATE; SLM %1; STM %2; ENDM; MCRO GRAPH; UNIT C; SPD 0.05; SCS 0.23; MAP 0, -7.3; TEXT %1; MAP 0, 0; BOX 6, -7; MAP -0.1, 0.5; TEXT 'Sun Mon Tue Wed Thu Fri Sat'; MAP 0, -%2; DAP 1, -%3; DAP 2, -%4; DAP 3, -%5; DAP 4, -%6; DAP 5, -%7; DAP 6, -%8; ENDM; CALL LOCATE, 2, 9; CALL GRAPH, 'Temperature', 2.5, 3.5, 1.9, 3.0, 3.8, 2.8, 3.3; CALL LOCATE, 10, 9; CALL GRAPH, 'Humidity', 3.5, 1.0, 1.3, 2.6, 1.8, 6.4, 5.9; CALL LOCATE, 2, 20; CALL GRAPH, 'Paid Attendance', 5.2, 1.1, 0.9, 1.5, 1.3, 3.3, 4.4; CALL LOCATE, 10, 20; CALL GRAPH, 'Pages Completed', 0, 1.2, 4.4, 4.6, 3.2, 6.6, 0; PAGE; EXIT; 3-4